]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: VMX: Move private memory slot position
authorSheng Yang <sheng@linux.intel.com>
Mon, 23 Mar 2009 20:51:21 +0000 (17:51 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 2 May 2009 17:57:05 +0000 (10:57 -0700)
commitff896b463d96419ceef8465e2c3624501e4da4b0
tree2ebb4d4cbc3ba79932148f1d64c759df3caaa410
parent503e5b567be966f1ad7193c1e58878f8c0a9b5f2
KVM: VMX: Move private memory slot position

(cherry picked from 6fe639792c7b8e462baeaac39ecc33541fd5da6e)

PCI device assignment would map guest MMIO spaces as separate slot, so it is
possible that the device has more than 2 MMIO spaces and overwrite current
private memslot.

The patch move private memory slot to the top of userspace visible memory slots.

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/vmx.c
arch/x86/kvm/vmx.h