• A
    KVM: Fix reboot on Intel hosts · ca242ac9
    Avi Kivity 提交于
    When we reboot, we disable vmx extensions or otherwise INIT gets blocked.
    If a task on another cpu hits a vmx instruction, it will fault if vmx is
    disabled.  We trap that to avoid a nasty oops and spin until the reboot
    completes.
    
    Problem is, we sleep with interrupts disabled.  This blocks smp_send_stop()
    from running, and the reboot process halts.
    
    Fix by enabling interrupts before spinning.
    
    KVM-Stable-Tag.
    Signed-off-by: NAvi Kivity <avi@redhat.com>
    Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
    ca242ac9
kvm_main.c 50.6 KB