commit | e36d96f7cfaa71870c407131eb4fbd38ea285c01 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Mon Jun 21 10:56:36 2010 +0300 |
committer | Avi Kivity <avi@redhat.com> | Sun Aug 01 10:47:07 2010 +0300 |
tree | a557bb41250b555f6181552246742d3a46fadcfd | |
parent | 0719837c0832a7b305e42327caa7d330462360ea [diff] [blame] |
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>
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 5bd2f34..74f7319 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c
@@ -570,6 +570,7 @@ new = old = *memslot; + new.id = mem->slot; new.base_gfn = base_gfn; new.npages = npages; new.flags = mem->flags;