]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Prevent internal slots from being COWed
authorAvi Kivity <avi@redhat.com>
Mon, 21 Jun 2010 07:57:45 +0000 (10:57 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:47:08 +0000 (10:47 +0300)
commitfcfec66229af01e6db0610fd6c66b48da5d28b02
tree20fcf29491d762cb0d378c6bbda0aadb81748418
parent0fc99371c8256034c2abe34b11e3a62584bd3cf4
KVM: Prevent internal slots from being COWed

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>
arch/x86/kvm/x86.c