mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
s390x: keep hint on virtio managing size
The s390x virtio bus keeps management information on virtio after the top of the guest's RAM. We need to be able to tell the guest the size of its RAM (without virtio stuff), but also be able to trap when the guest accesses RAM outside of its scope (including virtio stuff). So we need a variable telling us the size of the virtio stuff, so we can calculate the highest available RAM address from that. While at it, also increase the maximum number of virtio pages, so we play along well with more recent kernels that spawn a ridiculous number of virtio console adapters. Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
1f20626679
commit
d1ff903ca5
3 changed files with 7 additions and 1 deletions
|
@ -310,6 +310,9 @@ static inline void kvm_s390_interrupt_internal(CPUState *env, int type,
|
|||
#endif
|
||||
CPUState *s390_cpu_addr2state(uint16_t cpu_addr);
|
||||
|
||||
/* from s390-virtio-bus */
|
||||
extern const target_phys_addr_t virtio_size;
|
||||
|
||||
#ifndef KVM_S390_SIGP_STOP
|
||||
#define KVM_S390_SIGP_STOP 0
|
||||
#define KVM_S390_PROGRAM_INT 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue