[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 5/7] virtio: add MemoryListener to cache ring tr
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 5/7] virtio: add MemoryListener to cache ring translations |
Date: |
Tue, 24 Jan 2017 12:37:37 +0000 |
User-agent: |
Mutt/1.7.1 (2016-10-04) |
On Fri, Jan 20, 2017 at 06:07:55PM +0100, Paolo Bonzini wrote:
> +static void virtio_init_region_cache(VirtIODevice *vdev, int n)
> +{
> + VirtQueue *vq = &vdev->vq[n];
> + VRingMemoryRegionCaches *old = vq->vring.caches;
> + VRingMemoryRegionCaches *new = g_new0(VRingMemoryRegionCaches, 1);
> + hwaddr addr, size;
> + int event_size;
> +
> + event_size = virtio_vdev_has_feature(vq->vdev, VIRTIO_RING_F_EVENT_IDX)
> ? 2 : 0;
> +
> + addr = vq->vring.desc;
> + if (!addr) {
> + return;
new is leaked.
signature.asc
Description: PGP signature
- [Qemu-devel] [PATCH 2/7] virtio: add virtio_*_phys_cached, (continued)
- [Qemu-devel] [PATCH 2/7] virtio: add virtio_*_phys_cached, Paolo Bonzini, 2017/01/20
- [Qemu-devel] [PATCH 1/7] virtio: make virtio_should_notify static, Paolo Bonzini, 2017/01/20
- [Qemu-devel] [PATCH 4/7] virtio: use MemoryRegionCache to access descriptors, Paolo Bonzini, 2017/01/20
- [Qemu-devel] [PATCH 3/7] virtio: use address_space_map/unmap to access descriptors, Paolo Bonzini, 2017/01/20
- [Qemu-devel] [PATCH 5/7] virtio: add MemoryListener to cache ring translations, Paolo Bonzini, 2017/01/20
- Re: [Qemu-devel] [PATCH 5/7] virtio: add MemoryListener to cache ring translations,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 6/7] virtio: use VRingMemoryRegionCaches for descriptor ring, Paolo Bonzini, 2017/01/20
- [Qemu-devel] [PATCH 7/7] virtio: use VRingMemoryRegionCaches for avail and used rings, Paolo Bonzini, 2017/01/20
- Re: [Qemu-devel] [PATCH 0/7] virtio: use MemoryRegionCache for descriptors and rings, Michael S. Tsirkin, 2017/01/20
- Re: [Qemu-devel] [PATCH 0/7] virtio: use MemoryRegionCache for descriptors and rings, Michael S. Tsirkin, 2017/01/24