Re: [PATCH] hw: virtio-mem: detach the element fromt the virtqueue when error occurs

2020-08-16 Thread David Hildenbrand
On 14.08.20 03:01, Li Qiang wrote: > David Hildenbrand 于2020年8月14日周五 上午1:15写道: >> >> On 13.08.20 18:46, Li Qiang wrote: >> >> For now we use "virtio-mem:" for the subject, without the "hw: "part. >> >>> If error occurs while processing the virtio request we should call >>> 'virtqueue_detach_elemen

Re: [PATCH] hw: virtio-mem: detach the element fromt the virtqueue when error occurs

2020-08-13 Thread Li Qiang
David Hildenbrand 于2020年8月14日周五 上午1:15写道: > > On 13.08.20 18:46, Li Qiang wrote: > > For now we use "virtio-mem:" for the subject, without the "hw: "part. > > > If error occurs while processing the virtio request we should call > > 'virtqueue_detach_element' to detach the element from the virtqueu

Re: [PATCH] hw: virtio-mem: detach the element fromt the virtqueue when error occurs

2020-08-13 Thread David Hildenbrand
On 13.08.20 18:46, Li Qiang wrote: For now we use "virtio-mem:" for the subject, without the "hw: "part. > If error occurs while processing the virtio request we should call > 'virtqueue_detach_element' to detach the element from the virtqueue > before free the elem. What's the effect of this? I

[PATCH] hw: virtio-mem: detach the element fromt the virtqueue when error occurs

2020-08-13 Thread Li Qiang
If error occurs while processing the virtio request we should call 'virtqueue_detach_element' to detach the element from the virtqueue before free the elem. Signed-off-by: Li Qiang --- hw/virtio/virtio-mem.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/hw/vir