s390x fixes for 2.4:
- virtio migration regression - missing diag288 watchdog resets -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAABAgAGBQJVpURCAAoJEN7Pa5PG8C+vAkYP/jzskctUHA0T3BGDU/FmUWB4 h+wnFYvalsrYTpLkcul66pWlKk8So2u534n8Pb3045m2OXRky5dV2vHvmX8lBdDS qILwAmzMeLt/qPq4uzCig7ZyXwGqc5adWD2nuPfKyWVoQK7ow+o18/rWg7reaB0z prX0uyQ418XoJlnV4X9LuVcIXvOONfdfyvIvkkGj3FTs2LlhurR8p6D2TPD7bsgz PFEzcLkhIOT1B8DyKWur4FTrSEwp7lIid+iMZCyqL2ToO08fm0CjB+tLYmnkPK12 zLA450eLetbKqcWkDq/k3vORf036+gNrKQHiPVNQXwRd4bLYROqQ2+A1DPOgL8Qu /A5onctSdLFos4RQM3t8KgWz7CB2huNMUcq8GIyIjEehfayakm40uTMvDIGaRE5L qgqly4t2FnNEo/YS9dSVat1sJktGqRp/xnNTUTMo9ncefnlCs/zxSm0ply5NR8d2 nZS9YK755A1Ys5iYVEyIVVAAB9bewxP7FZwrSfhmvKKy5IAD2y4x7+s393oe6MXT 35xg/Z+KM42LvqpPLf5qjAeok+ALVO7+uwtCcVfHSJRdLoJNRdjHizv+RLfDMpyJ pYVt5qLnfWJt5WXb3ecbslwuowHhkj3wbwApP3QbNq17Rtgqdg4uG4i0sFcrOF1m alIb/ZPZ6IbkbeuCTpoj =k8xy -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20150714' into staging s390x fixes for 2.4: - virtio migration regression - missing diag288 watchdog resets # gpg: Signature made Tue Jul 14 18:17:54 2015 BST using RSA key ID C6F02FAF # gpg: Good signature from "Cornelia Huck <huckc@linux.vnet.ibm.com>" # gpg: aka "Cornelia Huck <cornelia.huck@de.ibm.com>" * remotes/cohuck/tags/s390x-20150714: s390/virtio-ccw: Fix migration watchdog/diag288: correctly register for system reset requests Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
661725da09
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user