Skip to content

KVM: VMX: Use basic exit reason for cheking and indexing

Xiaoyao Li kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kvm: vmx: Use basic exit reason to check if it's the specific VM EXITarch/x86/kvm/vmx/vmx.c arch/x86/kvm/vmx/vmx.h+25 -2113 replies
2/2kvm: nvmx: Use basic(exit_reason) when checking specific EXIT_REASONarch/x86/kvm/vmx/nested.c arch/x86/kvm/vmx/nested.h+4 -40 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/2] KVM: VMX: Use basic exit reason for cheking and indexing

Current KVM directly uses the whole 32-bit EXIT REASON when
1) checking: if (vmx->exit_reason == EXIT_REASON_*)
2) indexing: kvm_vmx_exit_handlers[exit_reason]

However, only the low 16-bit of EXIT REASON serves as basic Exit Reason. Fix it by using the 16-bit basic exit reason.

BTW, I'm not sure if it's necessary to split nested case into a seperate patch.

Xiaoyao Li (2):
kvm: vmx: Use basic exit reason to check if it's the specific VM EXIT
kvm: nvmx: Use basic(exit_reason) when checking specific EXIT_REASON

 arch/x86/kvm/vmx/nested.c |  6 +++---
 arch/x86/kvm/vmx/nested.h |  2 +-
 arch/x86/kvm/vmx/vmx.c    | 44 ++++++++++++++++++++-------------------
 arch/x86/kvm/vmx/vmx.h    |  2 ++
 4 files changed, 29 insertions(+), 25 deletions(-)
Signature · 1 line
2.23.0