Port-xen archive

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

Re: NetBSD 5.1 with XEN3.3 - ACPI powerdown



On 18.02.2011 16:44, Hugo Silva wrote:
> As far as I remember I've had this problem with NetBSD dom0s and XEN.
> The last line on the screen is something related to entering ACPI state
> S5,and then the hardware never powers down.

I hardly see how this would be possible. The shutdown code looks like
following:

[...]
if ((howto & RB_POWERDOWN) == RB_POWERDOWN) {
#ifdef XEN
                HYPERVISOR_shutdown();
                for (;;);
#endif
#ifdef XBOX
                if (arch_i386_is_xbox) {
                        xbox_poweroff();
                        for (;;);
                }
#endif
#if NACPICA > 0
                if (s != IPL_NONE)
                        splx(s);

                acpi_enter_sleep_state(ACPI_STATE_S5);
#endif

Xen code should never print the message about entering S5. ACPI is not
supported currently anyway.

> I had a Debian dom0 for a short while and as far as I remember, it
> didn't have this problem (Xen 3.2.1 on Linux vs 3.3.2 on NetBSD though)
> 
> Just my 2 cents.

From a quick look at pv_ops Linux kernel, the SHUTDOWN_poweroff is
performed the same way as NetBSD, but instead of ending in an endless
for loop, it ends with BUG().

Unless I am missing something somewhere (currently, there's no ACPI
support, so hypervisor is certainly missing ACPI information), this
hypercall should not return, as it will turn off all VCPUs. And without
running CPUs, there's no chance the domain can do anything after that.

-- 
Jean-Yves Migeon
jeanyves.migeon%free.fr@localhost


Home | Main Index | Thread Index | Old Index