Fix accessed bit tracking
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest4 patches 1 replyIn review
- v24 patches 11 repliesSuperseded
- v14 patches 1 replySuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | KVM: MMU: Introduce drop_spte()arch/ arch/ | +23 | 0 replies | |
| 2/4 | KVM: MMU: Move accessed/dirty bit checks from rmap_remove() to drop_spte()arch/ | +11 | 0 replies | |
| 3/4 | KVM: MMU: Atomically check for accessed bit when dropping an sptearch/ | +21 | 0 replies | |
| 4/4 | KVM: MMU: Don't drop accessed bit while updating an sptearch/ | +21 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/4] Fix accessed bit tracking
The kvm mmu synchronizes shadow ptes using the mmu lock, however the cpu will happily ignore the lock when setting the accessed bit. This can cause the accessed bit to be lost. Luckily this only results in incorrect page selection for swap.
This patchset fixes the problem by atomically updating the spte when needed while taking care of the accessed bit.
v3: fix i386 pte exchange code in patch 3
add missing __set_spte() to drop_spte() in patch 2
v2: fix incorrect code transformations in first patch
Avi Kivity (4):
KVM: MMU: Introduce drop_spte()
KVM: MMU: Move accessed/dirty bit checks from rmap_remove() to
drop_spte()
KVM: MMU: Atomically check for accessed bit when dropping an spte
KVM: MMU: Don't drop accessed bit while updating an spte
arch/x86/kvm/mmu.c | 88 +++++++++++++++++++++++++++++++------------ arch/x86/kvm/paging_tmpl.h | 13 +++--- 2 files changed, 69 insertions(+), 32 deletions(-)