mmu.c 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <linux/bitops.h>
  3. #include <linux/errno.h>
  4. #include <linux/err.h>
  5. #include <linux/hugetlb.h>
  6. #include <linux/module.h>
  7. #include <linux/uaccess.h>
  8. #include <linux/vmalloc.h>
  9. #include <linux/kvm_host.h>
  10. #include <linux/sched/signal.h>
  11. void kvm_arch_mmu_enable_log_dirty_pt_masked(struct kvm *kvm,
  12. struct kvm_memory_slot *slot,
  13. gfn_t gfn_offset,
  14. unsigned long mask)
  15. {
  16. }
  17. void kvm_arch_sync_dirty_log(struct kvm *kvm, struct kvm_memory_slot *memslot)
  18. {
  19. }
  20. void kvm_arch_flush_remote_tlbs_memslot(struct kvm *kvm,
  21. struct kvm_memory_slot *memslot)
  22. {
  23. kvm_flush_remote_tlbs(kvm);
  24. }
  25. void kvm_arch_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free)
  26. {
  27. }
  28. int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot,
  29. unsigned long npages)
  30. {
  31. return 0;
  32. }
  33. void kvm_arch_memslots_updated(struct kvm *kvm, u64 gen)
  34. {
  35. }
  36. void kvm_arch_flush_shadow_all(struct kvm *kvm)
  37. {
  38. }
  39. void kvm_arch_flush_shadow_memslot(struct kvm *kvm,
  40. struct kvm_memory_slot *slot)
  41. {
  42. }
  43. void kvm_arch_commit_memory_region(struct kvm *kvm,
  44. const struct kvm_userspace_memory_region *mem,
  45. struct kvm_memory_slot *old,
  46. const struct kvm_memory_slot *new,
  47. enum kvm_mr_change change)
  48. {
  49. }
  50. int kvm_arch_prepare_memory_region(struct kvm *kvm,
  51. struct kvm_memory_slot *memslot,
  52. const struct kvm_userspace_memory_region *mem,
  53. enum kvm_mr_change change)
  54. {
  55. return 0;
  56. }
  57. int kvm_unmap_hva_range(struct kvm *kvm, unsigned long start,
  58. unsigned long end, unsigned int flags)
  59. {
  60. return 0;
  61. }
  62. int kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte)
  63. {
  64. return 0;
  65. }
  66. int kvm_age_hva(struct kvm *kvm, unsigned long start, unsigned long end)
  67. {
  68. return 0;
  69. }
  70. int kvm_test_age_hva(struct kvm *kvm, unsigned long hva)
  71. {
  72. return 0;
  73. }