Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2166669pxb; Fri, 17 Sep 2021 03:54:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/tklDDSO/2J5WEalXdz2Tl6ddGIXBzGh5JNlvdFn6ziw5agf0Xaax8+Ug51OeL/+rLKRN X-Received: by 2002:a05:6402:1808:: with SMTP id g8mr11652573edy.188.1631876053776; Fri, 17 Sep 2021 03:54:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1631876053; cv=pass; d=google.com; s=arc-20160816; b=ONwt7/OHXPp65dtjJ77V5b+2Lui1vWJ5F24BCsnEanTr21dX+Rj4wGuAZ4ZERCvlXv CXoast6tVVf4g87yoJMKyDFZuzKqmOzRAz3SJLocAia2DIO+Sm9jXaFC0Pbk4xJ8nCoT TevfYdWyauNAyBtuEZyOQHwA+KgFP8w05NviUZPKYgjWqOqZXRjL6uD5CVozM20NCGLa QlCFyz7fZoCGxfjR1k9TtqjQG9GpFapI7wvNWO05JUDlZPqq9PrSVRXChjFD1QKc000i 5kpaNO5UKz3DADN5A8E4PTlAgWAX4ujCtos0aAfaZZfDppQBj/goV2LVZtxloVIZdyRg 2LVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-language :content-transfer-encoding:in-reply-to:user-agent:date:message-id :from:references:cc:to:subject:dkim-signature:dkim-signature :dkim-signature; bh=V1kCTDQ+5740MBTc/UN748rPeIbBl3mcCLheJp4qkdc=; b=tpv77FgxG+XK8w2gUF6XMkCzPBaZ5HDKRa8WyuJPzfWoURu1SfL3mlMdQo/XqEgvV4 5jadgFkd9O7yovWiC4lV6cPbDHjyavpp9xwrhII4uSjOjbVChnK6gXiBHbqfDvwP8Z64 2DyxmZpOZHEa49qUWUIO61LIVmdOWeUKUjABBpdJmKxEDtjtO0X8qJlxsNFX9nCWGiRX aZqTEq80+e4MPhGsNaM3cAE/acsWEN9NQS+q++x4MD58VJDGs/pTVWxLLsDPf/HkOnKZ 5LZ/PNXf3HuTWsAg/pAlnEhG2QLCGdzD67uWl+MMbLVASCjOMk3NbZ2oqpJnKEmsCjPc jxag== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=CfUC+ICB; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=iIZtFHT9; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=dg6QRNmw; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h5si3723481ejo.483.2021.09.17.03.53.49; Fri, 17 Sep 2021 03:54:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=CfUC+ICB; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=iIZtFHT9; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=dg6QRNmw; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242342AbhIQBhS (ORCPT + 99 others); Thu, 16 Sep 2021 21:37:18 -0400 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:53270 "EHLO mx0b-00069f02.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236351AbhIQBhR (ORCPT ); Thu, 16 Sep 2021 21:37:17 -0400 Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18H0aVTU026758; Fri, 17 Sep 2021 01:35:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=V1kCTDQ+5740MBTc/UN748rPeIbBl3mcCLheJp4qkdc=; b=CfUC+ICBBekfLy+NJbH5hbOOAxFbWGIzKPqE+/pkz5fraBFMa8RKlOGhE2QJc4O4Wt9V ynAihZxO1bDr7TaQg+NNEhfpb2Fdz7dwLNRNAUmlleIZSSmpYWKll+Phg2XpE912fDKT Qf05CZFfp/lPAmpH+F+wgHxUpkhGNhhLg2LRtbsEewK4oBuLeP2smw9iS5ns4Lag+fQF hka0rATWNTSh4UPTMoBHS20tEeJD4DhnSvSLH4dd3GCR0oO6Lt5Ey01ztLLBl1P5glFo PD5DcHms8EjV8aWeA22WW6OK1HkaJ+s/Z03qTdfE08cwm7atB5OOXE0IRSqa5px9c2pt Mw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=V1kCTDQ+5740MBTc/UN748rPeIbBl3mcCLheJp4qkdc=; b=iIZtFHT9cZMV7rqXiErG80tjOyen7fZSxADIzeWZZQk5D79gxO2HLY/U9C3n4puXmrZ3 awKil23HfMVY0JmgGymr1g1+vKPYUIY5xZwTZ3Xfu5wW7/rxnqCkFjfqDWbe32GFHtBW BH3CrdgBp+94iCumKEAzaxMsj30aNFTtDbYzCVIhGnZeCvf60GNqsvksgI+Kcr7W5Gj/ lAuurHAPhwg98tpBCPZnW/NAmmp0gCv6Gee2d3+/ftR3wGxXy6slhJVFMxGGWFVJgmdw JVD3rS4GhQz99u6wQbNsDGJx0EGYmdpcalrSpWMPUVg4fC1wOWlss/KKlvwSOU3HcLfN BA== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3b3jy7nryy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Sep 2021 01:35:50 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 18H1Ti6J139848; Fri, 17 Sep 2021 01:35:49 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2173.outbound.protection.outlook.com [104.47.59.173]) by userp3020.oracle.com with ESMTP id 3b167w2xn5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Sep 2021 01:35:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mnreMX8uyV/4zleVxMfRdwGL9TvEYs++UPZZ3SjEhjOVEPBLWEFP4QD8gTOySZhfYwe5mV8rn48hhtK8FvBp/fwHOsYhOcnmPVlcni/ZJtINrTy4DDQGxGodsq1Ez8GMGIK5z4s1RZ2znotJXwSOlg5c0YzxyV5wkxOkcGCk+3Dou3aoGCU59dvfTM7P/eeu6o5pn10ayxHSIkpwm2QFW4A88ycAFFIWUPZkZM4njXzQz+Z1OogufOFsef7xKV1cgwHpa8LA4HHkSGc4J4l9EzUqHA6+CRX09pDIlj8Fp5hlG5dkuUFiWR3cb0ByYcnEB7N4Qtt5z3jd4ZviAL+45g== 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; bh=V1kCTDQ+5740MBTc/UN748rPeIbBl3mcCLheJp4qkdc=; b=TkXX55ePThMzjSZImgQJYwyXCULXN3EjV1CgY2OzLB1A4UHPvF3o+daPCrRjqaymQD5KZCktqOpf4iO9P3TEBIri6TTcsR9mm6c/werCYkM8cBivH1sANccvRw1ZtaWuP2jnmeTGQG777xSiP0Ke3MXG5++ftUz5P7RXh34758RW6P4fK452VWOF6FrQtSTxaUpbIot7dnBsHQVb6lpzR6sngVi5Ti4+JNsebiO1bRMOH65xyYwEHFaAe6oeMow9ntq2cQWJx1snf87h5yV2sqAow6vEqWCgGXnIQ3inbxcbfo1twJF2U+qKIa0XRmerIO5/Z6iyjnVdz1q//AQy0w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V1kCTDQ+5740MBTc/UN748rPeIbBl3mcCLheJp4qkdc=; b=dg6QRNmwmop19mO3vUIEC1Ae7vSPX8+4HavVo1fR4Lw7vW8xZYfdjoZfqSJnsDTHzkAEzw89xPi03wnlQhg3A7RRdMhnO1OPgnTIUvEDhq1EMuNLMpYbzO1544zM01+2WwKeDxfv3YY4O8aPLmU6M+UoXDbJb5qHpZ/haJ0AkU0= Authentication-Results: lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; dmarc=none action=none header.from=oracle.com; Received: from BLAPR10MB5009.namprd10.prod.outlook.com (2603:10b6:208:321::10) by MN2PR10MB4192.namprd10.prod.outlook.com (2603:10b6:208:1d9::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14; Fri, 17 Sep 2021 01:35:48 +0000 Received: from BLAPR10MB5009.namprd10.prod.outlook.com ([fe80::f520:b987:b36e:618f]) by BLAPR10MB5009.namprd10.prod.outlook.com ([fe80::f520:b987:b36e:618f%7]) with mapi id 15.20.4523.017; Fri, 17 Sep 2021 01:35:48 +0000 Subject: Re: [PATCH] xen/x86: drop redundant zeroing from cpu_initialize_context() To: Jan Beulich , Juergen Gross Cc: Stefano Stabellini , lkml , "xen-devel@lists.xenproject.org" References: <14881835-a48e-29fa-0870-e177b10fcf65@suse.com> From: Boris Ostrovsky Message-ID: <3ea71751-1de9-2da8-9a90-b4d22277c6c9@oracle.com> Date: Thu, 16 Sep 2021 21:35:44 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 In-Reply-To: <14881835-a48e-29fa-0870-e177b10fcf65@suse.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-ClientProxiedBy: SN4PR0501CA0045.namprd05.prod.outlook.com (2603:10b6:803:41::22) To BLAPR10MB5009.namprd10.prod.outlook.com (2603:10b6:208:321::10) MIME-Version: 1.0 Received: from [10.74.113.247] (138.3.201.55) by SN4PR0501CA0045.namprd05.prod.outlook.com (2603:10b6:803:41::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.5 via Frontend Transport; Fri, 17 Sep 2021 01:35:46 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 18620748-a5b3-4779-1eb7-08d9797b7949 X-MS-TrafficTypeDiagnostic: MN2PR10MB4192: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1002; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lBWcWQzGtf+fRbqZk42Iyfiw0KKVfDJr3sdnhYSBgcKV3Rxzg/pp3STQ6X7/TDez2a3B/dnIpw1i8H5NHLfND52LL1ghR7pwTFBTFKDPY/R2wuLEe0GJmB/Ar4LCifHzkom4enMbyJHwvofgu1KTbyZyCDkFTeSX8/x7DCMCZbrPm36ajfFgpWS4zCIN0frvwx94bsDlNUW8Hhf4OFtMp9S7MTfZzTPw/9FrNAefuzF587li0FMnhuwWiHWLz7i06SPjQPzBvHgYiLMU7sn1gBuNK4wHsAJo1EYQjyyAg1mHa7KXQ/bWvv86GY2AEuoTjHNO+MSbfkuC+QHsolur+W7XBhT9kd2WUw2BH8MlVso3lVf4JITbprM8DGC2W8THSmUzEipDh7VYp2ppDFo2LE+cv/uBPqFd+F7z2d712p/trJUGQMm+RHX7If48H1eRE9cGJH+GmtQLR6OZBAyf6nin+4+VizLORTwG5yrDXXj9H/d748foL/wDNd+gvWpnVT2cXvY0iwzilbx1tPglFMB8Hd0GUhlvg4Govo7OVwRfGmZcQfGEFt+qWV4Nt0P7ged9+qiRKCLt+YkXxZLwq/pecdaW9zFaAvhvC14FENm6qZwLErofc823l/DVjFS5IH3rkKbJuW/Sq3hhFFcgSijXAC2bdDCFUzdYu/P1PqKtTUjvy3Wa/UGzCYuy0ivIOKNd3ZDVruIMBzBDkmPQB5v7icXBaMVJly9q+kWjYEBMUarir1PPlp/2cw4sLlDU X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BLAPR10MB5009.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(396003)(346002)(136003)(376002)(366004)(39860400002)(110136005)(38100700002)(4744005)(5660300002)(31696002)(8676002)(478600001)(66946007)(66556008)(66476007)(316002)(44832011)(4326008)(16576012)(2616005)(8936002)(31686004)(2906002)(956004)(86362001)(54906003)(36756003)(6486002)(53546011)(186003)(26005)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS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JHNK73Hc2LBJUYLJFaLAsLi+1h6w?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 18620748-a5b3-4779-1eb7-08d9797b7949 X-MS-Exchange-CrossTenant-AuthSource: BLAPR10MB5009.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2021 01:35:48.0424 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: z9rxFLvIJx5ESFJBd0WdGwb8laajDXY5wrxrHvmtyL7MyegTCBC3PeNiG93L+hK/ODZFzv1iRgZF0ycPK8Ho61tzVTbZMcYcB8yOrLG7ZiA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR10MB4192 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10109 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 adultscore=0 suspectscore=0 phishscore=0 mlxlogscore=999 malwarescore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109030001 definitions=main-2109170007 X-Proofpoint-GUID: 8Lvy2NR6RkG2NNG8CW1GBnXtIdCjCt7d X-Proofpoint-ORIG-GUID: 8Lvy2NR6RkG2NNG8CW1GBnXtIdCjCt7d Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/16/21 11:05 AM, Jan Beulich wrote: > Just after having obtained the pointer from kzalloc() there's no reason > at all to set part of the area to all zero yet another time. Similarly > there's no point explicitly clearing "ldt_ents". > > Signed-off-by: Jan Beulich Reviewed-by: Boris Ostrovsky