Fix some mmu/emulator atomicity issues (v2)
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 3 repliesIn review
v2 from the cover letter
- fix truncated description for patch 1
- add new patch 4, which fixes a bug in patch 5
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | KVM: MMU: Consolidate two guest pte reads in kvm_mmu_pte_write()arch/ | +31 | 0 replies | |
| 2/5 | KVM: Make locked operations truly atomicarch/ | +48 | 0 replies | |
| 3/5 | KVM: Don't follow an atomic operation by a non-atomic onearch/ | +25 | 0 replies | |
| 4/5 | KVM: MMU: Do not instantiate nontrapping spte on unsync pagearch/ | +8 | 0 replies | |
| 5/5 | KVM: MMU: Reinstate pte prefetch on invlpgarch/ arch/ arch/ | +39 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] Fix some mmu/emulator atomicity issues (v2)
Currently when we emulate a locked operation into a shadowed guest page table, we perform a write rather than a true atomic. This is indicated by the "emulating exchange as write" message that shows up in dmesg.
In addition, the pte prefetch operation during invlpg suffered from a race. This was fixed by removing the operation.
This patchset fixes both issues and reinstates pte prefetch on invlpg.
v2:
- fix truncated description for patch 1
- add new patch 4, which fixes a bug in patch 5
Avi Kivity (5):
KVM: MMU: Consolidate two guest pte reads in kvm_mmu_pte_write()
KVM: Make locked operations truly atomic
KVM: Don't follow an atomic operation by a non-atomic one
KVM: MMU: Do not instantiate nontrapping spte on unsync page
KVM: MMU: Reinstate pte prefetch on invlpg
arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/mmu.c | 78 +++++++++++++++--------------- arch/x86/kvm/paging_tmpl.h | 25 +++++++++- arch/x86/kvm/x86.c | 101 ++++++++++++++++++++++++++++----------- 4 files changed, 137 insertions(+), 68 deletions(-)