s390x fixes for -rc2
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
[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.
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
@@ -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
[Qemu-devel] [PULL for-2.12 2/3] pc-bios/s390-ccw: Increase virtio timeout to 30 seconds
In reply to Cornelia HuckFrom: 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]>
--- pc-bios/s390-ccw/virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
pc-bios/s390-ccw/virtio.c +1 -1
@@ -14,7 +14,7 @@#include "virtio-scsi.h" #include "bswap.h" -#define VRING_WAIT_REPLY_TIMEOUT 3 +#define VRING_WAIT_REPLY_TIMEOUT 30static VRing block[VIRTIO_MAX_VQS ];static char ring_area[VIRTIO_RING_SIZE *VIRTIO_MAX_VQS ]
Signature · 1 line
2.14.3
[Qemu-devel] [PULL for-2.12 3/3] pc-bios/s390-ccw: update image
In reply to Cornelia HuckContains 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
Signature · 1 line
2.14.3
Peter Maydell
AppliedQuoted 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/qemutags/s390x-20180403for 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 imageGreg Kurz (1):
hw/s390x: fix memory leak ins390_init_ipl_dev()
Quoted 7 lines
Thomas Huth (1):
pc-bios/s390-ccw: Increase virtio timeout to 30 secondshw/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