Fix failures caused by fork() interaction with internal slots
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | KVM: Keep slot ID in memory slot structureinclude/ virt/ | +2 | 0 replies | |
| 2/2 | KVM: Prevent internal slots from being COWedarch/ | +5 | 4 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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(-)