• Avi Kivity's avatar
    HOTPLUG: Add CPU_DYING notifier · db912f96
    Avi Kivity authored
    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: default avatarAvi Kivity <avi@qumranet.com>
    db912f96
cpu.c 7.76 KB