Re: [PATCH v3 1/3] virtio: add ability to delete vq through a pointer

2019-12-12 Thread David Hildenbrand
On 09.12.19 03:00, pannengy...@huawei.com wrote: > From: Michael S. Tsirkin > > Devices tend to maintain vq pointers, allow deleting them through a vq > pointer. > > Signed-off-by: Michael S. Tsirkin > Signed-off-by: Pan Nengyuan > [PMM: change function name to virtio_queue_cleanup; set used_

Re: [PATCH v3 1/3] virtio: add ability to delete vq through a pointer

2019-12-08 Thread Pan Nengyuan
On 2019/12/9 10:00, pannengy...@huawei.com wrote: > From: Michael S. Tsirkin > > Devices tend to maintain vq pointers, allow deleting them through a vq > pointer. > > Signed-off-by: Michael S. Tsirkin > Signed-off-by: Pan Nengyuan > [PMM: change function name to virtio_queue_cleanup; set u

[PATCH v3 1/3] virtio: add ability to delete vq through a pointer

2019-12-08 Thread pannengyuan
From: Michael S. Tsirkin Devices tend to maintain vq pointers, allow deleting them through a vq pointer. Signed-off-by: Michael S. Tsirkin Signed-off-by: Pan Nengyuan [PMM: change function name to virtio_queue_cleanup; set used_elems to NULL after free] Cc: Amit Shah Reviewed-by: Pankaj Gup