Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5667809iog; Thu, 23 Jun 2022 03:00:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sIuYNk8isfUb6K5L6cmOUXywSu9kCLlBJdPGenHFoYDdqsYeWYi+zkUdeY02fZGrbru5iY X-Received: by 2002:a17:906:4fc4:b0:6da:b4c6:fadb with SMTP id i4-20020a1709064fc400b006dab4c6fadbmr7532360ejw.282.1655978422981; Thu, 23 Jun 2022 03:00:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655978422; cv=pass; d=google.com; s=arc-20160816; b=vl7saDWW+zsSVlR8HdBiYO6jBILJwkx8KmuNXh/DULpFJrqWN/tfSJl0yj2VunBZ4M vC7CGP7h4+bXS1qQZ7VM+FgxhUWWwzgzPAsULToic1hmdGHYfsswTvJLrp1X7EQcA/jy so40xtuDcFBV+AePhYTw/bl5X9pcSCuqkGSoSDHJ9ZAtp8ghQf2ILkgpZmfkEH56Gzzz ElbcslDI4NObzsf5CNmv0ZFcBrpTHi3RrgJK/JUOc29cuwS0vc0DA7m5seECoe85WE0T PL4gy2VtEJ6rz/DqcJlfFJpb6gXx3GBW3kxOVoUZL9kdoiYcuY7NJT398hBTu6LvJeeK xhIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=cPkCWlh2g4+7fZKEVssqxY5bK56PP5KkWtPeMBrD6HY=; b=z5047m16JKeyikgqyawiMvVd6i4uc6J6AH22/o+K1SpNPAvLSZKFRUKz//x05GFgNb wE9rvIKEDqZMSkeI0qp4ngvMGwPbFp+amGeQ6YzfeQskjG2pPiDAajILgnXX8xTCMlk4 EGXbATzMHP0VT7WCW4q0kVCtUEGITBtRYYpuXqMqXT1fGN+SVfLJ6cZ3H0/rLMGoppMR 52772fvj7sR+d4x8U6AoX4M06f9cCg8E0NoMJXmIg4mnSDDId5J+z8MD5TunXQowqzNu AlPM/V56xmfuxEg2QChtW2IKsPo9LjoJd3rnbAqu5r7oOI8g1kW2ViDA+3h2V0wLEKDm QdtQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=selector1 header.b=MU6knorz; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y24-20020a17090668d800b006f448225497si3383085ejr.672.2022.06.23.02.59.58; Thu, 23 Jun 2022 03:00:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=selector1 header.b=MU6knorz; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230456AbiFWJvv (ORCPT + 99 others); Thu, 23 Jun 2022 05:51:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229811AbiFWJvt (ORCPT ); Thu, 23 Jun 2022 05:51:49 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70051.outbound.protection.outlook.com [40.107.7.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C981B848 for ; Thu, 23 Jun 2022 02:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lRH5NpRMrtMONiZ1XMBzLpTmL/ycHKKaOb5wO4TjNG5ztthbzpisad2IeutLdgqSMqS8m5cXiZnIy19RuGUKURLr5j4RU6IyeHzAZBK+uUyrUOeNPSFmIHrrwB88YYxD6/0hdIkGew2jnFIUaXA7Z0HSEHx+nJimzesczhbXiMaAIMn3HCmGjxzAjXKCqQirTvO9fAN1tNS/n8Grhj7RxvKblAgRvEqh0e1wf80mTY9MM92Cs8oODhWyArg4Dn9glxV2DtQVfKxtPx4OxczAgn2oNb1pO8G/q8FAemNOWXkuwkwVzBxEL/uOc3w22qlD19YmOCA+wIuIiJ8juk/lsw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cPkCWlh2g4+7fZKEVssqxY5bK56PP5KkWtPeMBrD6HY=; b=aWs67TC54fP+wfHpWULJzvk5Ehr7O1D58k+siXIicpbrZPCCRf7mJ+qrhYq/QEDFS48bDeM6+U/5s4IkUQcWk82J+a+2Yl94/9pxHBUXx6a+jOV/F2FXfmds4/4+UulMFIxLzzQZXJX+1Jat/NNV8kYa1FsJVOVKipcS0J6E/kEPy+bUwTeb/ySRTSzSiLfCdiNk49QlbCpR38ZUvB/mQOgbOyY5vQ+DMoU1QYn9plb37JpMQ6CNB1T1gsMEdhB52Zj1FoqmCQSMfb7QtV9cJX5aVvjK3EwTcmW8jXWz4IFnMj4hBWpFAgcmvS6Wk3A7WoM+PS5PNiPrD9/oHxJ8zw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cPkCWlh2g4+7fZKEVssqxY5bK56PP5KkWtPeMBrD6HY=; b=MU6knorznhgr/KNHnlkstznCF6rWIP/2L1aoNdQ4Ax7qZe0Ebcm2/FEfyDGzAl7ZNE/PPocaRIsgWHQPulFfTI7d5vB0I85uwFztYDACokXv0t750Z6M7+POqraNgnwhk+rZi8CgnjraOhZMHi5USYITCCOC1+XmviciB/GDQe4y1p4zp7FYrlzJ+0YK1rASsOFUWRB8MnmPbYfxBdrak84Usb/669GwUaY5S0TAuCi+0bl4O9z7WF8H6guv3g3f6v74VTHwJ7QgDCu80sFw89Uk0nPdxa/Cl2Z67oWTfr7P1XJDSxwXQc6xL415Lh+1+lZpvnu9Pf8dk4Bf8Bp5NQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) by AM0PR04MB6324.eurprd04.prod.outlook.com (2603:10a6:208:13f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.22; Thu, 23 Jun 2022 09:51:45 +0000 Received: from VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::dfa:a64a:432f:e26b]) by VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::dfa:a64a:432f:e26b%7]) with mapi id 15.20.5353.022; Thu, 23 Jun 2022 09:51:45 +0000 Message-ID: <117fd526-a241-2f01-47b5-e40e1803124b@suse.com> Date: Thu, 23 Jun 2022 11:51:42 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v2 1/3] x86/xen: use clear_bss() for Xen PV guests Content-Language: en-US To: Juergen Gross Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Boris Ostrovsky , xen-devel@lists.xenproject.org, x86@kernel.org, linux-kernel@vger.kernel.org References: <20220623094608.7294-1-jgross@suse.com> <20220623094608.7294-2-jgross@suse.com> From: Jan Beulich In-Reply-To: <20220623094608.7294-2-jgross@suse.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM6P192CA0057.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:82::34) To VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4e8848dc-1266-4755-f88c-08da54fdfb9b X-MS-TrafficTypeDiagnostic: AM0PR04MB6324:EE_ X-LD-Processed: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba,ExtFwd X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: N2UkmaNdZxfNORvtmTIF6RqV4//8CO09hcEe6RLZszB0dglB70vRxJ7/gwXdu/PBNR5cPbXwv03hCWsxOacrquvXiT0li1xeaL5vYw0x6/9VgO5GrRyXAPK86lyAqt1sHuTTxVGsOJfre3GkmDiL1AQB75ePyDwoB9WaILYGgGeeq1+5J2EiBAqx0QD8XsvWa3wUneSIX1AC0eMB9Dejl9g7A0rmiW6hD+zd5NRa8OX7crQpIgsKP1ePdPz2oC31MfGnDMZ2IAD7teFX0WGQ5YBuzuJa+vZFw/6mArv3DIASTJEEf0ucj5cwzQ0FU63wkG/UDZ7U5IKsd19yDFyq8tRyqWqJm/KPrHH3ocJS0F3Toa7jVuvzNMlzYPAxa9OHZLPyyGJ/wmesY81yIk3yF9wnXdwfsXVH9Ei/pZ1a5mpaLntDgpul6kEXsD+ntvjiOzCSYbAyJGQHk7zyhL5hgmKBFxgJutRLwBNa6gXV97hngCMl4kjIr3rcLvFAbmVSsqlHy6TjGktq6Xv3zMXOk6FvnTteE0ApdCJxpuN9Za733YvpOPlEazAWWJVYQNPlaYUI804HsEklmPp06L4emWqkG8FlXmD8ZBAr5zLCUiU9JEwMdBvZ3gcQC5nqggvE/uGtITAl6rOJUfb8zbTExs4SPes4x+Ja+pXlGatcgmfxnPRrK3xQZx2BdoMHB1ZQaUfCbANt68C4bzis8U9PpPFs+19mKPFgUnpIVJoW/C5NQ/U7ORrXj7rbs919fQu6Z1AWrOLRfMKRLRV8hDyKdhTMuxMkr8bOqknjiBlP3cA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6560.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(346002)(366004)(376002)(396003)(136003)(39860400002)(6486002)(53546011)(478600001)(6666004)(26005)(6506007)(54906003)(8936002)(6512007)(38100700002)(186003)(41300700001)(4744005)(31686004)(5660300002)(2616005)(8676002)(66476007)(36756003)(37006003)(316002)(6636002)(2906002)(4326008)(6862004)(86362001)(31696002)(66556008)(66946007)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bzZNMndKRjZMZGllVk8yS3hqV0VEYytPUi9lalJESDhIY1V5RHBkdlh2V05a?= =?utf-8?B?WlhsT0VpN3ExenJqYm9TUnhjTWszVENWY1JDZ0FvRUNhM3F2dlMwMldqdzdI?= =?utf-8?B?R09UTFMrNWJ1QmhIVzkvMXZxTkkwV2JOUFd2aFB0UlFRaXE3aGJZZVVJNTlu?= =?utf-8?B?QTVGSkFGWTdsV29ZVFBpR0o3VnF1QTk5bXZ3a0NmUjk4Wmk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zd5VEMzdi9xR01zRFNmbkNDamt1d0Y1MlZuR2hKemFPWFFmaW1C?= =?utf-8?B?ZklmZnRzU0NEMzBudm5KcnpvWDdTVUdib0R2T2FLWmdDMU5pMTdoeExKcUtv?= =?utf-8?Q?268NdWPJWZKXNEuR3qskNoJ+b?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4e8848dc-1266-4755-f88c-08da54fdfb9b X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6560.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2022 09:51:45.2670 (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: bfyGMPdbQf6yUA21JLyChEz8CUhNOkUHAdwAj+tMT8bbiLPYqpg/a/YCfUHQMWMIIFca3xzuLDMNdgF2DQuT4w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6324 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23.06.2022 11:46, Juergen Gross wrote: > --- a/arch/x86/xen/enlighten_pv.c > +++ b/arch/x86/xen/enlighten_pv.c > @@ -1183,15 +1183,19 @@ static void __init xen_domu_set_legacy_features(void) > extern void early_xen_iret_patch(void); > > /* First C function to be called on Xen boot */ > -asmlinkage __visible void __init xen_start_kernel(void) > +asmlinkage __visible void __init xen_start_kernel(struct start_info *si) > { > struct physdev_set_iopl set_iopl; > unsigned long initrd_start = 0; > int rc; > > - if (!xen_start_info) > + if (!si) > return; > > + clear_bss(); As per subsequent observation, this shouldn't really be needed: The hypervisor (or tool stack for DomU-s) already does so. While I guess we want to keep it to be on the safe side, maybe worth a comment? Jan