s390x fixes
Peter,
The following changes since commit a0def594286d9110a6035e02eef558cf3cf5d847:
Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2017-01-30 10:23:20 +0000)
are available in the git repository at:
git://github.com/borntraeger/qemu.git tags/s390x-20170201
for you to fetch changes up to d8923bc75479cd3fdcc72b7647f4877f91950b01:
target/s390x: use "qemu" cpu model in user mode (2017-02-01 09:15:17 +0100)
----------------------------------------------------------------
s390x fixes
- build error with old gcc versions
- race between cmma reset and rom/loader resets
- linux-user vs. cpu model
----------------------------------------------------------------
Christian Borntraeger (1):
s390x/kvm: fix small race reboot vs. cmma
David Hildenbrand (1):
target/s390x: use "qemu" cpu model in user mode
Paolo Bonzini (1):
s390-pci: fix compilation on older GCC versions
hw/s390x/s390-pci-bus.h | 4 ++-- hw/s390x/s390-virtio.c | 2 +- linux-user/main.c | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-)
[Qemu-devel] [PULL 1/3] s390-pci: fix compilation on older GCC versions
From: Paolo Bonzini <[email protected]>
S390PCIBusDevice is typedef'ed earlier in the file, before the hunks that this patch modifies. The double typedef causes old versions of GCC to complain.
Message-Id: <[email protected]>
--- hw/s390x/s390-pci-bus.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/s390x/s390-pci-bus.h +2 -2
@@ -279,7 +279,7 @@ typedef struct S390PCIIOMMUTable {S390PCIIOMMU *iommu[PCI_SLOT_MAX ]; } S390PCIIOMMUTable; -typedef struct S390PCIBusDevice { +struct S390PCIBusDevice {DeviceState qdev;PCIDevice *pdev;ZpciState state;
@@ -301,7 +301,7 @@ typedef struct S390PCIBusDevice {IndAddr *indicator;QEMUTimer *release_timer;QTAILQ_ENTRY (S390PCIBusDevice) link; -} S390PCIBusDevice; +}; typedef struct S390PCIBus { BusState qbus;
Signature · 1 line
2.7.4
[Qemu-devel] [PULL 2/3] s390x/kvm: fix small race reboot vs. cmma
In reply to Christian BorntraegerRight now we reset all devices before we reset the cmma states. This can result in the host kernel discarding guest pages that were previously in the unused state but already contain a bios or a -kernel file before the cmma reset has finished. This race results in random guest crashes or hangs during very early reboot.
--- hw/s390x/s390-virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/s390x/s390-virtio.c +1 -1
@@ -204,8 +204,8 @@ void s390_machine_reset(void) {S390CPU *ipl_cpu =S390_CPU (qemu_get_cpu (0 )); -qemu_devices_reset ();s390_cmma_reset (); +qemu_devices_reset ();s390_crypto_reset ();/* all cpus are stopped - configure and start the ipl cpu only */
Signature · 1 line
2.7.4
[Qemu-devel] [PULL 3/3] target/s390x: use "qemu" cpu model in user mode
In reply to Christian BorntraegerFrom: David Hildenbrand <[email protected]>
"any" does not exist, therefore resulting in a misleading error message.
Message-Id: <[email protected]>
--- linux-user/main.c | 2 ++ 1 file changed, 2 insertions(+)
linux-user/main.c +2 -0
@@ -4322,6 +4322,8 @@ int main(int argc, char **argv, char **envp)# endif #elif definedTARGET_SH4 cpu_model =TYPE_SH7785_CPU ; +#elif definedTARGET_S390X + cpu_model ="qemu" ;#else cpu_model ="any" ;#endif
Signature · 1 line
2.7.4
Peter Maydell
AppliedQuoted 23 lines · Christian Borntraeger
Peter,
The following changes since commit
a0def594286d9110a6035e02eef558cf3cf5d847:Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2017-01-30 10:23:20 +0000)
are available in the git repository at:
git://github.com/borntraeger/qemu.gittags/s390x-20170201for you to fetch changes up to
d8923bc75479cd3fdcc72b7647f4877f91950b01:target/s390x: use "qemu" cpu model in user mode (2017-02-01 09:15:17 +0100)
----------------------------------------------------------------
s390x fixes- build error with old gcc versions
- race between cmma reset and rom/loader resets
- linux-user vs. cpu model----------------------------------------------------------------
Christian Borntraeger (1):
Quoted 7 lines
s390x/kvm: fix small race reboot vs. cmmaDavid Hildenbrand (1):
target/s390x: use "qemu" cpu model in user modePaolo Bonzini (1):
s390-pci: fix compilation on older GCC versions
Applied, thanks.
-- PMM