mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-15 22:41:38 +00:00
KVM: VMX: avoid guest hang on invalid invept instruction
commit2849eb4f99upstream. A guest executing an invalid invept instruction would hang because the instruction pointer was not updated. Fixes:bfd0a56b90Reviewed-by: David Matlack <dmatlack@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4e2fa4bbba
commit
c44b175bf0
@@ -7340,6 +7340,7 @@ static int handle_invept(struct kvm_vcpu *vcpu)
|
|||||||
if (!(types & (1UL << type))) {
|
if (!(types & (1UL << type))) {
|
||||||
nested_vmx_failValid(vcpu,
|
nested_vmx_failValid(vcpu,
|
||||||
VMXERR_INVALID_OPERAND_TO_INVEPT_INVVPID);
|
VMXERR_INVALID_OPERAND_TO_INVEPT_INVVPID);
|
||||||
|
skip_emulated_instruction(vcpu);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user