Skip to content

KVM: VMX: MSR intercept/passthrough cleanup and simplification

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Applied to kvm-x86 vmx, with Dongli's suggested comment indentation fixup.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 3 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: VMX: fix comment to add LBR to passthrough MSRsarch/x86/kvm/vmx/vmx.c+1 -10 replies
2/3KVM: VMX: return early if msr_bitmap is not supportedarch/x86/kvm/vmx/vmx.c+3 -00 replies
3/3KVM: VMX: Combine "check" and "get" APIs for passthrough MSR lookupsarch/x86/kvm/vmx/vmx.c+25 -382 replies

Reviews trailers per patch

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

PatchDongli Zhang
1/3
2/3
3/3R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/3] KVM: VMX: MSR intercept/passthrough cleanup and simplification

Clean up VMX's MSR passthrough code, in particular the portion that deals with userspace MSR filters (KVM needs to force interception if userspace wants to intercept even if KVM wants to passthrough). As pointed out by Dongli, KVM does a linear walk twice in quick succession, which is wasteful, confuing, and unnecessarily brittle.

Same exact idea as Dongli's v1[*], just a different approach to cleaning up the API for dealing with MSR filters.

v2: Combine "check and get" into a single API instead of adding an out param.

Dongli Zhang (2):
KVM: VMX: fix comment to add LBR to passthrough MSRs
KVM: VMX: return early if msr_bitmap is not supported

Sean Christopherson (1):
KVM: VMX: Combine "check" and "get" APIs for passthrough MSR lookups

 arch/x86/kvm/vmx/vmx.c | 68 ++++++++++++++++++------------------------
 1 file changed, 29 insertions(+), 39 deletions(-)

base-commit: ec1e3d33557babed2c2c2c7da6e84293c2f56f58

Signature · 1 line
2.44.0.rc0.258.g7320e95886-goog