Received: from eggs.gnu.org ([2001:4830:134:3::10]:49978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCTnV-00008z-IZ for qemu-devel@nongnu.org; Tue, 07 Jul 2015 10:24:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCTnS-0001i4-PO for qemu-devel@nongnu.org; Tue, 07 Jul 2015 10:24:33 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:41263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCTnS-0001hg-Gl for qemu-devel@nongnu.org; Tue, 07 Jul 2015 10:24:30 -0400 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 7 Jul 2015 15:24:29 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 9D6D41B08069 for ; Tue, 7 Jul 2015 15:25:36 +0100 (BST) Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t67EOPM137814364 for ; Tue, 7 Jul 2015 14:24:25 GMT Received: from d06av11.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t67EOPQa016865 for ; Tue, 7 Jul 2015 08:24:25 -0600 Date: Tue, 7 Jul 2015 16:24:20 +0200 From: Cornelia Huck Message-ID: <20150707162420.66775202.cornelia.huck@de.ibm.com> In-Reply-To: <1436269643-66303-1-git-send-email-borntraeger@de.ibm.com> References: <559BB8D6.4050404@de.ibm.com> <1436269643-66303-1-git-send-email-borntraeger@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] s390/virtio-ccw: Fix migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger Cc: peter.maydell@linaro.org, jfrei@linux.vnet.ibm.com, qemu-devel@nongnu.org, agraf@suse.de On Tue, 7 Jul 2015 13:47:23 +0200 Christian Borntraeger wrote: > 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. > > Signed-off-by: Christian Borntraeger > Fixes: 213941d73b ("virtio-ccw: migrate ->revision") Hmpf, somebody was sloppy with testing... applied to my s390-next tree. > --- > hw/s390x/virtio-ccw.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c > index d631337..cc74c5c 100644 > --- a/hw/s390x/virtio-ccw.c > +++ b/hw/s390x/virtio-ccw.c > @@ -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; > }