Skip to content

KVM: x86: replace kvm_vcpu_map usage in vmx

David Stevens kvm lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: Support sharing gpc locksarch/x86/kvm/x86.c arch/x86/kvm/xen.c include/linux/kvm_host.h +2 more+70 -483 replies
2/3KVM: use gfn=>pfn cache in nested_get_vmcs12_pagesarch/x86/kvm/vmx/nested.c arch/x86/kvm/vmx/vmx.c arch/x86/kvm/vmx/vmx.h+204 -510 replies
3/3KVM: use gfn=>pfn cache for evmcsarch/x86/kvm/vmx/hyperv.c arch/x86/kvm/vmx/hyperv.h arch/x86/kvm/vmx/nested.c +2 more+158 -490 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchDavid Woodhouse
1/3T-b R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] KVM: x86: replace kvm_vcpu_map usage in vmx

From: David Stevens <[email protected]>

This series replaces the usage of kvm_vcpu_map in vmx with gfn_to_pfn_cache. See [1] for details on why kvm_vcpu_map is broken.

The presence of kvm_vcpu_map blocks another series I would like to try to merge [2]. Although I'm not familiar with the internals of vmx, I've gone ahead and taken a stab at this cleanup. I've done some manual testing with nested VMs, and KVM selftests pass, but thorough feedback would be appreciated. Once this cleanup is done, I'll take a look at removing kvm_vcpu_map from svm.

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/

David Stevens (3):
KVM: Support sharing gpc locks
KVM: use gfn=>pfn cache in nested_get_vmcs12_pages
KVM: use gfn=>pfn cache for evmcs

 arch/x86/kvm/vmx/hyperv.c |  41 ++++-
 arch/x86/kvm/vmx/hyperv.h |   2 +
 arch/x86/kvm/vmx/nested.c | 329 +++++++++++++++++++++++++++++---------
 arch/x86/kvm/vmx/vmx.c    |  48 +++++-
 arch/x86/kvm/vmx/vmx.h    |  14 +-
 arch/x86/kvm/x86.c        |   8 +-
 arch/x86/kvm/xen.c        |  58 +++----
 include/linux/kvm_host.h  |  12 ++
 include/linux/kvm_types.h |   3 +-
 virt/kvm/pfncache.c       |  37 +++--
 10 files changed, 418 insertions(+), 134 deletions(-)
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog