diff options
author | Alexander Graf <agraf@suse.de> | 2011-10-07 09:51:50 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2011-11-14 17:47:26 +0100 |
commit | ef81522bc18e234485282a6fa01671d1960bc0f2 (patch) | |
tree | d85bbc28a4c3e74e099b40e971b1503a8c2edd24 /target-s390x/cpu.h | |
parent | 854e42f3e8d3dcaf35b018cf56618fbcd15082d9 (diff) | |
download | qemu-ef81522bc18e234485282a6fa01671d1960bc0f2.zip qemu-ef81522bc18e234485282a6fa01671d1960bc0f2.tar.gz qemu-ef81522bc18e234485282a6fa01671d1960bc0f2.tar.bz2 |
s390x: Add shutdown for TCG s390-virtio machine
Now that we have code in place to do refcounting of online CPUs, we
can drag the TCG code along and implement shutdown for that one too,
so it doesn't feel left out by its KVM counterpart.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-s390x/cpu.h')
-rw-r--r-- | target-s390x/cpu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target-s390x/cpu.h b/target-s390x/cpu.h index a66aa01..202c098 100644 --- a/target-s390x/cpu.h +++ b/target-s390x/cpu.h @@ -315,6 +315,15 @@ unsigned s390_del_running_cpu(CPUState *env); /* from s390-virtio-bus */ extern const target_phys_addr_t virtio_size; +#else +static inline void s390_add_running_cpu(CPUState *env) +{ +} + +static inline unsigned s390_del_running_cpu(CPUState *env) +{ + return 0; +} #endif void cpu_lock(void); void cpu_unlock(void); |