diff options
-rw-r--r-- | include/linux/kvm_host.h | 1 | ||||
-rw-r--r-- | virt/kvm/kvm_main.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index e820eb579108..e796326f3646 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -124,6 +124,7 @@ struct kvm_memory_slot { | |||
124 | } *lpage_info[KVM_NR_PAGE_SIZES - 1]; | 124 | } *lpage_info[KVM_NR_PAGE_SIZES - 1]; |
125 | unsigned long userspace_addr; | 125 | unsigned long userspace_addr; |
126 | int user_alloc; | 126 | int user_alloc; |
127 | int id; | ||
127 | }; | 128 | }; |
128 | 129 | ||
129 | static inline unsigned long kvm_dirty_bitmap_bytes(struct kvm_memory_slot *memslot) | 130 | static inline unsigned long kvm_dirty_bitmap_bytes(struct kvm_memory_slot *memslot) |
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 5bd2f34ba576..74f731920945 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -570,6 +570,7 @@ int __kvm_set_memory_region(struct kvm *kvm, | |||
570 | 570 | ||
571 | new = old = *memslot; | 571 | new = old = *memslot; |
572 | 572 | ||
573 | new.id = mem->slot; | ||
573 | new.base_gfn = base_gfn; | 574 | new.base_gfn = base_gfn; |
574 | new.npages = npages; | 575 | new.npages = npages; |
575 | new.flags = mem->flags; | 576 | new.flags = mem->flags; |