arm_gic_kvm: Disable live migration if not supported
commit24182fbc19cbc7c387bb350a72e6b55f63ea1747
authorPavel Fedin <p.fedin@samsung.com>
Tue, 27 Oct 2015 12:00:50 +0000 (27 12:00 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 27 Oct 2015 12:00:50 +0000 (27 12:00 +0000)
treea61e7e45e06de6081517c0eaf537b0a42db7bf6d
parentb876452507d0b719cff0b478efafb34ac41db683
arm_gic_kvm: Disable live migration if not supported

Currently, if the kernel does not have live migration API, the migration
will still be attempted, but vGIC save/restore functions will just not do
anything. This will result in a broken machine state.

This patch fixes the problem by adding migration blocker if kernel API is
not supported.

Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/intc/arm_gic_kvm.c
include/hw/intc/arm_gic_common.h