Re: [Qemu-devel] [PATCH] virtio-gpu: call cleanup mapping function in resource destroy

2016-12-13 Thread Li Qiang
Ping! 2016-11-29 10:29 GMT+08:00 Li Qiang : > If the guest destroy the resource before detach banking, the 'iov' > and 'addrs' field in resource is not freed thus leading memory > leak issue. This patch avoid this. > > Signed-off-by: Li Qiang > --- > hw/display/virtio-gpu.c | 3 +++ > 1 file ch

Re: [Qemu-devel] [PATCH] virtio-gpu: call cleanup mapping function in resource destroy

2016-11-28 Thread Marc-André Lureau
On Tue, Nov 29, 2016 at 6:29 AM Li Qiang wrote: > If the guest destroy the resource before detach banking, the 'iov' > and 'addrs' field in resource is not freed thus leading memory > leak issue. This patch avoid this. > > Signed-off-by: Li Qiang > Reviewed-by: Marc-André Lureau --- > hw/d

[Qemu-devel] [PATCH] virtio-gpu: call cleanup mapping function in resource destroy

2016-11-28 Thread Li Qiang
If the guest destroy the resource before detach banking, the 'iov' and 'addrs' field in resource is not freed thus leading memory leak issue. This patch avoid this. Signed-off-by: Li Qiang --- hw/display/virtio-gpu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/display/virtio-gpu.c