aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-06-21 03:56:36 -0400
committerAvi Kivity <avi@redhat.com>2010-08-01 03:47:07 -0400
commite36d96f7cfaa71870c407131eb4fbd38ea285c01 (patch)
treea557bb41250b555f6181552246742d3a46fadcfd /include/linux/kvm_host.h
parent0719837c0832a7b305e42327caa7d330462360ea (diff)
KVM: Keep slot ID in memory slot structure
May be used for distinguishing between internal and user slots, or for sorting slots in size order. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h1
1 files changed, 1 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
129static inline unsigned long kvm_dirty_bitmap_bytes(struct kvm_memory_slot *memslot) 130static inline unsigned long kvm_dirty_bitmap_bytes(struct kvm_memory_slot *memslot)