Re: [Qemu-devel] [PATCH QEMU 3/5] virtio-balloon: Add a new feature to balloon device

2016-04-19 Thread Michael S. Tsirkin
On Tue, Apr 19, 2016 at 10:20:41PM +0800, Liang Li wrote: > +if (s->req_status == REQ_INIT) { > +s->free_page_bmap = bitmap; > +if (elem == NULL || !elem->in_num) { > +elem = virtqueue_pop(s->fvq, sizeof(VirtQueueElement)); > +if (!elem) { > +

[Qemu-devel] [PATCH QEMU 3/5] virtio-balloon: Add a new feature to balloon device

2016-04-19 Thread Liang Li
Extend the virtio balloon device to support a new feature, this new feature can help to get guest's free pages information, which can be used for live migration optimzation. Signed-off-by: Liang Li --- balloon.c | 29 +++-