* [PATCH] kvm:vmx:changes in handle_io() for code cleanup.
@ 2020-12-11 0:33 Stephen Zhang
0 siblings, 0 replies; only message in thread
From: Stephen Zhang @ 2020-12-11 0:33 UTC (permalink / raw)
To: pbonzini, seanjc, vkuznets, wanpengli, jmattson, joro, tglx,
mingo, bp, x86, hpa
Cc: kvm, linux-kernel, Stephen Zhang
Signed-off-by: Stephen Zhang <stephenzhangzsd@gmail.com>
---
arch/x86/kvm/vmx/vmx.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
index 47b8357..e1954df 100644
--- a/arch/x86/kvm/vmx/vmx.c
+++ b/arch/x86/kvm/vmx/vmx.c
@@ -4899,15 +4899,15 @@ static int handle_triple_fault(struct kvm_vcpu *vcpu)
static int handle_io(struct kvm_vcpu *vcpu)
{
unsigned long exit_qualification;
- int size, in, string;
+ int size, in;
unsigned port;
exit_qualification = vmx_get_exit_qual(vcpu);
- string = (exit_qualification & 16) != 0;
++vcpu->stat.io_exits;
- if (string)
+ /* String instruction */
+ if (exit_qualification & BIT(4))
return kvm_emulate_instruction(vcpu, 0);
port = exit_qualification >> 16;
--
1.8.3.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-11 0:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-11 0:33 [PATCH] kvm:vmx:changes in handle_io() for code cleanup Stephen Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).