]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: Prevent internal slots from being COWed
authorAvi Kivity <avi@redhat.com>
Fri, 17 Sep 2010 16:13:14 +0000 (13:13 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 27 Sep 2010 00:18:33 +0000 (17:18 -0700)
commitaaf270ed0cb87db6a037a682a3d2f860efb32f59
tree124e7ade558b0239c55797db01e0ffa96315f155
parent1be501980f140e5a6698999df9c7c6124c14810f
KVM: Prevent internal slots from being COWed

commit 7ac77099ce88a0c31b75acd0ec5ef3da4415a6d8 upstream.

If a process with a memory slot is COWed, the page will change its address
(despite having an elevated reference count).  This breaks internal memory
slots which have their physical addresses loaded into vmcs registers (see
the APIC access memory slot).

Signed-off-by: Avi Kivity <avi@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/x86.c