From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web11.49121.1680247954337166958 for ; Fri, 31 Mar 2023 00:32:34 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=dGlS5JnE; spf=pass (domain: intel.com, ip: 134.134.136.31, mailfrom: ray.ni@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680247954; x=1711783954; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=ODy1fo+HcGjwD/KOi6Td9IRwwJ9b+1MdBTwOBKMWjPs=; b=dGlS5JnEWyaEPIUk75GvK8z65MEuaZFC3cXX4D9nEnQOGZ3iA94QrhBt n+sTAL331PdC/83owo3X9mhFb+lVvsUR3YDUO2ySN6R2x8l4XyphPhghs VH1o4jyzYNGM2VMjBRtNL/ceb/3ta6OR5q1SSB/0f0rW1AO+P5MjirpA4 1AH85bJX5rY2tUrJMNyQUnE+6jukq+gbzB4JX/QpTkGOKMvd1wQF182tn /BensBUvZHF5H5DqAJCZJkONYkRhHDsYW9xd8gHblsUsk0xGqPaFeEUcA zcp6upoLS0Xp0BrhzjAJk4PO93JxZhigQKm5b5L8fy3bBYoyY/CzSrjAB w==; X-IronPort-AV: E=McAfee;i="6600,9927,10665"; a="404099377" X-IronPort-AV: E=Sophos;i="5.98,307,1673942400"; d="scan'208";a="404099377" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2023 00:32:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10665"; a="685026730" X-IronPort-AV: E=Sophos;i="5.98,307,1673942400"; d="scan'208";a="685026730" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga002.jf.intel.com with ESMTP; 31 Mar 2023 00:32:30 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 31 Mar 2023 00:32:29 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Fri, 31 Mar 2023 00:32:29 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.173) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Fri, 31 Mar 2023 00:32:28 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N8mJ7+YHyDGvFqMnQVlGeGN6cfZ4xKjyg0KoqBgemm7rODc62iLTSPORW0GybQsjs5g7ZSI9AEUmwsabgTqHo1ianGZ/vRwNpOSw6abeKPnawLR4cBwTaR5WkTyN5O5N2zx2h7Q4kzOA06Q1qYjixI4FiroByAGEFCS7tUna+7YoJ9fX5l5T4fA8opu+C6+REmWIZgO4pxbJCECqLosYY2P9reLIFkQgifFVoaecM+N8QAwNrjN/nnxlouW4YHaziRPZSS5Calpss+JJkwzXLrM8LQjyy1MzOMtU6C6DysDC66IAshlaT9Z6oHW7cfvBAyIbw3UesXkmlxyMwwx6ZQ== 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=r0/XE4F35D3shHLeqLYckRkzfeDoD5EMRmZboMd3peg=; b=dtrfepV/Q3JX2R+la+JFygjJ0vbq/20rGk9USzvq/us3lTPrKaXWLt0DuQg+dc9EoMfuhVQrELO8Yt5PW+hxE5yoSy58T+Z9BwkJodeHy6N6C7LyrNrrXg8NWvNbql/pQT7Ox6hAlgxuGg3/V4jX5WY3eWZ7/KhuZtHAcRNxdFWXGaZtXCkc2+j9hEklF1t+V0OCaPhBAUGs18PH9EJkd7AroKvn0h7+8c5HxudzcKcqHq4Ni92dVz+Ypshg2U2TJ4Xg3nd+dekTcHI6ZC/Pwd3Xpz3sBjMaPKJJWhzv13ahu3redLb3dZRLmaksZpppcQZjhAeVzXRbMxQ8ITRgXA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MN6PR11MB8244.namprd11.prod.outlook.com (2603:10b6:208:470::14) by MW5PR11MB5882.namprd11.prod.outlook.com (2603:10b6:303:19e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.35; Fri, 31 Mar 2023 07:32:27 +0000 Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::ae07:e96a:4a24:8a69]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::ae07:e96a:4a24:8a69%8]) with mapi id 15.20.6222.035; Fri, 31 Mar 2023 07:32:26 +0000 From: "Ni, Ray" To: Gerd Hoffmann , "devel@edk2.groups.io" , "thomas.lendacky@amd.com" CC: "Dong, Eric" , "Kumar, Rahul R" , Michael Roth , Ashish Kalra Subject: Re: [edk2-devel] [PATCH v2 0/2] SEV-SNP guest support fixes Thread-Topic: [edk2-devel] [PATCH v2 0/2] SEV-SNP guest support fixes Thread-Index: AQHZYaB86WwBn7C4Gk284gA8ZGs2368S8WGAgAGRMnA= Date: Fri, 31 Mar 2023 07:32:26 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN6PR11MB8244:EE_|MW5PR11MB5882:EE_ x-ms-office365-filtering-correlation-id: bd3d318b-daa5-4ee8-45c6-08db31ba13b5 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: YKx62WKXzXt3Q4iEmAkizpHMNPRVH0p2pGTW8ImRmRc+PR5xbSkjzL3nJGbbbOeulyk9EEg5xWTNTohZD43qsuXFXDATpId8xafbDAfy792c/fVnJaS7vfNDSGCKNDAOEnDJXDI8RenwSLs/VW+4u7LjX2eMj4UNnZ+sKFQi5ahWLTOc0665D920TJoL4NlqEQRV8eZcx75UQlIopXkIbTNInUKpcmySmNx/YgWjn8LHwtp3m65rrSk8UsOnIAQaEWZf7SzM0BFfFUn/W53Ua5bGBEor+Ps/PQ7PSObkGTKSrllHN6fqVflIV+/P7SQFJ5byjo1fap7Mhe+E0nczvwGmESNQGwWqeNqHk0QoP3vW+YSWMtdz7rldjLax2kQ7VqdcamMbZzkrqhnAsDoIa9PKQnGtq3X/xAv1kRLn0DNm3VM2rwC6sblPCEwYuSAtMNiFT4SHlF+JA62j+UicCEuNA9y0vrItm8jtN0vQEvHF0LTo+SOS6aG6ePKkFfiDtK09hro6DSxHvyiDm5ErGf9NUZLEbEKbh7RyDC/9+5N9TyqExXqjnILk2JFjtC+initlFhf5kUXEhfyIjPoQBa5MDLgL6BB6llzfrFJk4kA= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN6PR11MB8244.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(39860400002)(396003)(136003)(346002)(366004)(376002)(451199021)(66476007)(66446008)(82960400001)(186003)(122000001)(4326008)(76116006)(66556008)(64756008)(66946007)(8676002)(55016003)(2906002)(8936002)(52536014)(5660300002)(33656002)(83380400001)(41300700001)(110136005)(7696005)(26005)(54906003)(478600001)(86362001)(38070700005)(38100700002)(71200400001)(966005)(9686003)(6506007)(316002)(53546011);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?g2ZeaVAhUsfbH/buAdEAFZ2wiTJWoWSAskX84pUkE+6q26GKWGtjqoQdoZCZ?= =?us-ascii?Q?+w/tEXjPEly2NW/teCsRoMaX0dZXOzpA+r2QdS68DxtWD23K8AmmK77EamEp?= =?us-ascii?Q?mnTxh9kg2EgTRsZEtCcoCg/MeA7eDD7zlB8u1Hs5OajlcLJ/8GTyXP9ss3gm?= =?us-ascii?Q?kMMw6TPFOAW4AvFKr0KYleD+fAP8ulKWgJNEmhuONRuwquQMCShCoGzWBo5+?= =?us-ascii?Q?ORzT2EMyKK9+USSvINraKzNCfwdBVoF7nzvYmL6qHFkrsKbCsgx4VvQBjcSk?= =?us-ascii?Q?SLKVW+aO5Kx/4T0Yii+Ycfk2rj+uDb/rB/7Ce5CuktjYHOAWLD01PGm2HYdt?= =?us-ascii?Q?g1FIKDYSXjadmSfrgBWADNxpNdqJ9V1vfaZrvdNiIMKUfySIIlY5kXjCZQvQ?= =?us-ascii?Q?5hCkCTE1N4AMEp4WNPKdwKv+BW/4RjyWQ97Mwggzq7gjNpS/VerwlSQp81h2?= =?us-ascii?Q?p1nZ14OMeSYCuQ6oWezI9FY1Xp3W00RpLYF55mfIQ0+855q5k0wY2ZGajrcE?= =?us-ascii?Q?g9Mi0Y6cmOxkPx06MnbIa8wB+WpFH093JgPmcjVi0tbP+kFVP9CuehU9Au9v?= =?us-ascii?Q?JBM9Xnu/Vuf+Tpgx6oYpcPPpkzmg80c7jlO04JpJ5/mNQJIHeqg1bRTrin7t?= =?us-ascii?Q?V164yC+T+ZqL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m?= =?us-ascii?Q?6a7TC6AaBMZtT5aeeLE=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN6PR11MB8244.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bd3d318b-daa5-4ee8-45c6-08db31ba13b5 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Mar 2023 07:32:26.7330 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Bu4GhwFWnJ2v+HFj3qr3WPhPEVVgwPm/ZovkCRzJ6jDcQWUJziyFbKTHEmqt2SdTiT0UYraNcQ7hFH82p7tMSg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR11MB5882 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Acked-by: Ray Ni > -----Original Message----- > From: Gerd Hoffmann > Sent: Thursday, March 30, 2023 3:36 PM > To: devel@edk2.groups.io; thomas.lendacky@amd.com > Cc: Dong, Eric ; Ni, Ray ; Kumar, = Rahul R ; Michael > Roth ; Ashish Kalra > Subject: Re: [edk2-devel] [PATCH v2 0/2] SEV-SNP guest support fixes >=20 > On Tue, Mar 28, 2023 at 01:09:22PM -0500, Lendacky, Thomas via groups.io = wrote: > > This patch series provides some fixes around AP creation: > > > > - An erratum on AMD hardware requires that a VMSA not be aligned on a > > 2MB boundary. To work around this issue, allocate 2 pages of memory > > and using the page that is not 2MB aligned and freeing the other. > > > > - When parking APs after exiting boot services, the current SNP support > > will perform an allocation that will not be reflected in memory map > > being supplied to the OS. Instead of allocating new VMSAs each time, > > re-use the current VMSA. > > > > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4353 > > > > --- > > > > Changes since v1: > > - Change the order of the patches to make the patch diffs easier > > to review > > - Add erratum number to the patch description and code comment > > - Use existing ALIGN_POINTER macro >=20 > Series: > Acked-by: Gerd Hoffmann >=20 > take care, > Gerd