Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 086748e5 authored by Ian Campbell's avatar Ian Campbell Committed by Jeremy Fitzhardinge
Browse files

xen/panic: use xen_reboot and fix smp_send_stop



Offline vcpu when using stop_self.

Signed-off-by: default avatarIan Campbell <ian.campbell@citrix.com>
Signed-off-by: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
parent f09f6d19
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1043,10 +1043,7 @@ static void xen_crash_shutdown(struct pt_regs *regs)
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;
}

+2 −0
Original line number Diff line number Diff line
@@ -394,6 +394,8 @@ static void stop_self(void *v)
	load_cr3(swapper_pg_dir);
	/* should set up a minimal gdt */

	set_cpu_online(cpu, false);

	HYPERVISOR_vcpu_op(VCPUOP_down, cpu, NULL);
	BUG();
}