* kvm tools: why SDL window does not exit on "poweroff"? @ 2013-04-12 7:42 Lin Ming 2013-04-12 9:17 ` Pekka Enberg 0 siblings, 1 reply; 8+ messages in thread From: Lin Ming @ 2013-04-12 7:42 UTC (permalink / raw) To: Pekka Enberg; +Cc: kvm Hi all, 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? Thanks, Lin Ming ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kvm tools: why SDL window does not exit on "poweroff"? 2013-04-12 7:42 kvm tools: why SDL window does not exit on "poweroff"? Lin Ming @ 2013-04-12 9:17 ` Pekka Enberg 2013-04-12 9:22 ` Cyrill Gorcunov 2013-04-15 2:27 ` Lin Ming 0 siblings, 2 replies; 8+ messages in thread From: Pekka Enberg @ 2013-04-12 9:17 UTC (permalink / raw) To: Lin Ming; +Cc: KVM General, Cyrill Gorcunov, Asias He, Sasha Levin On Fri, Apr 12, 2013 at 10:42 AM, Lin Ming <minggr@gmail.com> 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? Pekka ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kvm tools: why SDL window does not exit on "poweroff"? 2013-04-12 9:17 ` Pekka Enberg @ 2013-04-12 9:22 ` Cyrill Gorcunov 2013-04-15 2:27 ` Lin Ming 1 sibling, 0 replies; 8+ messages in thread From: Cyrill Gorcunov @ 2013-04-12 9:22 UTC (permalink / raw) To: Pekka Enberg; +Cc: Lin Ming, KVM General, Asias He, Sasha Levin On Fri, Apr 12, 2013 at 12:17:58PM +0300, Pekka Enberg wrote: > On Fri, Apr 12, 2013 at 10:42 AM, Lin Ming <minggr@gmail.com> 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? Hi guys! Not yet :-) Will report once I manage to. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kvm tools: why SDL window does not exit on "poweroff"? 2013-04-12 9:17 ` Pekka Enberg 2013-04-12 9:22 ` Cyrill Gorcunov @ 2013-04-15 2:27 ` Lin Ming 2013-04-15 6:48 ` Pekka Enberg 1 sibling, 1 reply; 8+ messages in thread From: Lin Ming @ 2013-04-15 2:27 UTC (permalink / raw) To: Pekka Enberg; +Cc: KVM General, Cyrill Gorcunov, Asias He, Sasha Levin On Fri, Apr 12, 2013 at 5:17 PM, Pekka Enberg <penberg@kernel.org> wrote: > On Fri, Apr 12, 2013 at 10:42 AM, Lin Ming <minggr@gmail.com> 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kvm tools: why SDL window does not exit on "poweroff"? 2013-04-15 2:27 ` Lin Ming @ 2013-04-15 6:48 ` Pekka Enberg 2013-04-15 7:11 ` Lin Ming 0 siblings, 1 reply; 8+ messages in thread From: Pekka Enberg @ 2013-04-15 6:48 UTC (permalink / raw) To: Lin Ming Cc: KVM General, Cyrill Gorcunov, Asias He, Sasha Levin, William Dauchy, Ingo Molnar Hello, On Mon, Apr 15, 2013 at 5:27 AM, Lin Ming <minggr@gmail.com> wrote: > Will BIOS support be added in kvmtool in the future? Yes, I expect that to happen eventually. Various patchsets have been started by multiple people to support SeaBIOS but there hasn't been a focused effort to push them forward. Pekka ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kvm tools: why SDL window does not exit on "poweroff"? 2013-04-15 6:48 ` Pekka Enberg @ 2013-04-15 7:11 ` Lin Ming 2013-05-23 7:30 ` Pekka Enberg 0 siblings, 1 reply; 8+ messages in thread From: Lin Ming @ 2013-04-15 7:11 UTC (permalink / raw) To: Pekka Enberg Cc: KVM General, Cyrill Gorcunov, Asias He, Sasha Levin, William Dauchy, Ingo Molnar On Mon, Apr 15, 2013 at 2:48 PM, Pekka Enberg <penberg@kernel.org> wrote: > Hello, Hi, > > On Mon, Apr 15, 2013 at 5:27 AM, Lin Ming <minggr@gmail.com> wrote: >> Will BIOS support be added in kvmtool in the future? > > Yes, I expect that to happen eventually. Various patchsets have been > started by multiple people to support SeaBIOS but there hasn't been a > focused effort to push them forward. Could you show me the links to these patchsets? I'd like to read and try it. Thanks. > > Pekka ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kvm tools: why SDL window does not exit on "poweroff"? 2013-04-15 7:11 ` Lin Ming @ 2013-05-23 7:30 ` Pekka Enberg 2013-05-23 7:47 ` Asias He 0 siblings, 1 reply; 8+ messages in thread From: Pekka Enberg @ 2013-05-23 7:30 UTC (permalink / raw) To: Lin Ming Cc: KVM General, Cyrill Gorcunov, Asias He, Sasha Levin, William Dauchy, Ingo Molnar Hello, On 04/15/2013 10:11 AM, Lin Ming wrote: > On Mon, Apr 15, 2013 at 2:48 PM, Pekka Enberg <penberg@kernel.org> wrote: >> Hello, > > Hi, > >> >> On Mon, Apr 15, 2013 at 5:27 AM, Lin Ming <minggr@gmail.com> wrote: >>> Will BIOS support be added in kvmtool in the future? >> >> Yes, I expect that to happen eventually. Various patchsets have been >> started by multiple people to support SeaBIOS but there hasn't been a >> focused effort to push them forward. > > Could you show me the links to these patchsets? > I'd like to read and try it. I managed to track down the work thanks to Asias and I uploaded it here: https://github.com/penberg/seabios Pekka ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kvm tools: why SDL window does not exit on "poweroff"? 2013-05-23 7:30 ` Pekka Enberg @ 2013-05-23 7:47 ` Asias He 0 siblings, 0 replies; 8+ messages in thread From: Asias He @ 2013-05-23 7:47 UTC (permalink / raw) To: Pekka Enberg Cc: Lin Ming, KVM General, Cyrill Gorcunov, Sasha Levin, William Dauchy, Ingo Molnar On Thu, May 23, 2013 at 10:30:00AM +0300, Pekka Enberg wrote: > Hello, > > On 04/15/2013 10:11 AM, Lin Ming wrote: > >On Mon, Apr 15, 2013 at 2:48 PM, Pekka Enberg <penberg@kernel.org> wrote: > >>Hello, > > > >Hi, > > > >> > >>On Mon, Apr 15, 2013 at 5:27 AM, Lin Ming <minggr@gmail.com> wrote: > >>>Will BIOS support be added in kvmtool in the future? > >> > >>Yes, I expect that to happen eventually. Various patchsets have been > >>started by multiple people to support SeaBIOS but there hasn't been a > >>focused effort to push them forward. > > > >Could you show me the links to these patchsets? > >I'd like to read and try it. > > I managed to track down the work thanks to Asias and I uploaded it here: > > https://github.com/penberg/seabios Pekka, perhaps, you can put my un-finished VGA bits in your git tree as well, for people who might be interested in and want to work on it ;-) -- Asias ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-05-23 7:47 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-04-12 7:42 kvm tools: why SDL window does not exit on "poweroff"? Lin Ming 2013-04-12 9:17 ` Pekka Enberg 2013-04-12 9:22 ` Cyrill Gorcunov 2013-04-15 2:27 ` Lin Ming 2013-04-15 6:48 ` Pekka Enberg 2013-04-15 7:11 ` Lin Ming 2013-05-23 7:30 ` Pekka Enberg 2013-05-23 7:47 ` Asias He
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox