summaryrefslogtreecommitdiff
path: root/target-s390x/cpu-qom.h
diff options
context:
space:
mode:
authorJens Freimann <jfrei@linux.vnet.ibm.com>2015-03-02 17:44:24 +0100
committerCornelia Huck <cornelia.huck@de.ibm.com>2015-05-08 10:36:19 +0200
commit3cda44f7bae5c9feddc11630ba6eecb2e3bed425 (patch)
treea335b5fcfd32f32d675e98fae220a934cca26f02 /target-s390x/cpu-qom.h
parent46c804def4bda2491c546e8e33b86fe4981e4b68 (diff)
downloadqemu-3cda44f7bae5c9feddc11630ba6eecb2e3bed425.tar.gz
s390x/kvm: migrate vcpu interrupt state
This patch adds support to migrate vcpu interrupts. We use ioctl KVM_S390_GET_IRQ_STATE and _SET_IRQ_STATE to get/set the complete interrupt state for a vcpu. Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'target-s390x/cpu-qom.h')
-rw-r--r--target-s390x/cpu-qom.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/target-s390x/cpu-qom.h b/target-s390x/cpu-qom.h
index 8b376df1b7..936ae21e06 100644
--- a/target-s390x/cpu-qom.h
+++ b/target-s390x/cpu-qom.h
@@ -66,6 +66,9 @@ typedef struct S390CPU {
/*< public >*/
CPUS390XState env;
+ /* needed for live migration */
+ void *irqstate;
+ uint32_t irqstate_saved_size;
} S390CPU;
static inline S390CPU *s390_env_get_cpu(CPUS390XState *env)