KVM: x86/mmu: Add a field to control memslot rmap allocation
[linux-2.6-microblaze.git] / arch / x86 / include / asm / kvm_host.h
index 9c7ced0..11798a9 100644 (file)
@@ -1124,6 +1124,12 @@ struct kvm_arch {
         */
        spinlock_t tdp_mmu_pages_lock;
 #endif /* CONFIG_X86_64 */
+
+       /*
+        * If set, rmaps have been allocated for all memslots and should be
+        * allocated for any newly created or modified memslots.
+        */
+       bool memslots_have_rmaps;
 };
 
 struct kvm_vm_stat {