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=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 0123EC07E96 for ; Tue, 6 Jul 2021 14:07:59 +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 967F661A2D for ; Tue, 6 Jul 2021 14:07:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 967F661A2D Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.151391.279792 (Exim 4.92) (envelope-from ) id 1m0ljn-000240-7T; Tue, 06 Jul 2021 14:07:47 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 151391.279792; Tue, 06 Jul 2021 14:07:47 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1m0ljn-00023t-2u; Tue, 06 Jul 2021 14:07:47 +0000 Received: by outflank-mailman (input) for mailman id 151391; Tue, 06 Jul 2021 14:07:45 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1m0ljl-00023j-MG for xen-devel@lists.xenproject.org; Tue, 06 Jul 2021 14:07:45 +0000 Received: from de-smtp-delivery-102.mimecast.com (unknown [194.104.109.102]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 271ee2a8-d6ce-4d44-a2c6-be3d1ea34053; Tue, 06 Jul 2021 14:07:44 +0000 (UTC) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01lp2059.outbound.protection.outlook.com [104.47.2.59]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-25-KchfXxDfNTyOEml1MXZF0A-1; Tue, 06 Jul 2021 16:07:42 +0200 Received: from VI1PR04MB5600.eurprd04.prod.outlook.com (2603:10a6:803:e7::16) by VI1PR0402MB3935.eurprd04.prod.outlook.com (2603:10a6:803:1f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.33; Tue, 6 Jul 2021 14:07:41 +0000 Received: from VI1PR04MB5600.eurprd04.prod.outlook.com ([fe80::99d3:99cd:8adf:3eea]) by VI1PR04MB5600.eurprd04.prod.outlook.com ([fe80::99d3:99cd:8adf:3eea%5]) with mapi id 15.20.4287.033; Tue, 6 Jul 2021 14:07:41 +0000 Received: from [10.156.60.236] (37.24.206.209) by PR3PR09CA0028.eurprd09.prod.outlook.com (2603:10a6:102:b7::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.19 via Frontend Transport; Tue, 6 Jul 2021 14:07:40 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 271ee2a8-d6ce-4d44-a2c6-be3d1ea34053 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=mimecast20200619; t=1625580463; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GJIpvwo8QqpTK7WW+1RQbAa9950DtOgEGt9vLhVzg+M=; b=g9z7vbfIlVq3nNl85oPtlMtoaKl0fn8NTRru0S8Xn/zHz6B2dXhxFtOKc/+TxshxWCm5ds ANYr8lqBpFgw6TtLTVWHaXJYkLGPYJlPxSwYlUfJRHiG+RHZmPwVyf/Hg71JmS8w21tes7 Tz6n/5AK8UlxLySdt22rgb/pHf3w1U8= X-MC-Unique: KchfXxDfNTyOEml1MXZF0A-1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VU3UntHuHZMcX4Szf1zdhcdAPS6dAv/XYfoJVWMLZ+YAstqDct8mNPVG9SryuQQCcuZU0msIJH1BRw82tKrsJAfVBQFehptquzU+Q55oE9OY0Fz6fw+nD/6EOmAWno82HyWxuYs+dyDxtSRp7O5OZwlPA88e1cczrBTgvrJelbzBzYQf6Mby/+Oi5gZNuyLEgR3Z0a4Z+E7chKhllxOhnATXe/RcaDNPk6RViHO/gLQD509dXB7aFYR9SHWf3U9B4nYr0N6E4lTghux51mrWpNd5cEuiCvIW73UUgWcjEO5buoxsRmmMyoWkTmMgk0bpr+I/Ec5S+SfCipJmKJLEPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GJIpvwo8QqpTK7WW+1RQbAa9950DtOgEGt9vLhVzg+M=; b=HGGeUzAZyunLBnQJIP4yHlhXsvvR/fo1LAXLmgeYCLFKIi9E9dKl3QH9UWyEKGZbWvdFejK76I2L032iBtExtl2A40+iJ3GNfyCLwnXpesbMcrQyzdfo6h4Vu+3dQNzHXE4KD+4g9DXklDFRC3LJOXnTEzT+yO++b2RU6f7wtgsRgU6QdXVDi6QplNRuty96E8EoCvYL63avUz4ObMoPVdQQMsVXF8ReFr4HHpS0lg6enrU/2WgOaJv7XqIPC44kGawUlXA7qYnS61cpAVzlQF1qT8J5MR4hQdKyvzXxBqiOCszpy1g1xo8N8Mv1MZZ7CsU900DzPSCrcGT/OVOk1Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Authentication-Results: lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; dmarc=none action=none header.from=suse.com; Subject: Re: [PATCH] tools/xen-foreign: Update the size for vcpu_guest_{core_regs, context} To: Julien Grall Cc: Julien Grall , Ian Jackson , Wei Liu , michal.orzel@arm.com, olaf@aepfle.de, xen-devel@lists.xenproject.org References: <20210706132000.29892-1-julien@xen.org> From: Jan Beulich Message-ID: Date: Tue, 6 Jul 2021 16:07:40 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 In-Reply-To: <20210706132000.29892-1-julien@xen.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PR3PR09CA0028.eurprd09.prod.outlook.com (2603:10a6:102:b7::33) To VI1PR04MB5600.eurprd04.prod.outlook.com (2603:10a6:803:e7::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 55e77974-13a1-445a-a042-08d940876b24 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3935: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1850; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uwhXAKl1+cK049Rhm8WZAVOBVx21ce/aHLZMrqHYasL0DHNf1eEkD6jwzemSG4G/ZHaqkpN3I8+QAk2FfWqEeDV5OMoHIy8mPOAeicJC9K0tSYUHGkpaqk06afg4IKWcAl/g8SCutJo2l+VcZe5ndngOMWTQ5TExsafx5sPDjMufAqSpGx3Wr0He2p2m3sg/dtjbYarx8Ht45VHC6kDeJfnQxGri9b1LhJxSa1mhgMGuFy986BhWcNnvhun4RI/mdbefwmOYSKDcfg6r1TsezWwm82KxftlJ18fT2jiY1G7S76kh5YBN2cJTeAqVXOkf2Sok9RUkMZoY2smVyMNIOBMLZflnrMXtxPm8aF6ABUoPOFHWWVowGYN7qDZr2feQIkgtF7Q7Pi4uSNbYKY5SoXHNiZYg5838cwZFNSFHRCA9Qywy18zZHU5UNzFP4vkeRo4rDFusFZSjbnLlVO6PXVjTc8GHmfdSPjNmnXpZKOiCVuEEQGOeXvO9C8ZiJ18vslN2sAOcxBcigccSs5qwEuZ/zEMrdY6s0MpF6olocrivgdtL4am8rupwD0KUmUKAzxt/8jNsCbEHJr4AXS00lEwTfEQ7IPn4UmbAbqGiG0zGQ3y9FV+/rUdDYNQuu/mR8VAVwwiHKB6uz/vzK9ecRJyWEq71iqKeqr8tMKM+a2igTg3TpEFmWzeky4/eFDe1dWlK/tm+8J2ybzgAccqlRY8lK1ICUN2/RlyHJaTLoVk= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5600.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(136003)(396003)(376002)(366004)(346002)(39850400004)(2906002)(8936002)(478600001)(66946007)(53546011)(66476007)(8676002)(16576012)(5660300002)(54906003)(316002)(4326008)(31696002)(66556008)(6916009)(36756003)(956004)(186003)(38100700002)(31686004)(83380400001)(26005)(15650500001)(86362001)(6486002)(2616005)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Q0s2aWpIbExSZ3B1SzZrVEJkT045K2V5MXU5V2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55e77974-13a1-445a-a042-08d940876b24 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5600.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2021 14:07:41.3100 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vJ8DC0tx1Q0bdlI9KSlbCKL/M+WKNR0kNcgOKJkVLJV8vcjRNxh+nbMOZoVIU5u50/FFEkw3onzKryErT1hOzA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3935 On 06.07.2021 15:20, Julien Grall wrote: > From: Julien Grall > > Commit 918b8842a852 ("arm64: Change type of hsr, cpsr, spsr_el1 to > uint64_t") updated the size of the structure vcpu_guest_core_regs and > indirectly vcpu_guest_context. > > On Arm, the two structures are only accessible to the tools and the > hypervisor (and therefore stable). However, they are still checked I suppose s/stable/not stable/ and ... > by the scripts in tools/include/xen-foreign are not able to understand > that. > > Ideally we should rework the scripts so we don't have to update > the size for non-stable structure. But I don't have limited time ... s/don't/only/ ? > to spend on the issue. So chose the simple solution and update > the size accordingly. > > Note that we need to keep vcpu_guest_core_regs around because > the structure is used by vcpu_guest_context and therefore the > scripts expects the generated header to contain it. If vcpu_guest_context is also tools-only, why does it need keeping (for Arm)? IOW can't you drop vcpu_guest_core_regs from the scripts altogether, and mark vcpu_guest_context with valid sizes for x86 only? Jan