Re: kvm tools: why SDL window does not exit on "poweroff"?

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

 



On Fri, Apr 12, 2013 at 5:17 PM, Pekka Enberg <penberg@xxxxxxxxxx> wrote:
> On Fri, Apr 12, 2013 at 10:42 AM, Lin Ming <minggr@xxxxxxxxx> wrote:
>> I run "poweroff" or "halt" in SDL window, but the window does not exit
>> although guest is already halted. But qemu can exit properly.
>>
>> Is it because "hlt" instruction is not emulated?
>> Or other reason?
>>
>> Any hint to fix it?
>
> IIRC, poweroff is supposed to happen via some dedicated ioport on x86.
> Cyrill, didn't you look into this at some point?

x86 poweroff happens via ACPI S5 state.
There's no BIOS support in kvmtool. So ACPI is not supported.

With "acpi=off", qemu can't really "poweroff" guest too.

Run "poweroff" in qemu with acpi on.

Will now halt.
[   13.764951] sd 0:0:0:0: [sda] Stopping disk
[   13.766309] ACPI: Preparing to enter system sleep state S5
[   13.767565] Disabling non-boot CPUs ...
[   13.768294] Power down.


Run "poweroff" in qemu with acpi off.

Will now halt.
[   16.773539] sd 0:0:0:0: [sda] Stopping disk
[   16.775245] System halted.

Will BIOS support be added in kvmtool in the future?

Thanks,
Lin Ming
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux