aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>2005-03-10 17:49:06 +0000
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>2005-03-10 17:49:06 +0000
commit1cfe7f0ac9ccd13d80df5d1ddddf1e22c63db810 (patch)
treee85514b73349b0b781ab4d4356c5de9d8186742c
parent580fd7ddd2a31b73a2123c65619fe9f07c760641 (diff)
downloadxen-1cfe7f0ac9ccd13d80df5d1ddddf1e22c63db810.tar.gz
xen-1cfe7f0ac9ccd13d80df5d1ddddf1e22c63db810.tar.bz2
xen-1cfe7f0ac9ccd13d80df5d1ddddf1e22c63db810.zip
bitkeeper revision 1.1159.267.1 (42308892nDLBoNRoKA_URBGXNhvEUg)
Change blkif_pdev_t to u32 to allow configuring backend devices which use 32-bit numbers to identify devices. Signed-off-by: Christian Limpach <cl@NetBSD.org>
-rw-r--r--linux-2.6.10-xen-sparse/drivers/xen/blkback/vbd.c3
-rw-r--r--xen/include/public/io/domain_controller.h3
2 files changed, 3 insertions, 3 deletions
diff --git a/linux-2.6.10-xen-sparse/drivers/xen/blkback/vbd.c b/linux-2.6.10-xen-sparse/drivers/xen/blkback/vbd.c
index b530128366..1aa5acf0c9 100644
--- a/linux-2.6.10-xen-sparse/drivers/xen/blkback/vbd.c
+++ b/linux-2.6.10-xen-sparse/drivers/xen/blkback/vbd.c
@@ -129,7 +129,8 @@ void vbd_grow(blkif_be_vbd_grow_t *grow)
return;
}
- x->extent.device = grow->extent.device;
+ /* Mask to 16-bit for compatibility with old tools */
+ x->extent.device = grow->extent.device & 0xffff;
x->extent.sector_start = grow->extent.sector_start;
x->extent.sector_length = grow->extent.sector_length;
x->next = (blkif_extent_le_t *)NULL;
diff --git a/xen/include/public/io/domain_controller.h b/xen/include/public/io/domain_controller.h
index c248f21419..61ba2d3776 100644
--- a/xen/include/public/io/domain_controller.h
+++ b/xen/include/public/io/domain_controller.h
@@ -81,7 +81,7 @@ typedef struct {
/* These are used by both front-end and back-end drivers. */
#define blkif_vdev_t u16
-#define blkif_pdev_t u16
+#define blkif_pdev_t u32
#define blkif_sector_t u64
/*
@@ -183,7 +183,6 @@ typedef struct {
blkif_sector_t sector_start; /* 0 */
blkif_sector_t sector_length; /* 8 */
blkif_pdev_t device; /* 16 */
- u16 __pad; /* 18 */
} PACKED blkif_extent_t; /* 20 bytes */
/* Non-specific 'okay' return. */