KVM: PPC: Book3S HV: Fix dirty page logging for a nested guest
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | KVM: PPC: Book3S HV: Hold kvm->mmu_lock across updating nested pte rc bitsarch/ | +12 | 0 replies | |
| 2/5 | KVM: PPC: Book3S HV: Align gfn to L1 page size when inserting nest-rmap entryarch/ | +2 | 0 replies | |
| 3/5 | KVM: PPC: Book3S HV: Apply combination of host and l1 pte rc for nested guestarch/ | +3 | 0 replies | |
| 4/5 | KVM: PPC: Book3S HV: Introduce kvmhv_update_nest_rmap_rc_list()arch/ arch/ arch/ +1 more | +58 | 0 replies | |
| 5/5 | KVM: PPC: Book3S HV: Keep rc bits in shadow pgtable in sync with hostarch/ | +20 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] KVM: PPC: Book3S HV: Fix dirty page logging for a nested guest
The following series fixes dirty page logging for when nested guests are being run.
The dirty page state of an L1 guest was found to be inaccurate from an L0 point of view when L1 was running guests. Also the dirty page state of an L2 guest from an L1 point of view was inaccurate.
Fix this by:
- Ensuring nested-rmap entries are inserted correctly so that they can be retrieved.
- Ensuring that rc bits in the shadow page table are set correctly at creation time so that L1 is informed when pages are dirtied
- Ensuring that rc bits in the shadow page table are cleared when L0 clears them in an L1 pte so that the nested guest cannot continue to write to the page
Suraj Jitindar Singh (5):
KVM: PPC: Book3S HV: Hold kvm->mmu_lock across updating nested pte rc
bits
KVM: PPC: Book3S HV: Align gfn to L1 page size when inserting
nest-rmap entry
KVM: PPC: Book3S HV: Apply combination of host and l1 pte rc for
nested guest
KVM: PPC: Book3S HV: Introduce kvmhv_update_nest_rmap_rc_list()
KVM: PPC: Book3S HV: Keep rc bits in shadow pgtable in sync with host
arch/powerpc/include/asm/kvm_book3s.h | 2 + arch/powerpc/include/asm/kvm_book3s_64.h | 3 ++ arch/powerpc/kvm/book3s_64_mmu_radix.c | 30 +++++++++---- arch/powerpc/kvm/book3s_hv_nested.c | 74 +++++++++++++++++++++++++++++--- 4 files changed, 95 insertions(+), 14 deletions(-)
Signature · 1 line
2.13.6