All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Xen Development Mailing List <xen-devel@lists.xensource.com>
Subject: [patch] minios: blkfront should set protocol node
Date: Tue, 23 Sep 2008 20:12:34 +0200	[thread overview]
Message-ID: <48D93192.5090104@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 90 bytes --]

  Hi,

$subject says all.

Should be applied to both 3.3 and devel trees.

thanks,
  Gerd

[-- Attachment #2: xen-minios-blk-set-protocol.patch --]
[-- Type: text/plain, Size: 723 bytes --]

diff -r 71a0bf42f9c1 extras/mini-os/blkfront.c
--- a/extras/mini-os/blkfront.c	Mon Sep 22 10:34:00 2008 +0100
+++ b/extras/mini-os/blkfront.c	Tue Sep 23 20:10:32 2008 +0200
@@ -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;
     }
 

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

                 reply	other threads:[~2008-09-23 18:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48D93192.5090104@redhat.com \
    --to=kraxel@redhat.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.