Skip to contentSkip to conversation

New/Updated drivers: Disable xenbus warning for console during domU boot and vfb timeout during domU shutdown

PATCH New Daniel Kiper 1 participant 1 message Nov 24, 2009 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 New/Updated drivers: Disable xenbus warning for console during domU boot and vfb timeout during domU shutdown

# HG changeset patch
# User [email protected] # Date 1259017006 -3600
# Node ID bbc156985789747ac1373472e5e924315743edc1 # Parent 1db1bb63824b25f97d127449faeb3a56f1272c97 Disable xenbus warning for console during domU boot and vfb timeout during domU shutdown

drivers/xen/xenbus/xenbus_probe.c +7 -0
diff -r 1db1bb63824b -r bbc156985789 drivers/xen/xenbus/xenbus_probe.c
@@ -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)