NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-xen/60473 (PVHVM domU with powerd panics with xl suspend)
The following reply was made to PR port-xen/60473; it has been noted by GNATS.
From: Stephen Borrill <netbsd%precedence.co.uk@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: port-xen-maintainer%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost, riastradh%NetBSD.org@localhost
Subject: Re: port-xen/60473 (PVHVM domU with powerd panics with xl suspend)
Date: Thu, 26 Nov 2026 19:42:57 +0000 (GMT)
On Fri, 20 Nov 2026, riastradh%NetBSD.org@localhost wrote:
> Synopsis: PVHVM domU with powerd panics with xl suspend
>
> State-Changed-From-To: open->feedback
> State-Changed-By: riastradh%NetBSD.org@localhost
> State-Changed-When: Fri, 20 Nov 2026 16:36:17 +0000
> State-Changed-Why:
> Can you please try again with the following patch in the guest kernel?
>
>
> # HG changeset patch
> # User Taylor R Campbell <riastradh%NetBSD.org@localhost>
> # Date 1795191178 0
> # Fri Nov 20 16:12:58 2026 +0000
> # Branch trunk
> # Node ID 30ce040155237e4beed41a0a05deadc99101bf9a
> # Parent d551824fcf5c2bd38ba70f6f7033ec7dd634c940
> # EXP-Topic riastradh-pr60986-fssbadbstore
> WIP: xencons(4): Don't suspend/resume if not in use.
>
> PR port-xen/60473: PVHVM domU with powerd panics with xl suspend
>
> diff -r d551824fcf5c -r 30ce04015523 sys/arch/xen/xen/xencons.c
> --- a/sys/arch/xen/xen/xencons.c Fri Nov 20 13:27:29 2026 +0000
> +++ b/sys/arch/xen/xen/xencons.c Fri Nov 20 16:12:58 2026 +0000
> @@ -200,11 +200,12 @@ xencons_attach(device_t parent, device_t
> xencons_console_device = sc;
>
> xencons_resume(self, PMF_Q_NONE);
> + pmf_device_register(self, xencons_suspend, xencons_resume);
> + } else {
> + pmf_device_register(self, NULL, NULL);
> }
> - sc->polling = 0;
>
> - if (!pmf_device_register(self, xencons_suspend, xencons_resume))
> - aprint_error_dev(self, "couldn't establish power handler\n");
> + sc->polling = 0;
> }
Wirh this patch, it does not panic.
The domU console shows (yes, it's a bit garbled):
[ 29.4985871] acpi0: entering state S3
[ 29.4985871] Flushing disk caches: done
[ 29.5292346] Suspending devices: wskbd0 wsmouse0 spkr0 midi0 sysbeep0 pckbd0 pms0 wsdisplay0 isa0 fd0 fd1 xbd0xbd0: removed event channel 7
[ 30.0385939] xennet0xennet0: removed event channel 8
[ 30.0579843] xenbus0xenbus0: removed event channel 1
[ 30.0784448] xencons0 hpet0 attimer1 pcppi1 pckbc1 pckbc2 fdc0 com0 pchb0 pcib0 piixide0 piixpm0 vga0 acpicpu0 ioapic0 cpu0 hypervisor0 acpi0 pci0 mainbus0 dk0 dk1 swwdog0.
The dom0 shows:
dom0# xl list nb11hvm
Name ID Mem VCPUs State
Time(s)
nb11hvm 5 1024 1 -b---- 10.8
dom0# xl suspend nb11hvm
libxl: error: libxl_dom_suspend.c:367:suspend_common_wait_guest_timeout: Domain 5:guest did not suspend, timed out
dom0# xl list nb11hvm
Name ID Mem VCPUs State
Time(s)
nb11hvm 5 1024 1 ------ 10.9
At this point, the domU is not functioning. It cannot be resumed:
dom0# xl resume nb11hvm
xc: error: Dom 5 not suspended: (shutdown 0, reason 255): Internal error libxl: error: libxl_dom_suspend.c:661:domain_resume_done: Domain 5:xc_domain_resume failed: Invalid argument
--
Stephen
Home |
Main Index |
Thread Index |
Old Index