virtio-balloon: Rip out qemu_balloon_inhibit()
commit06df2e692a95509ee5f6e7d1663502adb74cb2a5
authorDavid Hildenbrand <david@redhat.com>
Fri, 26 Jun 2020 07:22:33 +0000 (26 09:22 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 2 Jul 2020 09:54:59 +0000 (2 05:54 -0400)
tree417b17a874353240bc97efd49a9763c40ade45bd
parentb030958c2b5c133e70d083ff8a612cb62254eabc
virtio-balloon: Rip out qemu_balloon_inhibit()

The only remaining special case is postcopy. It cannot handle
concurrent discards yet, which would result in requesting already sent
pages from the source. Special-case it in virtio-balloon instead.

Introduce migration_in_incoming_postcopy(), to find out if incoming
postcopy is active.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Juan Quintela <quintela@redhat.com>
Cc: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20200626072248.78761-7-david@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
balloon.c
hw/virtio/virtio-balloon.c
include/migration/misc.h
include/sysemu/balloon.h
migration/migration.c
migration/postcopy-ram.c