summaryrefslogtreecommitdiffstats
path: root/hw/arm_gic_internal.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2013-03-05 00:34:41 +0000
committerPeter Maydell <peter.maydell@linaro.org>2013-03-05 00:45:15 +0000
commit9ecb992674cec86091b4fce3bd66faee8b56b165 (patch)
treeec709b83da67726c3c624d9a1edeb768a340eaeb /hw/arm_gic_internal.h
parent81635574f6e7f4d18ea059ecbeeec93c3ffc284c (diff)
downloadhqemu-9ecb992674cec86091b4fce3bd66faee8b56b165.zip
hqemu-9ecb992674cec86091b4fce3bd66faee8b56b165.tar.gz
hw/arm_gic: Add presave/postload hooks
Add presave/postload hooks to the ARM GIC common base class. These will be used by the KVM in-kernel GIC subclass to sync state between kernel and userspace when migrating. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/arm_gic_internal.h')
-rw-r--r--hw/arm_gic_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/arm_gic_internal.h b/hw/arm_gic_internal.h
index 699352c..3640be0 100644
--- a/hw/arm_gic_internal.h
+++ b/hw/arm_gic_internal.h
@@ -118,6 +118,8 @@ void gic_init_irqs_and_distributor(GICState *s, int num_irq);
typedef struct ARMGICCommonClass {
SysBusDeviceClass parent_class;
+ void (*pre_save)(GICState *s);
+ void (*post_load)(GICState *s);
} ARMGICCommonClass;
#define TYPE_ARM_GIC "arm_gic"
OpenPOWER on IntegriCloud