mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
bimodal blkfront: Create a new node "protocol" in xenstore, add the
protocol name it speaks there. Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
This commit is contained in:
1 parent
c82ff605c7
commit
7606be28a6
1 file changed
+7
@@ -44,6 +44,7 @@
|
||||
#include <xen/evtchn.h>
|
||||
#include <xen/xenbus.h>
|
||||
#include <xen/interface/grant_table.h>
|
||||
#include <xen/interface/io/protocols.h>
|
||||
#include <xen/gnttab.h>
|
||||
#include <asm/hypervisor.h>
|
||||
#include <asm/maddr.h>
|
||||
@@ -180,6 +181,12 @@ again:
|
||||
message = "writing event-channel";
|
||||
goto abort_transaction;
|
||||
}
|
||||
err = xenbus_printf(xbt, dev->nodename, "protocol", "%s",
|
||||
XEN_IO_PROTO_ABI_NATIVE);
|
||||
if (err) {
|
||||
message = "writing protocol";
|
||||
goto abort_transaction;
|
||||
}
|
||||
|
||||
err = xenbus_transaction_end(xbt, 0);
|
||||
if (err) {
|
||||
|
||||