diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-04-25 08:00:11 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-04-25 08:00:11 +0000 |
commit | 6fcfeff9face289aa69a037e73a76c1a7b8c7411 (patch) | |
tree | be82579100bc5fad564436cef131f64a18b1396c | |
parent | c433bedf76290833cb563aae4100ec7f668a63e9 (diff) |
Fix compilation when x86_64 is defined
-rw-r--r-- | hw/xen_blkif.h | 4 | ||||
-rw-r--r-- | hw/xen_disk.c | 18 |
2 files changed, 14 insertions, 8 deletions
diff --git a/hw/xen_blkif.h b/hw/xen_blkif.h index 254a5fd50c..738b8fe53b 100644 --- a/hw/xen_blkif.h +++ b/hw/xen_blkif.h @@ -59,8 +59,8 @@ DEFINE_RING_TYPES(blkif_x86_64, struct blkif_x86_64_request, struct blkif_x86_64 union blkif_back_rings { blkif_back_ring_t native; blkif_common_back_ring_t common; - blkif_x86_32_back_ring_t x86_32; - blkif_x86_64_back_ring_t x86_64; + blkif_x86_32_back_ring_t x86_32_part; + blkif_x86_64_back_ring_t x86_64_part; }; typedef union blkif_back_rings blkif_back_rings_t; diff --git a/hw/xen_disk.c b/hw/xen_disk.c index 784cc047e2..f95e373124 100644 --- a/hw/xen_disk.c +++ b/hw/xen_disk.c @@ -440,10 +440,12 @@ static int blk_send_response_one(struct ioreq *ioreq) dst = RING_GET_RESPONSE(&blkdev->rings.native, blkdev->rings.native.rsp_prod_pvt); break; case BLKIF_PROTOCOL_X86_32: - dst = RING_GET_RESPONSE(&blkdev->rings.x86_32, blkdev->rings.x86_32.rsp_prod_pvt); + dst = RING_GET_RESPONSE(&blkdev->rings.x86_32_part, + blkdev->rings.x86_32_part.rsp_prod_pvt); break; case BLKIF_PROTOCOL_X86_64: - dst = RING_GET_RESPONSE(&blkdev->rings.x86_64, blkdev->rings.x86_64.rsp_prod_pvt); + dst = RING_GET_RESPONSE(&blkdev->rings.x86_64_part, + blkdev->rings.x86_64_part.rsp_prod_pvt); break; default: dst = NULL; @@ -491,10 +493,12 @@ static int blk_get_request(struct XenBlkDev *blkdev, struct ioreq *ioreq, RING_I sizeof(ioreq->req)); break; case BLKIF_PROTOCOL_X86_32: - blkif_get_x86_32_req(&ioreq->req, RING_GET_REQUEST(&blkdev->rings.x86_32, rc)); + blkif_get_x86_32_req(&ioreq->req, + RING_GET_REQUEST(&blkdev->rings.x86_32_part, rc)); break; case BLKIF_PROTOCOL_X86_64: - blkif_get_x86_64_req(&ioreq->req, RING_GET_REQUEST(&blkdev->rings.x86_64, rc)); + blkif_get_x86_64_req(&ioreq->req, + RING_GET_REQUEST(&blkdev->rings.x86_64_part, rc)); break; } return 0; @@ -698,13 +702,15 @@ static int blk_connect(struct XenDevice *xendev) case BLKIF_PROTOCOL_X86_32: { blkif_x86_32_sring_t *sring_x86_32 = blkdev->sring; - BACK_RING_INIT(&blkdev->rings.x86_32, sring_x86_32, XC_PAGE_SIZE); + + BACK_RING_INIT(&blkdev->rings.x86_32_part, sring_x86_32, XC_PAGE_SIZE); break; } case BLKIF_PROTOCOL_X86_64: { blkif_x86_64_sring_t *sring_x86_64 = blkdev->sring; - BACK_RING_INIT(&blkdev->rings.x86_64, sring_x86_64, XC_PAGE_SIZE); + + BACK_RING_INIT(&blkdev->rings.x86_64_part, sring_x86_64, XC_PAGE_SIZE); break; } } |