Received: from eggs.gnu.org ([2001:4830:134:3::10]:46321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dIJ2z-0004Ne-8x for qemu-devel@nongnu.org; Tue, 06 Jun 2017 14:17:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dIJ2w-0005jp-2x for qemu-devel@nongnu.org; Tue, 06 Jun 2017 14:17:41 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:56826 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dIJ2v-0005jj-PL for qemu-devel@nongnu.org; Tue, 06 Jun 2017 14:17:38 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v56IDu5p131590 for ; Tue, 6 Jun 2017 14:17:36 -0400 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0b-001b2d01.pphosted.com with ESMTP id 2awp6c57jh-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 06 Jun 2017 14:17:35 -0400 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 6 Jun 2017 19:17:34 +0100 References: <20170602140531.48332-1-pasic@linux.vnet.ibm.com> <36a993c4-f667-28c0-2d45-69fc6a42ed79@linux.vnet.ibm.com> <89a75c33-b27d-704f-896e-2fe19a999d82@de.ibm.com> From: Halil Pasic Date: Tue, 6 Jun 2017 20:17:29 +0200 MIME-Version: 1.0 In-Reply-To: <89a75c33-b27d-704f-896e-2fe19a999d82@de.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Message-Id: <2936d7ee-b163-2d29-4853-9c0d0fc34f97@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH v2 1/1] s390x: vmstatify config migration for virtio-ccw List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger Cc: Cornelia Huck , Dong Jia Shi , "Dr. David Alan Gilbert" , "Jason J . Herne" , qemu-devel@nongnu.org On 06/06/2017 08:07 PM, Christian Borntraeger wrote: > On 06/06/2017 08:02 PM, Halil Pasic wrote: >> >> >> On 06/06/2017 10:21 AM, Christian Borntraeger wrote: >>> On 06/02/2017 04:05 PM, Halil Pasic wrote: >>>> Let's vmstatify virtio_ccw_save_config and virtio_ccw_load_config for >>>> flexibility (extending using subsections) and for fun. >>>> >>>> To achieve this we need to hack the config_vector, which is VirtIODevice >>>> (that is common virtio) state, in the middle of the VirtioCcwDevice state >>>> representation. This is somewhat ugly, but we have no choice because the >>>> stream format needs to be preserved. >>>> >>>> Almost no changes in behavior. Exception is everything that comes with >>>> vmstate like extra bookkeeping about what's in the stream, and maybe some >>>> extra checks and better error reporting. >>>> >>>> Signed-off-by: Halil Pasic >>>> Reviewed-by: Dr. David Alan Gilbert >>>> Reviewed-by: Juan Quintela >>>> Reviewed-by: Cornelia Huck >>>> --- >>>> @Christian: I have re-tested with 2.5 (because of the rebase). >>>> AFAIU this is pretty much ready to be picked. >>> >>> >>> I wanted to pick this, but it collides with yout patch >>> s390x/css: catch section mismatch on load >>> >>> >>> Can you rebase it on this patch >>> (see https://github.com/borntraeger/qemu/commits/s390-next) >>> >>> >> >> Hm, that's tricky because I actually have to do the equivalent >> of 's390x/css: catch section mismatch on load' as part of this. >> I have just sent out an RFC showing in that direction. There >> however I have to touch common vmstate stuff. I have initially >> hoped 's390x/css: catch section mismatch on load' into master >> soon and I can do a 2 patch series on top of that (first >> patch common vmstate stuff, second patch the adaptation of >> this patch). >> >> Here is a link to my RFC: >> >> https://lists.nongnu.org/archive/html/qemu-devel/2017-06/msg01413.html >> >> What is in your opinion the best way to resolve this? > > I have "s390x/css: catch section mismatch on load" on my next branch and the vmstatify patch > is the only reason why I did not yet send the pull request for the pending patches since I > hoped that I can send both. Since the section mismatch contains cc stable, I actually want it > applied before and a separate patch. > So I will just go ahead and send my patch queue tomorrow (with a pull request on friday) and we > will handle this patch with the next chunk? > > That's my preferred solution too. It's possible that the RFC mentioned above, although fairly straightforward, will have to take a couple of rounds. Having a firm use case is also beneficial. Regards, Halil