aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <[email protected]>2016-03-18 16:53:29 +0100
committerPaolo Bonzini <[email protected]>2016-03-22 12:02:38 +0100
commit2849eb4f99d54925c543db12917127f88b3c38ff (patch)
tree295dd3b9a598a2cbc047e1c9173bbf976546aea1
parenta4717218280aac19b3d61b64363ee05fcb95e473 (diff)
KVM: VMX: avoid guest hang on invalid invept instruction
A guest executing an invalid invept instruction would hang because the instruction pointer was not updated. Cc: [email protected] Fixes: bfd0a56b90005f8c8a004baf407ad90045c2b11e Reviewed-by: David Matlack <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
-rw-r--r--arch/x86/kvm/vmx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 75173efccac5..01f515873637 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -7399,6 +7399,7 @@ static int handle_invept(struct kvm_vcpu *vcpu)
if (!(types & (1UL << type))) {
nested_vmx_failValid(vcpu,
VMXERR_INVALID_OPERAND_TO_INVEPT_INVVPID);
+ skip_emulated_instruction(vcpu);
return 1;
}