Skip to contentSkip to conversation

s390x fixes

GIT PULL Applied Christian Borntraeger 2 participants 5 messages Feb 1, 2017 – Feb 2, 2017

lore
Share & tools
lore
#0 lore raw

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(-)
#1 lore raw

[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
index 0aad9cc..dcbf482 100644
@@ -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
#2 lore raw

[Qemu-devel] [PULL 2/3] s390x/kvm: fix small race reboot vs. cmma

In reply to Christian Borntraeger

Right 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.

Fixes 1cd4e0f6f0a6 ("s390x/cmma: clean up cmma reset")
---
 hw/s390x/s390-virtio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/s390x/s390-virtio.c +1 -1
index 0a96347..7a3a7fe 100644
@@ -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
#3 lore raw

[Qemu-devel] [PULL 3/3] target/s390x: use "qemu" cpu model in user mode

In reply to Christian Borntraeger

From: 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
index 3004958..e588f58 100644
@@ -4322,6 +4322,8 @@ int main(int argc, char **argv, char **envp)
 # endif
 #elif defined TARGET_SH4
         cpu_model = TYPE_SH7785_CPU;
+#elif defined TARGET_S390X
+        cpu_model = "qemu";
 #else
         cpu_model = "any";
 #endif
Signature · 1 line
2.7.4
#4 lore raw
In reply to Christian Borntraeger
Quoted 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.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):

Quoted 7 lines
      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

Applied, thanks.

-- PMM