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>
This commit is contained in:
parent
0719837c08
commit
e36d96f7cf
2 changed files with 2 additions and 0 deletions
|
|
@ -124,6 +124,7 @@ struct kvm_memory_slot {
|
|||
} *lpage_info[KVM_NR_PAGE_SIZES - 1];
|
||||
unsigned long userspace_addr;
|
||||
int user_alloc;
|
||||
int id;
|
||||
};
|
||||
|
||||
static inline unsigned long kvm_dirty_bitmap_bytes(struct kvm_memory_slot *memslot)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue