async_pf.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * kvm asynchronous fault support
  3. *
  4. * Copyright 2010 Red Hat, Inc.
  5. *
  6. * Author:
  7. * Gleb Natapov <gleb@redhat.com>
  8. *
  9. * This file is free software; you can redistribute it and/or modify
  10. * it under the terms of version 2 of the GNU General Public License
  11. * as published by the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software Foundation,
  20. * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
  21. */
  22. #ifndef __KVM_ASYNC_PF_H__
  23. #define __KVM_ASYNC_PF_H__
  24. #ifdef CONFIG_KVM_ASYNC_PF
  25. int kvm_async_pf_init(void);
  26. void kvm_async_pf_deinit(void);
  27. void kvm_async_pf_vcpu_init(struct kvm_vcpu *vcpu);
  28. #else
  29. #define kvm_async_pf_init() (0)
  30. #define kvm_async_pf_deinit() do {} while (0)
  31. #define kvm_async_pf_vcpu_init(C) do {} while (0)
  32. #endif
  33. #endif