diff options
author | Avi Kivity <avi@redhat.com> | 2010-06-21 09:56:36 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-01 09:47:07 +0200 |
commit | e36d96f7cfaa71870c407131eb4fbd38ea285c01 (patch) | |
tree | a557bb41250b555f6181552246742d3a46fadcfd /virt/kvm | |
parent | KVM: Reduce atomic operations on vcpu->requests (diff) | |
download | linux-e36d96f7cfaa71870c407131eb4fbd38ea285c01.tar.xz linux-e36d96f7cfaa71870c407131eb4fbd38ea285c01.zip |
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 'virt/kvm')
-rw-r--r-- | virt/kvm/kvm_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, new = old = *memslot; + new.id = mem->slot; new.base_gfn = base_gfn; new.npages = npages; new.flags = mem->flags; |