[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] x86/shutdown: change default reboot method preference


  • To: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Fri, 13 Feb 2026 08:54:34 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=DCKdz/pDlJYVq2CMS0QXX1zGEFRtLJeSi49IgpAHzZs=; b=sjyA2kiolcbDl1w6QbrmlFNZZym3fG/x9q22hfpTlVN1N0RFKscg49VZCuwPFSQJlv5HebWU831OFAFLVr96k5QZ9VwTtdhAL/69gXPRUtHBZfI+HgacCNR9P6NcYya1CUkRHfb3ktWmd/hQx4kUWtw/mboIuL2iG6+v41FsIsRA7JcXYeT/El2+V8zaWlSDYnzk1siUJnhZJjQd6d4SfaJUQu8pG4EeuVB6GVDg3r7H2nkkMl2R8oAP+eBIZR8Odur6JoO5UYe2CcHA8X0+TMOU23oYuLv8SJlAGm/bQWRiUwLzb73NlEBFvY3S3vkBWsjjfRs6CgWxgG8bXnalDg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tgCOZEXromjSHqkiwYWU5FFVmtiFaOQ88rkWGzo1/5G+81A6Ml5In6Y1mkP1fl4K3UcpUa4WAHP+4m+KBRae38ACFoQf2wta8k0B//HLVEoc6zILoqiULVHCBKgcXhiIQly79/+tGQXuf+vJm3lM2CM5l3MK7veBzpon147gD+D0XB6VTV8/B6t5qbcp4r9vTEEQY9HERK3raSHSzVUDpM9DxbXga3ZJBgSiVGi6m3Ml4bSvOMLiUxIZDTLqDuCnWBeSz5zj7dIU2d6uVtPKlgHOKXFQdPDPDo+pHB81T9YUuoROiuqDuS6y4GJMiWah+GY+pJ+deY1Th/3ubgqZ3Q==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Fri, 13 Feb 2026 07:54:54 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Fri, Feb 13, 2026 at 01:39:56AM +0100, Marek Marczykowski-Górecki wrote:
> On Fri, Sep 15, 2023 at 09:43:47AM +0200, Roger Pau Monne wrote:
> > The current logic to chose the preferred reboot method is based on the mode 
> > Xen
> > has been booted into, so if the box is booted from UEFI, the preferred 
> > reboot
> > method will be to use the ResetSystem() run time service call.
> > 
> > However, that method seems to be widely untested, and quite often leads to a
> > result similar to:
> > 
> > Hardware Dom0 shutdown: rebooting machine
> > ----[ Xen-4.18-unstable  x86_64  debug=y  Tainted:   C    ]----
> > CPU:    0
> > RIP:    e008:[<0000000000000017>] 0000000000000017
> > RFLAGS: 0000000000010202   CONTEXT: hypervisor
> > [...]
> > Xen call trace:
> >    [<0000000000000017>] R 0000000000000017
> >    [<ffff83207eff7b50>] S ffff83207eff7b50
> >    [<ffff82d0403525aa>] F machine_restart+0x1da/0x261
> >    [<ffff82d04035263c>] F apic_wait_icr_idle+0/0x37
> >    [<ffff82d040233689>] F smp_call_function_interrupt+0xc7/0xcb
> >    [<ffff82d040352f05>] F call_function_interrupt+0x20/0x34
> >    [<ffff82d04033b0d5>] F do_IRQ+0x150/0x6f3
> >    [<ffff82d0402018c2>] F common_interrupt+0x132/0x140
> >    [<ffff82d040283d33>] F 
> > arch/x86/acpi/cpu_idle.c#acpi_idle_do_entry+0x113/0x129
> >    [<ffff82d04028436c>] F 
> > arch/x86/acpi/cpu_idle.c#acpi_processor_idle+0x3eb/0x5f7
> >    [<ffff82d04032a549>] F arch/x86/domain.c#idle_loop+0xec/0xee
> > 
> > ****************************************
> > Panic on CPU 0:
> > FATAL TRAP: vector = 6 (invalid opcode)
> > ****************************************
> > 
> > Which in most cases does lead to a reboot, however that's unreliable.
> 
> It's not relevant anymore, but posting just for the posterity: I
> just found yet another system where EFI ResetSystem() crashes. What's
> interesting about it, it's rather new system - NUC 14 with Lunar Lake.
> It crashes as follows:

Interesting, all the NUC systems I owned had what seemed like proper
UEFI implementations.  However those are the Intel ones.  Lunar Lake
is made by ASUS.

Thanks, Roger.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.