Skip to contentSkip to conversation

minios: blkfront should set protocol node

PATCH New Gerd Hoffmann 1 participant 1 message Sep 23, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 minios: blkfront should set protocol node

Hi,

$subject says all.

Should be applied to both 3.3 and devel trees.

thanks,
Gerd

extras/mini-os/blkfront.c +7 -0
diff -r 71a0bf42f9c1 extras/mini-os/blkfront.c
@@ -8,6 +8,7 @@
 #include <events.h>
 #include <errno.h>
 #include <xen/io/blkif.h>
+#include <xen/io/protocols.h>
 #include <gnttab.h>
 #include <xmalloc.h>
 #include <time.h>
@@ -139,6 +140,12 @@
                 "event-channel", "%u", dev->evtchn);
     if (err) {
         message = "writing event-channel";
+        goto abort_transaction;
+    }
+    err = xenbus_printf(xbt, nodename,
+                "protocol", "%s", XEN_IO_PROTO_ABI_NATIVE);
+    if (err) {
+        message = "writing protocol";
         goto abort_transaction;
     }
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel