aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/blkfront.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-09-24 10:18:20 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-09-24 10:18:20 +0100
commit9cdbfef57080332d23ac3383290df9827493015b (patch)
tree8dacaa4054595ac42e41f6bc91aa47169c5cde01 /extras/mini-os/blkfront.c
parentd2e81c31f896ed173d0003bae52575355b01bab6 (diff)
downloadxen-9cdbfef57080332d23ac3383290df9827493015b.tar.gz
xen-9cdbfef57080332d23ac3383290df9827493015b.tar.bz2
xen-9cdbfef57080332d23ac3383290df9827493015b.zip
minios: blkfront should set protocol node
From: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'extras/mini-os/blkfront.c')
-rw-r--r--extras/mini-os/blkfront.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/extras/mini-os/blkfront.c b/extras/mini-os/blkfront.c
index 4820a5f2dd..d4b0ea54ce 100644
--- a/extras/mini-os/blkfront.c
+++ b/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>
@@ -141,6 +142,12 @@ again:
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;
+ }
err = xenbus_printf(xbt, nodename, "state", "%u",
4); /* connected */