Fixes for s390x
The following changes since commit 0030ff40472b9ebf0e0595afbc8d7e428218c5d7:
Merge remote-tracking branch 'remotes/kraxel/tags/pull-vnc-20150714-1' into staging (2015-07-14 14:52:45 +0100)
are available in the git repository at:
git://github.com/cohuck/qemu tags/s390x-20150714
for you to fetch changes up to 2af9170c8c269c4fba73e5271453ca15a57f5844:
s390/virtio-ccw: Fix migration (2015-07-14 19:10:03 +0200)
----------------------------------------------------------------
s390x fixes for 2.4:
- virtio migration regression
- missing diag288 watchdog resets
----------------------------------------------------------------
Christian Borntraeger (1):
s390/virtio-ccw: Fix migration
Xu Wang (1):
watchdog/diag288: correctly register for system reset requests
hw/s390x/s390-virtio-ccw.c | 6 +++++- hw/s390x/virtio-ccw.c | 2 +- hw/watchdog/wdt_diag288.c | 8 ++++++++ 3 files changed, 14 insertions(+), 2 deletions(-)
Signature · 1 line
2.4.5
[Qemu-devel] [PULL for-2.4 1/2] watchdog/diag288: correctly register for system reset requests
From: Xu Wang <[email protected]>
The diag288 watchdog is no sysbus device, therefore it doesn't get triggered on resets automatically using dc->reset.
Let's register the reset handler manually, so we get correctly notified again when a system reset was requested. Also reset the watchdog on subsystem resets that don't trigger a full system reset.
--- hw/s390x/s390-virtio-ccw.c | 6 +++++- hw/watchdog/wdt_diag288.c | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-)
hw/s390x/s390-virtio-ccw.c +5 -1
@@ -36,7 +36,7 @@ typedef struct S390CcwMachineState {void io_subsystem_reset (void ) { -DeviceState *css, *sclp, *flic; +DeviceState *css, *sclp, *flic, *diag288; css =DEVICE (object_resolve_path_type ("" ,"virtual-css-bridge" ,NULL ));if (css) {
@@ -51,6 +51,10 @@ void io_subsystem_reset(void)if (flic) {qdev_reset_all (flic); } + diag288 =DEVICE (object_resolve_path_type ("" ,"diag288" ,NULL )); +if (diag288) { +qdev_reset_all (diag288); + } }static int virtio_ccw_hcall_notify (const uint64_t *args)
hw/watchdog/wdt_diag288.c +8 -0
@@ -40,6 +40,13 @@ static void wdt_diag288_reset(DeviceState *dev)timer_del (diag288->timer); } +static void diag288_reset (void *opaque) +{ +DeviceState *diag288 = opaque; + +wdt_diag288_reset (diag288); +} +static void diag288_timer_expired (void *dev) {qemu_log_mask (CPU_LOG_RESET ,"Watchdog timer expired.\n" );
@@ -80,6 +87,7 @@ static void wdt_diag288_realize(DeviceState *dev, Error **errp) {DIAG288State *diag288 =DIAG288 (dev); +qemu_register_reset (diag288_reset, diag288); diag288->timer =timer_new_ns (QEMU_CLOCK_VIRTUAL , diag288_timer_expired, dev); }
Signature · 1 line
2.4.5
[Qemu-devel] [PULL for-2.4 2/2] s390/virtio-ccw: Fix migration
In reply to Cornelia HuckFrom: Christian Borntraeger <[email protected]>
commit 213941d73b ("virtio-ccw: migrate ->revision") broke migration:
2015-07-07T11:22:55.570968Z qemu-system-s390x: VQ 39 address 0x0 inconsistent with Host index 0x100 2015-07-07T11:22:55.571008Z qemu-system-s390x: error while loading state for instance 0x0 of
If thinint support is active, the config_load function returns early. Make sure to load the revision all the time.
Message-Id: <[email protected]>
--- hw/s390x/virtio-ccw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/s390x/virtio-ccw.c +1 -1
@@ -1508,12 +1508,12 @@ static int virtio_ccw_load_config(DeviceState *d, QEMUFile *f)qemu_get_be16s (f, &vdev->config_vector); dev->routes.adapter.ind_offset =qemu_get_be64 (f); dev->thinint_isc =qemu_get_byte (f); + dev->revision =qemu_get_be32 (f);if (s->thinint_active) {return css_register_io_adapter (CSS_IO_ADAPTER_VIRTIO , dev->thinint_isc, true, false, &dev->routes.adapter.adapter_id); } - dev->revision =qemu_get_be32 (f);return 0 ; }
Signature · 1 line
2.4.5
Peter Maydell
AppliedQuoted 8 lines · Cornelia Huck
The following changes since commit
0030ff40472b9ebf0e0595afbc8d7e428218c5d7:Merge remote-tracking branch 'remotes/kraxel/tags/pull-vnc-20150714-1' into staging (2015-07-14 14:52:45 +0100)
are available in the git repository at:
git://github.com/cohuck/qemutags/s390x-20150714
Quoted 8 lines
for you to fetch changes up to
2af9170c8c269c4fba73e5271453ca15a57f5844:s390/virtio-ccw: Fix migration (2015-07-14 19:10:03 +0200)
----------------------------------------------------------------
s390x fixes for 2.4:
- virtio migration regression
- missing diag288 watchdog resets
Applied, thanks.
-- PMM