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] [PATCH 10 of 10] New/Updated drivers: Disable xenbus warning

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 10 of 10] New/Updated drivers: Disable xenbus warning for console during domU boot and vfb timeout during domU shutdown
From: Daniel Kiper <dkiper@xxxxxxxxxxxx>
Date: Tue, 24 Nov 2009 13:02:29 +0100
Delivery-date: Tue, 24 Nov 2009 04:05:57 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.3.28i
# HG changeset patch
# User root@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Date 1259017006 -3600
# Node ID bbc156985789747ac1373472e5e924315743edc1
# Parent  1db1bb63824b25f97d127449faeb3a56f1272c97
Disable xenbus warning for console during domU boot
and vfb timeout during domU shutdown
Signed-off-by: Daniel Kiper <dkiper@xxxxxxxxxxxx>

diff -r 1db1bb63824b -r bbc156985789 drivers/xen/xenbus/xenbus_probe.c
--- a/drivers/xen/xenbus/xenbus_probe.c Mon Nov 23 07:32:47 2009 +0000
+++ b/drivers/xen/xenbus/xenbus_probe.c Mon Nov 23 23:56:46 2009 +0100
@@ -363,6 +363,10 @@ static void xenbus_dev_shutdown(struct d
                goto out;
        }
        xenbus_switch_state(dev, XenbusStateClosing);
+
+       if (!strcmp(dev->devicetype, "vfb"))
+               goto out;
+
        timeout = wait_for_completion_timeout(&dev->down, timeout);
        if (!timeout)
                printk("%s: %s timeout closing device\n", __FUNCTION__, 
dev->nodename);
@@ -581,6 +585,9 @@ static int xenbus_probe_frontend(const c
 {
        char *nodename;
        int err;
+
+       if (!strcmp(type, "console"))
+               return 0;
 
        nodename = kasprintf(GFP_KERNEL, "%s/%s/%s", xenbus_frontend.root, 
type, name);
        if (!nodename)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH 10 of 10] New/Updated drivers: Disable xenbus warning for console during domU boot and vfb timeout during domU shutdown, Daniel Kiper <=