Re: [Qemu-devel] [PATCH v3] balloon: Fix failure of updating guest memory status

2016-08-21 Thread Michael S. Tsirkin
On Fri, Aug 05, 2016 at 01:36:32PM +0200, Ladi Prosek wrote: > The stats_vq_elem field keeps track of the state of the balloon stats > virtqueue protocol but it wasn't preserved across migrations, resulting > in losing guest memory status updates on the receiving VM. > > This commit adds a new VM

Re: [Qemu-devel] [PATCH v3] balloon: Fix failure of updating guest memory status

2016-08-15 Thread Michael S. Tsirkin
On Fri, Aug 05, 2016 at 01:36:32PM +0200, Ladi Prosek wrote: > The stats_vq_elem field keeps track of the state of the balloon stats > virtqueue protocol but it wasn't preserved across migrations, resulting > in losing guest memory status updates on the receiving VM. > > This commit adds a new VM

Re: [Qemu-devel] [PATCH v3] balloon: Fix failure of updating guest memory status

2016-08-15 Thread Michael S. Tsirkin
On Fri, Aug 05, 2016 at 01:36:32PM +0200, Ladi Prosek wrote: > The stats_vq_elem field keeps track of the state of the balloon stats > virtqueue protocol but it wasn't preserved across migrations, resulting > in losing guest memory status updates on the receiving VM. > > This commit adds a new VM

Re: [Qemu-devel] [PATCH v3] balloon: Fix failure of updating guest memory status

2016-08-15 Thread Ladi Prosek
On Mon, Aug 15, 2016 at 2:50 PM, Stefan Hajnoczi wrote: > On Mon, Aug 15, 2016 at 1:35 PM, Ladi Prosek wrote: >> On Mon, Aug 15, 2016 at 2:09 PM, Stefan Hajnoczi wrote: >>> On Fri, Aug 05, 2016 at 01:36:32PM +0200, Ladi Prosek wrote: diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virti

Re: [Qemu-devel] [PATCH v3] balloon: Fix failure of updating guest memory status

2016-08-15 Thread Stefan Hajnoczi
On Mon, Aug 15, 2016 at 1:35 PM, Ladi Prosek wrote: > On Mon, Aug 15, 2016 at 2:09 PM, Stefan Hajnoczi wrote: >> On Fri, Aug 05, 2016 at 01:36:32PM +0200, Ladi Prosek wrote: >>> diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c >>> index 5af429a..65457e9 100644 >>> --- a/hw/vir

Re: [Qemu-devel] [PATCH v3] balloon: Fix failure of updating guest memory status

2016-08-15 Thread Ladi Prosek
On Mon, Aug 15, 2016 at 2:09 PM, Stefan Hajnoczi wrote: > On Fri, Aug 05, 2016 at 01:36:32PM +0200, Ladi Prosek wrote: >> diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c >> index 5af429a..65457e9 100644 >> --- a/hw/virtio/virtio-balloon.c >> +++ b/hw/virtio/virtio-balloon.c >>

Re: [Qemu-devel] [PATCH v3] balloon: Fix failure of updating guest memory status

2016-08-15 Thread Stefan Hajnoczi
On Fri, Aug 05, 2016 at 01:36:32PM +0200, Ladi Prosek wrote: > diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c > index 5af429a..65457e9 100644 > --- a/hw/virtio/virtio-balloon.c > +++ b/hw/virtio/virtio-balloon.c > @@ -423,6 +423,26 @@ static int virtio_balloon_load_device(Virt

[Qemu-devel] [PATCH v3] balloon: Fix failure of updating guest memory status

2016-08-05 Thread Ladi Prosek
The stats_vq_elem field keeps track of the state of the balloon stats virtqueue protocol but it wasn't preserved across migrations, resulting in losing guest memory status updates on the receiving VM. This commit adds a new VM state change handler which resets stats_vq_elem to NULL when the VM is