Skip to content

KVM: VMX: MSR intercept/passthrough cleanup and simplification

Dongli Zhang kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#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: simplify MSR interception enable/disablearch/x86/kvm/vmx/vmx.c+28 -274 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/3] KVM: VMX: MSR intercept/passthrough cleanup and simplification

The 1st patch is to fix a comment.

The 2nd patch is to avoid running into many vmx_enable_intercept_for_msr() or vmx_disable_intercept_for_msr() that may return immediately, when vmx_msr_bitmap is not supported.

The 3rd patch is to simplify vmx_enable_intercept_for_msr() and vmx_disable_intercept_for_msr(), to avoid calling possible_passthrough_msr_slot() twice.

Thank you very much!

Dongli Zhang (3):
KVM: VMX: fix comment to add LBR to passthrough MSRs
KVM: VMX: return early if msr_bitmap is not supported
KVM: VMX: simplify MSR interception enable/disable

 arch/x86/kvm/vmx/vmx.c | 60 ++++++++++++++++++++++++---------------------
 1 file changed, 32 insertions(+), 28 deletions(-)

base-commit: 7455665a3521aa7b56245c0a2810f748adc5fdd4