1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
Subject: backward compatibility
Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
Patch-mainline: obsolete
---
drivers/xen/blkback/xenbus.c | 6 ++++++
drivers/xen/blktap/xenbus.c | 6 ++++++
2 files changed, 12 insertions(+)
--- a/drivers/xen/blkback/xenbus.c 2007-08-27 14:01:25.000000000 -0400
+++ b/drivers/xen/blkback/xenbus.c 2007-08-27 14:01:49.000000000 -0400
@@ -488,6 +488,12 @@ static int connect_ring(struct backend_i
be->blkif->blk_protocol = BLKIF_PROTOCOL_X86_32;
else if (0 == strcmp(protocol, XEN_IO_PROTO_ABI_X86_64))
be->blkif->blk_protocol = BLKIF_PROTOCOL_X86_64;
+#if 1 /* maintain compatibility with early sles10-sp1 and paravirt netware betas */
+ else if (0 == strcmp(protocol, "1"))
+ be->blkif->blk_protocol = BLKIF_PROTOCOL_X86_32;
+ else if (0 == strcmp(protocol, "2"))
+ be->blkif->blk_protocol = BLKIF_PROTOCOL_X86_64;
+#endif
else {
xenbus_dev_fatal(dev, err, "unknown fe protocol %s", protocol);
return -1;
--- a/drivers/xen/blktap/xenbus.c 2007-08-27 14:01:25.000000000 -0400
+++ b/drivers/xen/blktap/xenbus.c 2007-08-27 14:01:49.000000000 -0400
@@ -428,6 +428,12 @@ static int connect_ring(struct backend_i
be->blkif->blk_protocol = BLKIF_PROTOCOL_X86_32;
else if (0 == strcmp(protocol, XEN_IO_PROTO_ABI_X86_64))
be->blkif->blk_protocol = BLKIF_PROTOCOL_X86_64;
+#if 1 /* maintain compatibility with early sles10-sp1 and paravirt netware betas */
+ else if (0 == strcmp(protocol, "1"))
+ be->blkif->blk_protocol = BLKIF_PROTOCOL_X86_32;
+ else if (0 == strcmp(protocol, "2"))
+ be->blkif->blk_protocol = BLKIF_PROTOCOL_X86_64;
+#endif
else {
xenbus_dev_fatal(dev, err, "unknown fe protocol %s", protocol);
return -1;
|