migrate: add migration blockers
authorAnthony Liguori <aliguori@us.ibm.com>
Mon, 14 Nov 2011 21:09:43 +0000 (15:09 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 21 Nov 2011 20:57:22 +0000 (14:57 -0600)
commit2b8fbd2b0f81fe86734e651244eb24ddb092eb8d
treebb9ed751b926fdc4577213cf95ddb52a45480e56
parent350ad6973d6e72063033634371f32d3e5ae67430
migrate: add migration blockers

This lets different subsystems register an Error that is thrown whenever
migration is attempted.  This works nicely because it gracefully supports
things like hotplug.

Right now, if multiple errors are registered, only one of them is reported.
I expect that for 1.1, we'll extend query-migrate to return all of the reasons
why migration is disabled at any given point in time.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
migration.c
migration.h