* NetBSD/Xen kernel fixups?
@ 2005-02-17 17:19 Derrik Pates
2005-02-18 16:27 ` Christian Limpach
0 siblings, 1 reply; 3+ messages in thread
From: Derrik Pates @ 2005-02-17 17:19 UTC (permalink / raw)
To: xen-devel
All,
In the process of experimenting with Xen, and particularly NetBSD on
Xen, I noticed that the Xen-patched NetBSD kernel, when invoking 'halt'
or 'reboot' within NetBSD, it didn't exactly work like these do within
Linux - the NetBSD domain would continue to spin (apparently invoking
'hlt' over and over?), but the domain would not terminate by itself,
after running 'halt', and 'reboot' would try to reboot, but wouldn't
succeed - it would claim it was trying to reboot, and stop.
I went in and added calls to HYPERVISOR_shutdown() and
HYPERVISOR_reboot() in what appeared to be appropriate places, and now
'halt' and 'reboot' do work as expected. However, I'd also like to be
able to use the 'xm shutdown' command from domain 0. Is there any
interest in a patch to the netbsd-2.0-xen-sparse tree, that includes
these changes? I'll have to research how one would execute a userspace
command from within the kernel, as Linux does, to handle that operation.
--
Derrik Pates
demon@devrandom.net
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: NetBSD/Xen kernel fixups?
@ 2005-02-18 12:57 Ian Pratt
0 siblings, 0 replies; 3+ messages in thread
From: Ian Pratt @ 2005-02-18 12:57 UTC (permalink / raw)
To: Derrik Pates, xen-devel; +Cc: Christian Limpach, ian.pratt
> I went in and added calls to HYPERVISOR_shutdown() and
> HYPERVISOR_reboot() in what appeared to be appropriate
> places, and now
> 'halt' and 'reboot' do work as expected. However, I'd also like to be
> able to use the 'xm shutdown' command from domain 0. Is there any
> interest in a patch to the netbsd-2.0-xen-sparse tree, that includes
> these changes? I'll have to research how one would execute a
> userspace
> command from within the kernel, as Linux does, to handle that
> operation.
Sounds like useful functionality to me!
Ian
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: NetBSD/Xen kernel fixups?
2005-02-17 17:19 NetBSD/Xen kernel fixups? Derrik Pates
@ 2005-02-18 16:27 ` Christian Limpach
0 siblings, 0 replies; 3+ messages in thread
From: Christian Limpach @ 2005-02-18 16:27 UTC (permalink / raw)
To: Derrik Pates; +Cc: xen-devel
On Thu, 17 Feb 2005 12:19:12 -0500, Derrik Pates <demon@devrandom.net> wrote:
> In the process of experimenting with Xen, and particularly NetBSD on
> Xen, I noticed that the Xen-patched NetBSD kernel, when invoking 'halt'
> or 'reboot' within NetBSD, it didn't exactly work like these do within
> Linux - the NetBSD domain would continue to spin (apparently invoking
> 'hlt' over and over?), but the domain would not terminate by itself,
> after running 'halt', and 'reboot' would try to reboot, but wouldn't
> succeed - it would claim it was trying to reboot, and stop.
I thought this was working because I remember that I fixed it at some
point. reboot and shutdown should call the corresponding functions
and halt will not shutdown or reboot the machine but leave it in a
tight loop doing nothing. I guess it would make sense to use
HYPERVISOR_block instead of the loop so that the domain won't take a
lot of cpu, but other than that I don't see what's wrong with the
current behaviour...
> I went in and added calls to HYPERVISOR_shutdown() and
> HYPERVISOR_reboot() in what appeared to be appropriate places, and now
> 'halt' and 'reboot' do work as expected. However, I'd also like to be
> able to use the 'xm shutdown' command from domain 0. Is there any
> interest in a patch to the netbsd-2.0-xen-sparse tree, that includes
> these changes? I'll have to research how one would execute a userspace
> command from within the kernel, as Linux does, to handle that operation.
Sure, if you can figure out how to do this cleanly, that would be a
good thing to have. Thanks!
christian
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-02-18 16:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-17 17:19 NetBSD/Xen kernel fixups? Derrik Pates
2005-02-18 16:27 ` Christian Limpach
-- strict thread matches above, loose matches on Subject: below --
2005-02-18 12:57 Ian Pratt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.