Offline vcpu when using stop_self.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
static int
xen_panic_event(struct notifier_block *this, unsigned long event, void *ptr)
{
- struct sched_shutdown r = { .reason = SHUTDOWN_crash};
-
- if (HYPERVISOR_sched_op(SCHEDOP_shutdown, &r))
- BUG();
+ xen_reboot(SHUTDOWN_crash);
return NOTIFY_DONE;
}
load_cr3(swapper_pg_dir);
/* should set up a minimal gdt */
+ set_cpu_online(cpu, false);
+
HYPERVISOR_vcpu_op(VCPUOP_down, cpu, NULL);
BUG();
}