qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT be82579] Fix compilation when x86_64 is defined


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT be82579] Fix compilation when x86_64 is defined
Date: Mon, 27 Apr 2009 21:12:25 -0000

From: Blue Swirl <address@hidden>


diff --git a/hw/xen_blkif.h b/hw/xen_blkif.h
index 254a5fd..738b8fe 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 784cc04..f95e373 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;
     }
     }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]