From 24182fbc19cbc7c387bb350a72e6b55f63ea1747 Mon Sep 17 00:00:00 2001
From: Pavel Fedin
Date: Tue, 27 Oct 2015 12:00:50 +0000
Subject: 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
Reviewed-by: Peter Maydell
Signed-off-by: Peter Maydell
---
include/hw/intc/arm_gic_common.h | 1 +
1 file changed, 1 insertion(+)
(limited to 'include/hw')
diff --git a/include/hw/intc/arm_gic_common.h b/include/hw/intc/arm_gic_common.h
index 564a72b..f4c349a 100644
--- a/include/hw/intc/arm_gic_common.h
+++ b/include/hw/intc/arm_gic_common.h
@@ -111,6 +111,7 @@ typedef struct GICState {
bool security_extn;
bool irq_reset_nonsecure; /* configure IRQs as group 1 (NS) on reset? */
int dev_fd; /* kvm device fd if backed by kvm vgic support */
+ Error *migration_blocker;
} GICState;
#define TYPE_ARM_GIC_COMMON "arm_gic_common"
--
cgit v1.1