Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 861E3C43461 for ; Mon, 7 Sep 2020 09:29:12 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 47C162078E for ; Mon, 7 Sep 2020 09:29:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 47C162078E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kFDSK-0005dS-VD; Mon, 07 Sep 2020 09:28:56 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kFDSK-0005dN-4H for xen-devel@lists.xenproject.org; Mon, 07 Sep 2020 09:28:56 +0000 X-Inumbo-ID: 61dd1ac0-e639-445e-ba09-0dbea1d8ef3f Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 61dd1ac0-e639-445e-ba09-0dbea1d8ef3f; Mon, 07 Sep 2020 09:28:55 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 31F92AD1E; Mon, 7 Sep 2020 09:28:55 +0000 (UTC) Subject: Re: [xen-unstable bisection] complete test-amd64-i386-xl-shadow To: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Cc: xen-devel@lists.xenproject.org, osstest service owner References: <01e192ce-99ea-2fbd-317c-c9f4b99f6d2a@suse.com> <20200907092045.GS753@Air-de-Roger> From: Jan Beulich Message-ID: Date: Mon, 7 Sep 2020 11:28:53 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200907092045.GS753@Air-de-Roger> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" On 07.09.2020 11:20, Roger Pau Monné wrote: > On Mon, Sep 07, 2020 at 10:21:36AM +0200, Jan Beulich wrote: >> On 07.09.2020 00:48, osstest service owner wrote: >>> branch xen-unstable >>> xenbranch xen-unstable >>> job test-amd64-i386-xl-shadow >>> testid guest-saverestore >>> >>> Tree: linux git://xenbits.xen.org/linux-pvops.git >>> Tree: linuxfirmware git://xenbits.xen.org/osstest/linux-firmware.git >>> Tree: qemu git://xenbits.xen.org/qemu-xen-traditional.git >>> Tree: qemuu git://xenbits.xen.org/qemu-xen.git >>> Tree: xen git://xenbits.xen.org/xen.git >>> >>> *** Found and reproduced problem changeset *** >>> >>> Bug is in tree: xen git://xenbits.xen.org/xen.git >>> Bug introduced: 696c273f3d9a169911308fb7e0a702a3eb6a150d >>> Bug not present: a609b6577f7867db4be1470130b7b3c686398c4f >>> Last fail repro: http://logs.test-lab.xenproject.org/osstest/logs/153833/ >>> >>> >>> commit 696c273f3d9a169911308fb7e0a702a3eb6a150d >>> Author: Jan Beulich >>> Date: Fri Sep 4 11:13:01 2020 +0200 >>> >>> x86: generalize padding field handling >>> >>> The original intention was to ignore padding fields, but the pattern >>> matched only ones whose names started with an underscore. Also match >>> fields whose names are in line with the C spec by not having a leading >>> underscore. (Note that the leading ^ in the sed regexps was pointless >>> and hence get dropped.) >> >> I conclude this needs to be reverted, and there was a thinko of mine >> involved here: Avoiding translation of padding fields would be okay >> only when their values don't get checked in the native handler. We >> effectively have a not written down (afaict) rule here that _pad* >> fields get ignored (and hence don't need translation), while pad* >> fields may not be ignored and hence may need translation. I don't >> like this state, but I also can't think of a good way out of it, at >> least not just yet. > > I think his stems from the fact that we don't have a rule whether > explicit padding fields in structs should be zeroed. IIRC there are > hypercalls that would check for padding fields to be 0, while others > don't. Right - we only have an almost-rule for new code. > At this point I assume we can only implement the least restrictive > one, which is to not force padding fields to be zeroed? Well, we could formalize the (or ideally: some) naming model to distinguish the cases. Question then is going to be in how many cases neither contributor nor reviewers are(n't) going to pay attention. > This would have the side effect that they cannot be later used to > introduce additional fields to the struct without signaling the > version in use. Exactly, so unilaterally going the "don't copy and hence don't require zero" route is not an option imo. Jan