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

[Xen-devel] ignoring xenbus state transitions during shutdown

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] ignoring xenbus state transitions during shutdown
From: David Lively <dlively@xxxxxxxxxxxxxxx>
Date: Mon, 25 Jun 2007 14:41:30 -0400
Delivery-date: Mon, 25 Jun 2007 11:39:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.4 (X11/20070615)
Hi Folks -
In otherend_changed() in xenbus_probe.c, the driver is trying to ignore xenbus state transitions while the guest OS is shutting down. It currently does this by looking for system_state > SYSTEM_RUNNING. But system_state is not exported by some kernels that use it (e.g., SLES9 running in a HVM guest), so the xenbus driver can't be loaded. The comments indicate we're trying to avoid a failure that occurs when there is no rootfs. I haven't yet seen this failure (after removing the code my shutdowns with PV drivers seemed to work fine, though I haven't pushed hard yet), but I suspect I shouldn't be ignoring it. I was thinking it might be better to test for the screw condition (no rootfs) directly, perhaps something like try vfs_stat("/", &stat) and see whether it fails (??). (These state transitions are relatively rare, so it doesn't need to be a particularly cheap test.) Any other suggestions? I've heard of the old global 'system_running', but that's not used SLES9, at least.

Thanks in Advance,
Dave


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

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