• A
    HOTPLUG: Add CPU_DYING notifier · db912f96
    Avi Kivity 提交于
    KVM wants a notification when a cpu is about to die, so it can disable
    hardware extensions, but at a time when user processes cannot be scheduled
    on the cpu, so it doesn't try to use virtualization extensions after they
    have been disabled.
    
    This adds a CPU_DYING notification.  The notification is called in atomic
    context on the doomed cpu.
    Signed-off-by: NAvi Kivity <avi@qumranet.com>
    db912f96
cpu.c 7.8 KB