Re: [PATCH] virtio-balloon: correct used length

2021-11-24 Thread Michael S. Tsirkin
On Wed, Nov 24, 2021 at 04:32:06PM +0800, Jason Wang wrote: > On Wed, Nov 24, 2021 at 4:28 PM Jason Wang wrote: > > > > On Wed, Nov 24, 2021 at 4:25 PM Michael S. Tsirkin wrote: > > > > > > On Wed, Nov 24, 2021 at 03:58:22PM +0800, Jason Wang wrote: > > > > On Wed, Nov 24, 2021 at 3:03 PM Michael

Re: [PATCH] virtio-balloon: correct used length

2021-11-24 Thread Jason Wang
On Wed, Nov 24, 2021 at 4:25 PM Michael S. Tsirkin wrote: > > On Wed, Nov 24, 2021 at 03:58:22PM +0800, Jason Wang wrote: > > On Wed, Nov 24, 2021 at 3:03 PM Michael S. Tsirkin wrote: > > > > > > On Wed, Nov 24, 2021 at 12:32:55PM +0800, Jason Wang wrote: > > > > Spec said: > > > > > > > > "and l

Re: [PATCH] virtio-balloon: correct used length

2021-11-24 Thread Jason Wang
On Wed, Nov 24, 2021 at 4:28 PM Jason Wang wrote: > > On Wed, Nov 24, 2021 at 4:25 PM Michael S. Tsirkin wrote: > > > > On Wed, Nov 24, 2021 at 03:58:22PM +0800, Jason Wang wrote: > > > On Wed, Nov 24, 2021 at 3:03 PM Michael S. Tsirkin > > > wrote: > > > > > > > > On Wed, Nov 24, 2021 at 12:32

Re: [PATCH] virtio-balloon: correct used length

2021-11-24 Thread Michael S. Tsirkin
On Wed, Nov 24, 2021 at 03:58:22PM +0800, Jason Wang wrote: > On Wed, Nov 24, 2021 at 3:03 PM Michael S. Tsirkin wrote: > > > > On Wed, Nov 24, 2021 at 12:32:55PM +0800, Jason Wang wrote: > > > Spec said: > > > > > > "and len the total of bytes written into the buffer." > > > > > > For inflateq, d

Re: [PATCH] virtio-balloon: correct used length

2021-11-24 Thread Jason Wang
On Wed, Nov 24, 2021 at 3:03 PM Michael S. Tsirkin wrote: > > On Wed, Nov 24, 2021 at 12:32:55PM +0800, Jason Wang wrote: > > Spec said: > > > > "and len the total of bytes written into the buffer." > > > > For inflateq, deflateq and statsq, we don't process in_sg so the used > > length should be

Re: [PATCH] virtio-balloon: correct used length

2021-11-23 Thread Michael S. Tsirkin
On Wed, Nov 24, 2021 at 12:32:55PM +0800, Jason Wang wrote: > Spec said: > > "and len the total of bytes written into the buffer." > > For inflateq, deflateq and statsq, we don't process in_sg so the used > length should be zero. For free_page_vq, though the free pages are > supplied via in_sgs,

[PATCH] virtio-balloon: correct used length

2021-11-23 Thread Jason Wang
Spec said: "and len the total of bytes written into the buffer." For inflateq, deflateq and statsq, we don't process in_sg so the used length should be zero. For free_page_vq, though the free pages are supplied via in_sgs, zero used length should still be fine since anyway driver is expected to u