Skip to contentSkip to conversation

s390x fixes for -rc2

GIT PULL Applied Cornelia Huck 2 participants 5 messages Apr 3, 2018 – Apr 4, 2018

lore
Share & tools
lore
#0 lore raw

The following changes since commit f184de7553272223d6af731d7d623a7cebf710b5:

Merge remote-tracking branch 'remotes/riscv/tags/riscv-qemu-2.12-critical-fixes' into staging (2018-03-31 09:42:33 +0100)

are available in the Git repository at:

git://github.com/cohuck/qemu tags/s390x-20180403

for you to fetch changes up to d3b6e3bb6dc582099b8572c439fa651b3672de89:

pc-bios/s390-ccw: update image (2018-04-03 10:03:38 +0200)

----------------------------------------------------------------
- fix a memory leak in the ipl code introduced with this release
- increase timeout in the bios to avoid hangs during migration (and rebuild bios to activate the change)

----------------------------------------------------------------

Cornelia Huck (1):
pc-bios/s390-ccw: update image

Greg Kurz (1):
hw/s390x: fix memory leak in s390_init_ipl_dev()

Thomas Huth (1):
pc-bios/s390-ccw: Increase virtio timeout to 30 seconds

 hw/s390x/s390-virtio-ccw.c |   5 ++++-
 pc-bios/s390-ccw.img       | Bin 34568 -> 30568 bytes
 pc-bios/s390-ccw/virtio.c  |   2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)
Signature · 1 line
2.14.3
#1 lore raw

[Qemu-devel] [PULL for-2.12 1/3] hw/s390x: fix memory leak in s390_init_ipl_dev()

From: Greg Kurz <[email protected]>

The string returned by object_property_get_str() is dynamically allocated.

Fixes 3c4e9baacf4d9

Message-Id: <[email protected]>

---
 hw/s390x/s390-virtio-ccw.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
hw/s390x/s390-virtio-ccw.c +4 -1
index 864145a7c6..435f7c99e7 100644
@@ -246,6 +246,7 @@ static void s390_init_ipl_dev(const char *kernel_filename,
 {
     Object *new = object_new(TYPE_S390_IPL);
     DeviceState *dev = DEVICE(new);
+    char *netboot_fw_prop;
 
     if (kernel_filename) {
         qdev_prop_set_string(dev, "kernel", kernel_filename);
@@ -256,9 +257,11 @@ static void s390_init_ipl_dev(const char *kernel_filename,
     qdev_prop_set_string(dev, "cmdline", kernel_cmdline);
     qdev_prop_set_string(dev, "firmware", firmware);
     qdev_prop_set_bit(dev, "enforce_bios", enforce_bios);
-    if (!strlen(object_property_get_str(new, "netboot_fw", &error_abort))) {
+    netboot_fw_prop = object_property_get_str(new, "netboot_fw", &error_abort);
+    if (!strlen(netboot_fw_prop)) {
         qdev_prop_set_string(dev, "netboot_fw", netboot_fw);
     }
+    g_free(netboot_fw_prop);
     object_property_add_child(qdev_get_machine(), TYPE_S390_IPL,
                               new, NULL);
     object_unref(new);
Signature · 1 line
2.14.3
#2 lore raw

[Qemu-devel] [PULL for-2.12 2/3] pc-bios/s390-ccw: Increase virtio timeout to 30 seconds

In reply to Cornelia Huck

From: Thomas Huth <[email protected]>

The current timeout is set to only three seconds - and considering that vring_wait_reply() or rather get_second() is not doing any rounding, the real timeout is likely rather 2 seconds in most cases. When the host is really badly loaded, it's possible that we hit this timeout by mistake; it's even more likely if we run the guest in TCG mode instead of KVM.

So let's increase the timeout to 30 seconds instead to ease this situation (30 seconds is also the timeout that is used by the Linux SCSI subsystem for example, so this seems to be a sane value for block IO timeout).

Message-Id: <[email protected]>

[CH: tweaked commit message]
---
 pc-bios/s390-ccw/virtio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
pc-bios/s390-ccw/virtio.c +1 -1
index 817e7f56ea..cdb66f459e 100644
@@ -14,7 +14,7 @@
 #include "virtio-scsi.h"
 #include "bswap.h"
 
-#define VRING_WAIT_REPLY_TIMEOUT 3
+#define VRING_WAIT_REPLY_TIMEOUT 30
 
 static VRing block[VIRTIO_MAX_VQS];
 static char ring_area[VIRTIO_RING_SIZE * VIRTIO_MAX_VQS]
Signature · 1 line
2.14.3
#3 lore raw

[Qemu-devel] [PULL for-2.12 3/3] pc-bios/s390-ccw: update image

In reply to Cornelia Huck

Contains the following commits:
- pc-bios/s390-ccw: Move string arrays from bootmap header to .c file
- pc-bios/s390-ccw: Increase virtio timeout to 30 seconds

---
 pc-bios/s390-ccw.img | Bin 34568 -> 30568 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)
pc-bios/s390-ccw.img binary +0 -0
index fbd76bb55ed01367c9e2e5656e9a3e2eb21f823f..d17e85995db582b871f937cf74338b2eaf65a2ef 100644
GIT binary patch
Signature · 1 line
2.14.3
#4 lore raw
In reply to Cornelia Huck
Quoted 25 lines · Cornelia Huck

The following changes since commit f184de7553272223d6af731d7d623a7cebf710b5:

Merge remote-tracking branch 'remotes/riscv/tags/riscv-qemu-2.12-critical-fixes' into staging (2018-03-31 09:42:33 +0100)

are available in the Git repository at:

git://github.com/cohuck/qemu tags/s390x-20180403

for you to fetch changes up to d3b6e3bb6dc582099b8572c439fa651b3672de89:

pc-bios/s390-ccw: update image (2018-04-03 10:03:38 +0200)

----------------------------------------------------------------
- fix a memory leak in the ipl code introduced with this release
- increase timeout in the bios to avoid hangs during migration (and rebuild bios to activate the change)

----------------------------------------------------------------

Cornelia Huck (1):
pc-bios/s390-ccw: update image

Greg Kurz (1):
hw/s390x: fix memory leak in s390_init_ipl_dev()

Quoted 7 lines

Thomas Huth (1):
pc-bios/s390-ccw: Increase virtio timeout to 30 seconds

 hw/s390x/s390-virtio-ccw.c |   5 ++++-
 pc-bios/s390-ccw.img       | Bin 34568 -> 30568 bytes
 pc-bios/s390-ccw/virtio.c  |   2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

Applied, thanks.

-- PMM