Commit c78926e5 authored by Jan Kiszka's avatar Jan Kiszka

x86/ipipe: kvm: Deregister preemption notifier on interrupted VM entry

Otherwise, it may fire incorrectly, causing undesired side effects.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 3ecaa6e7
......@@ -6639,6 +6639,7 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu)
|| need_resched() || signal_pending(current)) {
vcpu->mode = OUTSIDE_GUEST_MODE;
smp_wmb();
__ipipe_exit_vm();
hard_cond_local_irq_enable();
local_irq_enable();
preempt_enable();
......
Markdown is supported
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