mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
s390: Fix cpu shutdown for KVM
On s390 a shutdown is the state of all CPUs being either stopped or disabled (for interrupts) waiting. We have to track the overall number of running CPUs to call the shutdown sequence accordingly. This patch implements the counting and shutdown handling for the kvm path in qemu. Lets also wrap changes to env->halted and env->exception_index. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
13449a6e0e
commit
854e42f3e8
3 changed files with 39 additions and 14 deletions
|
@ -309,6 +309,8 @@ static inline void kvm_s390_interrupt_internal(CPUState *env, int type,
|
|||
}
|
||||
#endif
|
||||
CPUState *s390_cpu_addr2state(uint16_t cpu_addr);
|
||||
void s390_add_running_cpu(CPUState *env);
|
||||
unsigned s390_del_running_cpu(CPUState *env);
|
||||
|
||||
/* from s390-virtio-bus */
|
||||
extern const target_phys_addr_t virtio_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue