postcopy: Add notifier chain
commit1693c64c27a9af3fa0bb4093ab2ce12ec5bdb33f
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 12 Mar 2018 17:20:59 +0000 (12 17:20 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 20 Mar 2018 03:03:27 +0000 (20 05:03 +0200)
tree73d7b6cfb2afeb4ad25fbf8d6ebc94285f1db4a2
parent2ce16640b4cc9ab9e7e6bde9e4264b102e0eb73d
postcopy: Add notifier chain

Add a notifier chain for postcopy with a 'reason' flag
and an opportunity for a notifier member to return an error.

Call it when enabling postcopy.

This will initially used to enable devices to declare they're unable
to postcopy and later to notify of devices of stages within postcopy.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
migration/postcopy-ram.c
migration/postcopy-ram.h
vl.c