lkml.org 
[lkml]   [2020]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] KVM: VMX: Use basic exit reason for cheking and indexing
Date
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(-)

--
2.23.0

\
 
 \ /
  Last update: 2020-02-24 03:14    [W:0.063 / U:2.964 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site