kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix failures caused by fork() interaction with internal slots
@ 2010-06-21  8:18 Avi Kivity
  2010-06-21  8:18 ` [PATCH 1/2] KVM: Keep slot ID in memory slot structure Avi Kivity
  2010-06-21  8:18 ` [PATCH 2/2] KVM: Prevent internal slots from being COWed Avi Kivity
  0 siblings, 2 replies; 7+ messages in thread
From: Avi Kivity @ 2010-06-21  8:18 UTC (permalink / raw)
  To: kvm, Marcelo Tosatti

fork() has a WONTFIX bug where a page with an elevated reference count will
be COWed such that the page address changes even in the process which has
taken the reference.  This interacts badly with internal memory slots
that install pages in vmcs registers, such as the APIC access page.

This patchset disables fork() for these slots.

Avi Kivity (2):
  KVM: Keep slot ID in memory slot structure
  KVM: Prevent internal slots from being COWed

 arch/x86/kvm/x86.c       |    5 +++++
 include/linux/kvm_host.h |    1 +
 virt/kvm/kvm_main.c      |    1 +
 3 files changed, 7 insertions(+), 0 deletions(-)


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-07-06 14:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-21  8:18 [PATCH 0/2] Fix failures caused by fork() interaction with internal slots Avi Kivity
2010-06-21  8:18 ` [PATCH 1/2] KVM: Keep slot ID in memory slot structure Avi Kivity
2010-06-21  8:18 ` [PATCH 2/2] KVM: Prevent internal slots from being COWed Avi Kivity
2010-06-21 20:23   ` Marcelo Tosatti
2010-06-22 11:17     ` Avi Kivity
2010-07-06 14:45       ` Andrea Arcangeli
2010-07-06 14:53         ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).