qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH V2 02/11] virtio: convert to use DMA api


From: Jason Wang
Subject: Re: [Qemu-devel] [PATCH V2 02/11] virtio: convert to use DMA api
Date: Fri, 4 Nov 2016 14:36:36 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0



On 2016年11月04日 03:46, Michael S. Tsirkin wrote:
@@ -244,6 +245,7 @@ int virtio_queue_empty(VirtQueue *vq)
>  static void virtqueue_unmap_sg(VirtQueue *vq, const VirtQueueElement *elem,
>                                 unsigned int len)
>  {
>+    AddressSpace *dma_as = virtio_get_dma_as(vq->vdev);
>      unsigned int offset;
>      int i;
Can't we use

        vdev->dma_as

here?

I'd like to avoid query on data path.

Same in most other places below.



Will use vdev->dma_as in next version.

Thanks



reply via email to

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