Commit 2e5b8f11 authored by Jan Kiszka's avatar Jan Kiszka Committed by Paolo Bonzini
Browse files

x86: vmx: Remove bogus GUEST_RIP update from interrupt test



When we get an EXTINT exit, the guest RIP already points to the
instruction after the one that sent it into HLT state. Moving
the RIP based on stale insn_len caused spurious L2 crashes.
Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
Message-Id: <554729D3.5060005@siemens.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent b895b967
......@@ -1297,10 +1297,8 @@ static int interrupt_exit_handler(void)
asm volatile ("nop");
irq_disable();
}
if (vmx_get_test_stage() >= 2) {
if (vmx_get_test_stage() >= 2)
vmcs_write(GUEST_ACTV_STATE, ACTV_ACTIVE);
vmcs_write(GUEST_RIP, guest_rip + insn_len);
}
return VMX_TEST_RESUME;
default:
printf("Unknown exit reason, %d\n", reason);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment