Skip to content

Fix failures caused by fork() interaction with internal slots

Avi Kivity kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: Keep slot ID in memory slot structureinclude/linux/kvm_host.h virt/kvm/kvm_main.c+2 -00 replies
2/2KVM: Prevent internal slots from being COWedarch/x86/kvm/x86.c+5 -04 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Fix failures caused by fork() interaction with internal slots

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(-)