mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-19 04:14:49 +08:00
KVM: VMX: Fix locking imbalance on emulation failure
We have to disable preemption and IRQs on every exit from handle_invalid_guest_state, otherwise we generate at least a preempt_disable imbalance. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
34f0c1ad27
commit
263799a361
@ -3168,7 +3168,7 @@ static void handle_invalid_guest_state(struct kvm_vcpu *vcpu,
|
|||||||
|
|
||||||
if (err != EMULATE_DONE) {
|
if (err != EMULATE_DONE) {
|
||||||
kvm_report_emulation_failure(vcpu, "emulation failure");
|
kvm_report_emulation_failure(vcpu, "emulation failure");
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (signal_pending(current))
|
if (signal_pending(current))
|
||||||
|
Loading…
Reference in New Issue
Block a user