Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp691548rdg; Thu, 10 Aug 2023 17:00:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFwai5Uy6ozVbDlZTIej45blLNs5TGb4J4EXiLaqjbFXvvTxNvPjvO9AsfbzktkI/WFcSPe X-Received: by 2002:a05:6a20:9146:b0:134:37bb:89be with SMTP id x6-20020a056a20914600b0013437bb89bemr559151pzc.57.1691712030040; Thu, 10 Aug 2023 17:00:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691712030; cv=pass; d=google.com; s=arc-20160816; b=VKibSM0aZGE/4OAa7GD0BM4veJ95mjYeHH0PtNTDkqbzcpozcvBEErff/SZ7A1l7ER IoP0hfkRIP8XBRGo2egDHhEMYa3i2oQGw1WIKmJLg0/ErVaO5FYWwjjzJGrTRPFyQo0d bf0CjREryioqSd/kxKz9PTC9ChUz/hF3oKO49+SlP+J0j4U4/6tEjCq8PvSbOUWow37/ h44Kr3lXOo8tsLMgXb9Ew7HGFp/MTs3qxVYH8RlDMoKtmzJHSyzuO1idRZgLiH/4TsuY SWdwqsIED3gqfw29cxriPWboQO4XOaCKhnCQaSd/ABsdzAH328IluzCaA07eapUwH7Di dwyw== 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 :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=9L/f919RrVZ7NdXBOF1+S+mj3StTN3K+4hg3X03zQEc=; fh=Z+VZZxmEsP0em4DRmYEmjlgjPaEoYHwbzMndeuFGUA8=; b=Sd56CQJD3Bdp/y2kycy6hOOnKg6983FpT+UxLaehPOcJRL6WchWRgSp69eP4HLlxml z2zyeo81xT9nsc+vgvg4oNtlNYDopZ51wMoRZutrrqT0PJufoTN4ImbE8Ve0tZ3qvuCq IRt0ndu4x0jJgWPcQaiJfsWL/CUrfX56xfdUr7KhU+d8o769xj9sy3MSs2l6CBo/FFtx 9gLxUg7OzPcqFGRJt+UPJwdxCnY1jA5m0xPzeSMsgEOisqyX91BwkoTxI4PKsQ1rPzB1 WFpPu4jF87aXzua42ImqU62htoZifLWujlFUcNjp10bkxiPnzpyotv3aWd10P9SXiPKd Z/aQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=HoARCBgZ; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a639542000000b005640642a1d7si2483250pgn.815.2023.08.10.17.00.17; Thu, 10 Aug 2023 17:00:30 -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=@microsoft.com header.s=selector2 header.b=HoARCBgZ; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232840AbjHJXML (ORCPT + 99 others); Thu, 10 Aug 2023 19:12:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232834AbjHJXMK (ORCPT ); Thu, 10 Aug 2023 19:12:10 -0400 Received: from BN6PR00CU002.outbound.protection.outlook.com (mail-eastus2azon11021023.outbound.protection.outlook.com [52.101.57.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD1472D44; Thu, 10 Aug 2023 16:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AEKpAxvZ6pP04K9Qs73ogsjC1OsIVvL4gU0ABRvIbgEm9rSIO+bizX639fG93YNxB8OPGBuuajuLXgNDs4G5l+pjVSf/g9RpoL6Of+SHW4Cvj4gaL5gT9Hr7w4Q+5958L+SbJF+dKwEBDWI73KVNmihQs2+LZk2J2EKsU3EElJo9aNXjk5nor8hufMZNHoWKjhl5rzkQWU5crPj73mOgL1JdTvyWULuKRFmWe3UbsqCdXn+7DpRjfqahSuHHi+tZlbxsma8ZLqCbpd4u+K+ARqxK+bnReL7jmAIMZycIDFmgQmWE6BFy5BllAm8+zfr3mlFJx1ifORQwPfC+vAoq0w== 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=9L/f919RrVZ7NdXBOF1+S+mj3StTN3K+4hg3X03zQEc=; b=T9GUVJnkWYpw8Ddswe5k4OfoBxBwFpgiKaZ2KIcwUfBuyXZ+liUVM8Gt9FPbxfMx/GtFMLPTKW3C6h/6JL6yOx+IiDsvh8HPtUIFZ2bTfH+1wdJzGiO+WXpw+iYqHN5cRni8rLOAxhFBPXWdPPi4wM/zSp2ihxKDfG1A1WYT997v6tSN7tRrclv6yeOQ1GhE0aSvZzq56ocJGnPIwzo3OEW2UAkrGFN3zc5Ud2rKuX9Iaw5ZjqgGiNgrPPcGZAArm+4dBiX22hSZl+aB/yj/M63Q7YdZUvGlunILRI0Zjo8neBOAo60ris9ouJloBPrqzK7h2cvnSynXcEBZFHx6dQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9L/f919RrVZ7NdXBOF1+S+mj3StTN3K+4hg3X03zQEc=; b=HoARCBgZozMAyZD0mIjnzvDLhBSWEMICSKP42TxaOWx3N1/ys/WXpeNY46pvXRr2kwhkkHHmE6lmfkwTP/R7gnjLvhlK1fFupaQF1Fxu82cjMaQqe5fSdIk4OGgoum+GBHnmW/t/SupZBUHh5yWMvggFVexmd4bGwACwBpIGlLA= Received: from SA1PR21MB1335.namprd21.prod.outlook.com (2603:10b6:806:1f2::11) by DS7PR21MB3151.namprd21.prod.outlook.com (2603:10b6:8:7b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.7; Thu, 10 Aug 2023 23:12:03 +0000 Received: from SA1PR21MB1335.namprd21.prod.outlook.com ([fe80::d4d:7c16:fa93:9870]) by SA1PR21MB1335.namprd21.prod.outlook.com ([fe80::d4d:7c16:fa93:9870%5]) with mapi id 15.20.6699.004; Thu, 10 Aug 2023 23:12:03 +0000 From: Dexuan Cui To: Tianyu Lan , KY Srinivasan , Haiyang Zhang , "wei.liu@kernel.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "hpa@zytor.com" , "daniel.lezcano@linaro.org" , "arnd@arndb.de" , "Michael Kelley (LINUX)" CC: Tianyu Lan , "linux-arch@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , vkuznets , "Michael Kelley (LINUX)" Subject: RE: [PATCH V5 3/8] x86/hyperv: Mark Hyper-V vp assist page unencrypted in SEV-SNP enlightened guest Thread-Topic: [PATCH V5 3/8] x86/hyperv: Mark Hyper-V vp assist page unencrypted in SEV-SNP enlightened guest Thread-Index: AQHZy6RawUgv+4tcV0WfLxaLQTtH8q/kKMLQ Date: Thu, 10 Aug 2023 23:12:03 +0000 Message-ID: References: <20230810160412.820246-1-ltykernel@gmail.com> <20230810160412.820246-4-ltykernel@gmail.com> In-Reply-To: <20230810160412.820246-4-ltykernel@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=b106d3ac-21d2-4c08-93bd-cec5d9a15825;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2023-08-10T23:11:41Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SA1PR21MB1335:EE_|DS7PR21MB3151:EE_ x-ms-office365-filtering-correlation-id: 421ee467-f62d-467f-4be5-08db99f73554 x-ld-processed: 72f988bf-86f1-41af-91ab-2d7cd011db47,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: jwAokuiZ6y9tFFtreuz+7FZAV6YSpT7/FeghWg0Y4ANG2nbqIBmwnpt4gSqX4TeEwQek1za0Atblr13+85yYl0rg9MjskkwqdwYU1tkFdXWm8xP/mSDq0f/o6/L36xx/RP2OdI2GrGNsniIiJIGMzsZ+aTQkQmxTs1kkjquR/H8Mt0UoBWnhKI223C/hclGftpB4AHuZZzg+XzJ2phkCRaWBcgEPgda90g+QTxc4k9LPOksHEgEGCGxQ/LGFAu4whFaHAmUtN+ee9/GLXRHWTWOex4TTH0eDWPQcidbpPB/Rm+PhygLWMxLk84z3O8RdGH1hk4juia1h/DoxeaVpluMZLXIScZFmC0J5ou+NR5tx4Rokw+uzQeyNQ6orn3mKtJTpUwTruKqWZhxHl+xwynfMNoozxQbtU/xrfoBjiGMiNm8iFfe+R7ud/zowZQmwQ0HS0L8ADY02OOB3yCLLxRDMrVUdmRISHzdEYuz4bcrh4SVHSf/Cc2Y8ZNrKH2Ztrw+2NTXjnVYR1Wp8g+s1gujjHIR6V/QtMNcuZmyY+PcCEdd85Xfm9GDS/6mPftSONwl/wW4+gV3/I/isZ9CKVnnX5YAlOGUz8QHWbSQVwwXPyX9tNi2hg5cxcI3iDUpchTS6EoTWwKYgCEhMfJmmIMroyiTn/lJfd8T8Za4Z7G+2LXDij4+1T1Y08iOQ4NSVbZQR40QK7p+EpdCEmCTVVg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA1PR21MB1335.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(396003)(346002)(136003)(376002)(39860400002)(366004)(451199021)(1800799006)(186006)(921005)(55016003)(8936002)(7416002)(52536014)(8676002)(86362001)(107886003)(6506007)(558084003)(26005)(2906002)(33656002)(8990500004)(38100700002)(122000001)(82960400001)(82950400001)(38070700005)(9686003)(7696005)(71200400001)(110136005)(10290500003)(478600001)(41300700001)(316002)(6636002)(54906003)(4326008)(66946007)(12101799016)(76116006)(5660300002)(66556008)(66446008)(66476007)(64756008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?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Vg3N6gxWzQiDRkqFwJZ4epYEo?= =?us-ascii?Q?WcY0o2/LvKosIwHKxk+kpJgubaW26B10oi18wpjJ87M6mliSDiGv2vnjJkx2?= =?us-ascii?Q?TiAPbMGOldU467w785rWce6eigtCfJNxVYBOjznIRPwBJTrLY92DOcPEQFPg?= =?us-ascii?Q?zmusy476da8uhMqQuhoYktoNqK/1ikp1BZvDECBbWmPr+YLC+IXKPxc4I6E1?= =?us-ascii?Q?Mo+Buex++py6XUcBHMvG+pDgMEFXPh5SnNbsRvsh7LDdgu66M3WHKZkb1SWk?= =?us-ascii?Q?SXA5eMsttXFDW/hjEq1/VkOWbFmSwzFbIAKj55DekmFXECFvljMnoYi8eROW?= =?us-ascii?Q?lIyGf3ED9Nt17ho8qRtip3FyEso2Xb8wCENbpcAlPNxICoqZJ3/FEaEQM6Kb?= =?us-ascii?Q?eZM5cdq738B9DQkqM20/Y6KhStPb11/5tQSuxCUZxLWQ+URbzyY3T7Hq7kHv?= =?us-ascii?Q?RlKrkmAmcXDyvRz4LgKS4jTgUgYHQl4G9sNIY8vUX4Pa28vZN5Rrm0U3/GHg?= =?us-ascii?Q?y+Qe3avFii5On20ykiI7oiEGYSJbn2x64Pmkv9uKhbh8ObPGWW2OyB54f/SO?= =?us-ascii?Q?au3NespaYb2hRAscyxAESkBr91yrItHrD5wUrXqvXjy1ohXCFo+79z2YUmW1?= =?us-ascii?Q?K8BKIWY1jPFOYMBIhSRAxfKF6hr8hCdi4H6QMSFDtvYYBxE6xDoOBqm2lSga?= =?us-ascii?Q?mOb4NHLTbbGZKanY/WwrbKN9bKE4bgNCUH/5syHT?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA1PR21MB1335.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 421ee467-f62d-467f-4be5-08db99f73554 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Aug 2023 23:12:03.3577 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: hZ+KixBuSCCMxtq3hUFa5du/t36LSy5h4vPw75BaiNZdlSs0kfQ+8kYvLYDC9Ah6tV3UDORWnmCuUEcTKUDauA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR21MB3151 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no 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 > From: Tianyu Lan > Sent: Thursday, August 10, 2023 9:04 AM > [...] > hv vp assist page needs to be shared between SEV-SNP guest and Hyper-V. > So mark the page unencrypted in the SEV-SNP guest. >=20 > Reviewed-by: Michael Kelley > Signed-off-by: Tianyu Lan Reviewed-by: Dexuan Cui