Make KVM slot management more robust
commit62d60e8cc4c4c8aebdfd97f10087456d2690c0a0
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 18 Nov 2008 15:41:18 +0000 (18 15:41 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 18 Nov 2008 15:41:18 +0000 (18 15:41 +0000)
treed2c76afc947d8f06b174d91e7446e54045a22878
parent87006d137870541dac1b8a7adce8fcad6eb393a6
Make KVM slot management more robust

KVM keeps track of physical memory based on slots in the kernel.  The current
code that translates QEMU memory mappings to slots work but is not robust
in the fact of reregistering partial regions of memory.

This patch does the right thing for reregistering partial regions of memory.  It
also prevents QEMU from using KVM private slots.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5734 c046a42c-6fe2-441c-8c8c-71466251a162
kvm-all.c