Annotation of /trunk/kernel26-xen/patches-2.6.25-r1/1044-2.6.25-xen-blkback-bimodal-suse.patch
Parent Directory | Revision Log
Revision 609 -
(hide annotations)
(download)
Fri May 23 17:35:37 2008 UTC (16 years, 4 months ago) by niro
File size: 2041 byte(s)
Fri May 23 17:35:37 2008 UTC (16 years, 4 months ago) by niro
File size: 2041 byte(s)
-using opensuse xen patchset, updated kernel configs
1 | niro | 609 | Subject: backward compatibility |
2 | Signed-off-by: Gerd Hoffmann <kraxel@suse.de> | ||
3 | Patch-mainline: obsolete | ||
4 | |||
5 | --- | ||
6 | linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c | 6 ++++++ | ||
7 | linux-2.6-xen-sparse/drivers/xen/blktap/xenbus.c | 6 ++++++ | ||
8 | 2 files changed, 12 insertions(+) | ||
9 | |||
10 | Index: head-2007-10-15/drivers/xen/blkback/xenbus.c | ||
11 | =================================================================== | ||
12 | --- head-2007-10-15.orig/drivers/xen/blkback/xenbus.c 2007-10-22 10:35:02.000000000 +0200 | ||
13 | +++ head-2007-10-15/drivers/xen/blkback/xenbus.c 2007-10-22 10:49:56.000000000 +0200 | ||
14 | @@ -488,6 +488,12 @@ static int connect_ring(struct backend_i | ||
15 | be->blkif->blk_protocol = BLKIF_PROTOCOL_X86_32; | ||
16 | else if (0 == strcmp(protocol, XEN_IO_PROTO_ABI_X86_64)) | ||
17 | be->blkif->blk_protocol = BLKIF_PROTOCOL_X86_64; | ||
18 | +#if 1 /* maintain compatibility with early sles10-sp1 and paravirt netware betas */ | ||
19 | + else if (0 == strcmp(protocol, "1")) | ||
20 | + be->blkif->blk_protocol = BLKIF_PROTOCOL_X86_32; | ||
21 | + else if (0 == strcmp(protocol, "2")) | ||
22 | + be->blkif->blk_protocol = BLKIF_PROTOCOL_X86_64; | ||
23 | +#endif | ||
24 | else { | ||
25 | xenbus_dev_fatal(dev, err, "unknown fe protocol %s", protocol); | ||
26 | return -1; | ||
27 | Index: head-2007-10-15/drivers/xen/blktap/xenbus.c | ||
28 | =================================================================== | ||
29 | --- head-2007-10-15.orig/drivers/xen/blktap/xenbus.c 2007-10-22 10:35:17.000000000 +0200 | ||
30 | +++ head-2007-10-15/drivers/xen/blktap/xenbus.c 2007-10-22 10:50:02.000000000 +0200 | ||
31 | @@ -432,6 +432,12 @@ static int connect_ring(struct backend_i | ||
32 | be->blkif->blk_protocol = BLKIF_PROTOCOL_X86_32; | ||
33 | else if (0 == strcmp(protocol, XEN_IO_PROTO_ABI_X86_64)) | ||
34 | be->blkif->blk_protocol = BLKIF_PROTOCOL_X86_64; | ||
35 | +#if 1 /* maintain compatibility with early sles10-sp1 and paravirt netware betas */ | ||
36 | + else if (0 == strcmp(protocol, "1")) | ||
37 | + be->blkif->blk_protocol = BLKIF_PROTOCOL_X86_32; | ||
38 | + else if (0 == strcmp(protocol, "2")) | ||
39 | + be->blkif->blk_protocol = BLKIF_PROTOCOL_X86_64; | ||
40 | +#endif | ||
41 | else { | ||
42 | xenbus_dev_fatal(dev, err, "unknown fe protocol %s", protocol); | ||
43 | return -1; |