qemu-e2k/include/hw/virtio
Wei Wang c13c4153f7 virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT
The new feature enables the virtio-balloon device to receive hints of
guest free pages from the free page vq.

A notifier is registered to the migration precopy notifier chain. The
notifier calls free_page_start after the migration thread syncs the dirty
bitmap, so that the free page optimization starts to clear bits of free
pages from the bitmap. It calls the free_page_stop before the migration
thread syncs the bitmap, which is the end of the current round of ram
save. The free_page_stop is also called to stop the optimization in the
case when there is an error occurred in the process of ram saving.

Note: balloon will report pages which were free at the time of this call.
As the reporting happens asynchronously, dirty bit logging must be
enabled before this free_page_start call is made. Guest reporting must be
disabled before the migration dirty bitmap is synchronized.

Signed-off-by: Wei Wang <wei.w.wang@intel.com>
CC: Michael S. Tsirkin <mst@redhat.com>
CC: Dr. David Alan Gilbert <dgilbert@redhat.com>
CC: Juan Quintela <quintela@redhat.com>
CC: Peter Xu <peterx@redhat.com>
Message-Id: <1544516693-5395-8-git-send-email-wei.w.wang@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
  dgilbert: Dropped kernel header update, fixed up CMD_ID_* name change
2019-03-06 10:49:18 +00:00
..
vhost-backend.h vhost: allow backends to filter memory sections 2018-05-24 21:14:10 +03:00
vhost-scsi-common.h vhost-user-scsi: move host_features into VHostSCSICommon 2018-08-23 18:46:25 +02:00
vhost-scsi.h vhost-scsi: create a vhost-scsi-common abstraction 2017-05-05 12:10:00 +02:00
vhost-user-blk.h vhost-blk: turn on pre-defined RO feature bit 2018-06-01 19:20:38 +03:00
vhost-user-scsi.h vhost-user-scsi: move host_features into VHostSCSICommon 2018-08-23 18:46:25 +02:00
vhost-user.h vhost-user: support registering external host notifiers 2018-05-24 21:14:11 +03:00
vhost-vsock.h vhost-vsock: add virtio sockets device 2016-09-10 00:28:08 +03:00
vhost.h vhost: Clean out old vhost_set_memory and friends 2018-02-08 21:06:40 +02:00
virtio-access.h hw: Do not include "exec/address-spaces.h" if it is not necessary 2018-06-01 14:15:10 +02:00
virtio-balloon.h virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT 2019-03-06 10:49:18 +00:00
virtio-blk.h virtio-blk: add DISCARD and WRITE_ZEROES features 2019-02-22 09:42:17 +00:00
virtio-bus.h virtio: support setting memory region based host notifier 2018-05-23 17:01:54 +03:00
virtio-crypto.h cryptodev: add vhost support 2018-03-01 18:26:17 +02:00
virtio-gpu.h display/virtio: add edid support. 2019-02-22 07:25:04 +01:00
virtio-input.h virtio-input: send rel-wheel events for wheel buttons 2017-09-29 10:36:33 +02:00
virtio-net.h virtio-net: Switch to using announce timer 2019-03-05 11:27:41 +08:00
virtio-rng.h virtio-rng: stop virtqueue while the CPU is stopped 2017-04-21 12:25:40 +02:00
virtio-scsi.h virtio-scsi: Add virtqueue_size parameter allowing virtqueue size to be set. 2017-09-19 14:09:11 +02:00
virtio-serial.h virtio-serial: add enable_backend callback 2017-09-21 11:51:49 +02:00
virtio.h virtio-net: make VirtIOFeature usable for other virtio devices 2019-02-22 09:42:16 +00:00