Skip to content

mmu root page cleanups

Avi Kivity kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5KVM: MMU: Rearrange struct kvm_mmu_pagearch/x86/include/asm/kvm_host.h+8 -70 replies
2/5KVM: MMU: use 16 bits for root_countarch/x86/include/asm/kvm_host.h+1 -10 replies
3/5KVM: MMU: Unify 32-pae and single-root mmu setuparch/x86/kvm/mmu.c+21 -230 replies
4/5KVM: MMU: Use correct root gfn for direct mapsarch/x86/kvm/mmu.c+5 -40 replies
5/5KVM: MMU: Fix check for cr3 outside guest memoryarch/x86/kvm/mmu.c+1 -10 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/5] mmu root page cleanups

I tried to separate direct and indirect page allocation to reduce memory usage with tdp, but that turned out too messy (and not much of a win - we allocate 8K per page outside the struct kvm_mmu_page). However the cleanups on the way are worthwhile.

Avi Kivity (5):
KVM: MMU: Rearrange struct kvm_mmu_page
KVM: MMU: use 16 bits for root_count
KVM: MMU: Unify 32-pae and single-root mmu setup
KVM: MMU: Use correct root gfn for direct maps
KVM: MMU: Fix check for cr3 outside guest memory

 arch/x86/include/asm/kvm_host.h |   15 ++++++-----
 arch/x86/kvm/mmu.c              |   53 +++++++++++++++++++--------------------
 2 files changed, 34 insertions(+), 34 deletions(-)