aboutsummaryrefslogtreecommitdiff
path: root/target-s390x/cpu-qom.h
diff options
context:
space:
mode:
authorMatthew Rosato <mjrosato@linux.vnet.ibm.com>2016-03-04 12:34:31 -0500
committerCornelia Huck <cornelia.huck@de.ibm.com>2016-03-10 10:37:15 +0100
commitc6644fc88bed1176f67b4b7a9df691bcf25c0c5b (patch)
treecbc77b59301b677c72dc951e715202bd99e6f908 /target-s390x/cpu-qom.h
parentef3027affc755736f1ee5ec60c52a3b317abbc07 (diff)
downloadqemu-c6644fc88bed1176f67b4b7a9df691bcf25c0c5b.zip
qemu-c6644fc88bed1176f67b4b7a9df691bcf25c0c5b.tar.gz
qemu-c6644fc88bed1176f67b4b7a9df691bcf25c0c5b.tar.bz2
s390x/cpu: Get rid of side effects when creating a vcpu
In preparation for hotplug, defer some CPU initialization until the device is actually being realized, including cpu_exec_init. Signed-off-by: Matthew Rosato <mjrosato@linux.vnet.ibm.com> Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Message-Id: <1457112875-5209-4-git-send-email-mjrosato@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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-s390x/cpu-qom.h b/target-s390x/cpu-qom.h
index 029a44a..56d82f2 100644
--- a/target-s390x/cpu-qom.h
+++ b/target-s390x/cpu-qom.h
@@ -47,6 +47,8 @@ typedef struct S390CPUClass {
CPUClass parent_class;
/*< public >*/
+ int64_t next_cpu_id;
+
DeviceRealize parent_realize;
void (*parent_reset)(CPUState *cpu);
void (*load_normal)(CPUState *cpu);