Re: [Qemu-devel] [PATCH 2/4] virtio-balloon: make stats virtqueue length 1

2016-08-19 Thread Roman Kagan
On Fri, Aug 19, 2016 at 12:05:29PM +0200, Ladi Prosek wrote: > On Thu, Aug 18, 2016 at 8:27 PM, Roman Kagan wrote: > > The protocol for virtio-balloon stats virtqueue doesn't allow more than > > one element in the virtqueue. > > > > So, instead of trying to compensate for guest misbehavior if it s

Re: [Qemu-devel] [PATCH 2/4] virtio-balloon: make stats virtqueue length 1

2016-08-19 Thread Roman Kagan
On Fri, Aug 19, 2016 at 02:44:10PM +0100, Stefan Hajnoczi wrote: > On Thu, Aug 18, 2016 at 09:27:52PM +0300, Roman Kagan wrote: > > The protocol for virtio-balloon stats virtqueue doesn't allow more than > > one element in the virtqueue. > > > > So, instead of trying to compensate for guest misbeh

Re: [Qemu-devel] [PATCH 2/4] virtio-balloon: make stats virtqueue length 1

2016-08-19 Thread Stefan Hajnoczi
On Thu, Aug 18, 2016 at 09:27:52PM +0300, Roman Kagan wrote: > The protocol for virtio-balloon stats virtqueue doesn't allow more than > one element in the virtqueue. > > So, instead of trying to compensate for guest misbehavior if it sends > new data before the slot has been released by the host,

Re: [Qemu-devel] [PATCH 2/4] virtio-balloon: make stats virtqueue length 1

2016-08-19 Thread Ladi Prosek
On Thu, Aug 18, 2016 at 8:27 PM, Roman Kagan wrote: > The protocol for virtio-balloon stats virtqueue doesn't allow more than > one element in the virtqueue. > > So, instead of trying to compensate for guest misbehavior if it sends > new data before the slot has been released by the host, just def

[Qemu-devel] [PATCH 2/4] virtio-balloon: make stats virtqueue length 1

2016-08-18 Thread Roman Kagan
The protocol for virtio-balloon stats virtqueue doesn't allow more than one element in the virtqueue. So, instead of trying to compensate for guest misbehavior if it sends new data before the slot has been released by the host, just define the stats virtqueue length to 1 initially and rely on the