mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
KVM: VMX: Fix interrupt checking on lightweight exit
With kernel-injected interrupts, we need to check for interrupts on lightweight exits too. Signed-off-by: Gregory Haskins <ghaskins@novell.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
parent
2eeb2e94eb
commit
ff1dc7942b
@ -1992,13 +1992,13 @@ static int vmx_vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
|
|||||||
int r;
|
int r;
|
||||||
|
|
||||||
preempted:
|
preempted:
|
||||||
if (!vcpu->mmio_read_completed)
|
|
||||||
do_interrupt_requests(vcpu, kvm_run);
|
|
||||||
|
|
||||||
if (vcpu->guest_debug.enabled)
|
if (vcpu->guest_debug.enabled)
|
||||||
kvm_guest_debug_pre(vcpu);
|
kvm_guest_debug_pre(vcpu);
|
||||||
|
|
||||||
again:
|
again:
|
||||||
|
if (!vcpu->mmio_read_completed)
|
||||||
|
do_interrupt_requests(vcpu, kvm_run);
|
||||||
|
|
||||||
vmx_save_host_state(vcpu);
|
vmx_save_host_state(vcpu);
|
||||||
kvm_load_guest_fpu(vcpu);
|
kvm_load_guest_fpu(vcpu);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user