• Jan Kiszka's avatar
    x86/ipipe: kvm: Only put vcpu if it is active · 2b8250ae
    Jan Kiszka authored
    We may leave kvm_arch_vcpu_put with the ipipe notifier still registered
    in case shared MSRs are still active. If a VM preemption will hit us
    after that point but before the user return notifier fired, we may run
    kvm_arch_vcpu_put again from __ipipe_handle_vm_preemption. Do not rely
    on this being harmless and rather use a flag to decide if the run is
    Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
x86.c 216 KB