WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] NetBSD/Xen kernel fixups?

To: Derrik Pates <demon@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] NetBSD/Xen kernel fixups?
From: Christian Limpach <christian.limpach@xxxxxxxxx>
Date: Fri, 18 Feb 2005 17:27:09 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 18 Feb 2005 16:28:27 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=ppCgbcQvIiYFcOqku7tr4YVfCceGz4dX67DagGJUOBf7V50fFWW9HwYSNNyUYc3EL+0dUnnD/cTKk5SIibgNi4rF9VHnn4Mlod/dE4BFdXV/iVUXjcsHUYZj3HqQM3j1jJ8SuFPjwAO1qOeWRzGAjwazDeMluBEoUbYYN32o41Y=
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <4214D210.2080407@xxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <4214D210.2080407@xxxxxxxxxxxxx>
Reply-to: Christian.Limpach@xxxxxxxxxxxx
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
On Thu, 17 Feb 2005 12:19:12 -0500, Derrik Pates <demon@xxxxxxxxxxxxx> 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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>