Skip to content

Commit 0dd45f2

Browse files
committed
KVM: x86: Re-enter guest if WRMSR(X2APIC_ICR) fastpath is successful
Re-enter the guest in the fastpath if WRMSR emulation for x2APIC's ICR is successful, as no additional work is needed, i.e. there is no code unique for WRMSR exits between the fastpath and the "!= EXIT_FASTPATH_NONE" check in __vmx_handle_exit(). Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
1 parent 5a7c7d1 commit 0dd45f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/x86.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2195,7 +2195,7 @@ fastpath_t handle_fastpath_set_msr_irqoff(struct kvm_vcpu *vcpu)
21952195
data = kvm_read_edx_eax(vcpu);
21962196
if (!handle_fastpath_set_x2apic_icr_irqoff(vcpu, data)) {
21972197
kvm_skip_emulated_instruction(vcpu);
2198-
ret = EXIT_FASTPATH_EXIT_HANDLED;
2198+
ret = EXIT_FASTPATH_REENTER_GUEST;
21992199
}
22002200
break;
22012201
case MSR_IA32_TSC_DEADLINE:

0 commit comments

Comments
 (0)