The systemd may be configured to mask ctrl-alt-del via "systemctl mask ctrl-alt-del.target". As a result, the pv reboot would not work as signal is ignored.
This patch always enables C_A_D before the call of ctrl_alt_del() in order to force the reboot. Reported-by: Rose Wang <rose.w...@oracle.com> Cc: Joe Jin <joe....@oracle.com> Cc: Boris Ostrovsky <boris.ostrov...@oracle.com> Signed-off-by: Dongli Zhang <dongli.zh...@oracle.com> --- drivers/xen/manage.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c index cd046684e0d1..3190d0ecb52e 100644 --- a/drivers/xen/manage.c +++ b/drivers/xen/manage.c @@ -204,6 +204,13 @@ static void do_poweroff(void) static void do_reboot(void) { shutting_down = SHUTDOWN_POWEROFF; /* ? */ + /* + * The systemd may be configured to mask ctrl-alt-del via + * "systemctl mask ctrl-alt-del.target". As a result, the pv reboot + * would not work. To enable C_A_D would force the reboot. + */ + C_A_D = 1; + ctrl_alt_del(); } -- 2.17.1