]> Git Repo - qemu.git/blobdiff - dma-helpers.c
qxl: use uint64_t for vram size
[qemu.git] / dma-helpers.c
index b521d84ebdf19f144402cb82b024cc3f95f2bf4f..9defc101b7cfe5268f2f81afdc335e54e165391e 100644 (file)
@@ -185,10 +185,17 @@ static void dma_aio_cancel(BlockAIOCB *acb)
     }
 }
 
+static AioContext *dma_get_aio_context(BlockAIOCB *acb)
+{
+    DMAAIOCB *dbs = container_of(acb, DMAAIOCB, common);
+
+    return dbs->ctx;
+}
 
 static const AIOCBInfo dma_aiocb_info = {
     .aiocb_size         = sizeof(DMAAIOCB),
     .cancel_async       = dma_aio_cancel,
+    .get_aio_context    = dma_get_aio_context,
 };
 
 BlockAIOCB *dma_blk_io(AioContext *ctx,
This page took 0.023976 seconds and 4 git commands to generate.