From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 17944740046 for ; Mon, 29 Jan 2024 15:39:19 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=N3HhQi+8wcmNCAO+iZX0DZglCGU5u0kr6c6JeO7McW4=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Message-ID:Date:User-Agent:Subject:To:Cc:References:From:Autocrypt:In-Reply-To:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1706542758; v=1; b=GvmXlHhdKx8Jq5a5ofG2yIvpJcGaPX9BP6cEjLPS53gv67tu7YkaFj0ozudTuv7W47t0UOQQ Hues/ONENIziK6zOohUQbiNM9KA+JnsOcgafyE+uHdTRP+46bEjlCwhDJ061FqkKa8HF0KBvAZ4 F7KpB/aaY/LnVBxmp+L0CQiE= X-Received: by 127.0.0.2 with SMTP id oj12YY7687511xMdwXLAlrFO; Mon, 29 Jan 2024 07:39:18 -0800 X-Received: from NAM04-DM6-obe.outbound.protection.outlook.com (NAM04-DM6-obe.outbound.protection.outlook.com [40.107.102.44]) by mx.groups.io with SMTP id smtpd.web11.18240.1706542757713686532 for ; Mon, 29 Jan 2024 07:39:17 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m9WB/Ee6C3Gbo8qZYdPw7vwV0XB1BcdHilR0u5c+AhOYU4Nedgjdj3kEIomQJc/3Y6A6biZCnN+bKm/HcXTEIQRz4dMH/qMnqREQ35uVd0p6qxYGsz/c5b3Jdn9fX4j5x39JfejtIGoyGvSwxMj5v5EkurxNnqNAS9FdwUUqvGbwZPnEgMJM66WH2gw2Y+wsNLD64Z3dlMQypmMcQgAZe1oImz6QS2ZIej3tOhZBhz5uz2RTNnGCHHxDZV3f7/0hlFuxBcuT0pVuFXgHYebZJOa/O3EVVWtb2C1DpxCBEHumUuWf2ayvz9D85Q8PsgsAY/CYppKZ23LZGf0IEzItSg== 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=RlZGTJq2NClDaFCUJMW+5YGV0NPSMIPiv+M1SEuOlpE=; b=gQiEXlHHEo+tAFzbIoKRBbXEVEOTf2FLjIhZrb0uiy6iLKO7daDjFUUHNmfwsfMjaNM77WU7+99laroEQANwQvhnHV4goNTwUrYQijV/LbjFH0O26FdpNBaMXkIjJdRYyfCBIKxi66wTK4PqIvezxSj50SXXjeKA9VL2ft3JBy1lGLl+IwH3rJtb0GGuSdT0oDP/lqC/JQLgh/fmPciuciim+QU66s+cXDb9ThihNosibVIoNJoSgtT8gmOLajOKPeoyQgCjCv+o/pHdg90mEZkHOTRvtMAQ+xcZx0mYFx4VdGh7x/UltVFDSfKYwxjBoT4OZi90Y1r3sZX6YOf9cw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none X-Received: from BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) by BL1PR12MB5377.namprd12.prod.outlook.com (2603:10b6:208:31f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.34; Mon, 29 Jan 2024 15:39:14 +0000 X-Received: from BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::200:c1d0:b9aa:e16c]) by BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::200:c1d0:b9aa:e16c%4]) with mapi id 15.20.7228.029; Mon, 29 Jan 2024 15:39:14 +0000 Message-ID: <0db38df0-1f92-4839-8185-058db91caab4@amd.com> Date: Mon, 29 Jan 2024 09:39:11 -0600 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] [PATCH 01/16] OvmfPkg/BaseMemEncryptSevLib: Re-organize page state change support To: Gerd Hoffmann Cc: devel@edk2.groups.io, Ard Biesheuvel , Erdem Aktas , Jiewen Yao , Laszlo Ersek , Liming Gao , Michael D Kinney , Min Xu , Zhiguang Liu , Rahul Kumar , Ray Ni , Michael Roth References: <7289d8c5217907e711038e92cdec0c38ffe2f727.1706307195.git.thomas.lendacky@amd.com> From: "Lendacky, Thomas via groups.io" Autocrypt: addr=thomas.lendacky@amd.com; keydata= xsFNBFaNZYkBEADxg5OW/ajpUG7zgnUQPsMqWPjeAxtu4YH3lCUjWWcbUgc2qDGAijsLTFv1 kEbaJdblwYs28z3chM7QkfCGMSM29JWR1fSwPH18WyAA84YtxfPD8bfb1Exwo0CRw1RLRScn 6aJhsZJFLKyVeaPO1eequEsFQurRhLyAfgaH9iazmOVZZmxsGiNRJkQv4YnM2rZYi+4vWnxN 1ebHf4S1puN0xzQsULhG3rUyV2uIsqBFtlxZ8/r9MwOJ2mvyTXHzHdJBViOalZAUo7VFt3Fb aNkR5OR65eTL0ViQiRgFfPDBgkFCSlaxZvc7qSOcrhol160bK87qn0SbYLfplwiXZY/b/+ez 0zBtIt+uhZJ38HnOLWdda/8kuLX3qhGL5aNz1AeqcE5TW4D8v9ndYeAXFhQI7kbOhr0ruUpA udREH98EmVJsADuq0RBcIEkojnme4wVDoFt1EG93YOnqMuif76YGEl3iv9tYcESEeLNruDN6 LDbE8blkR3151tdg8IkgREJ+dK+q0p9UsGfdd+H7pni6Jjcxz8mjKCx6wAuzvArA0Ciq+Scg hfIgoiYQegZjh2vF2lCUzWWatXJoy7IzeAB5LDl/E9vz72cVD8CwQZoEx4PCsHslVpW6A/6U NRAz6ShU77jkoYoI4hoGC7qZc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yBfTqCinTrgqG6HndNa0oTcqNI9mDjJr NdQdtvYxECabwtPaShqnRIE7HhQPu8Xr9adirnDw1Wruafmyxnn5W3rhJy06etmP0pzL6frN y46PmDPicLjX/srgemvLtHoeVRplL9ATAkmQ7yxXc6wBSwf1BYs9gAiwXbU1vMod0AXXRBym 0qhojoaSdRP5XTShfvOYdDozraaKx5Wx8X+oZvvjbbHhHGPL2seq97fp3nZ9h8TIQXRhO+aY vFkWitqCJg== In-Reply-To: X-ClientProxiedBy: SN7PR18CA0001.namprd18.prod.outlook.com (2603:10b6:806:f3::15) To BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL1PR12MB5732:EE_|BL1PR12MB5377:EE_ X-MS-Office365-Filtering-Correlation-Id: 3861dde3-8457-40e0-41fd-08dc20e07234 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: 8dLn312Fh0uh5jkvc57+HC1uSPf4yjApSPruKa/7+JJln8Gg63kSN8RP5yARVF8gMdjrlzL1XTmHPhnaeHU6u1q1QSpj686qADHOq7cM1s16K5EKr+vuuoM3Qe5DvTk0w+g9F3KEiD4HGxH/F8Ln7KXn43l45AqCQWMnX1r6zOIaqtGrOPSvJW+K+qhkapYjP5fbom6Jz8bYtWi+7occpE5RmEJS3pTdRbkAZ1A8u26Sm56JVjB8QjEnGd2DsTtH0RvdrCYxGL2afbF28RqJQRAy+132yfhZHsnXc4Ui9MiZl+dzbZ7nFKwQ19dRIXD7Mxk+V/bP6KmUuquRb5oyuSwpOb/XzqHkzIij/GlyK6ga8oQQ84SJ2f2G5Dwy8vwNtCc9iiZO/p83eXe+CJpl8boNWoE2p0EejXmY49DthjUAxB9wom5s7fhDmvKvN9y0pgDTmrokpkZTRJqN/MPzt76f4aMoilqDvmbazMAvlhmbddx1ke4GGnIQdscJ+9bl69j3tC1ta8z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Z2TjA0c1B0ZGpMSis2VkhDQXJ1S2FXTkJUR1hiNld4bWFNcFgrak5mL1Iz?= =?utf-8?B?ZUNhWmpPMWtnSjJKUDVPOFFWcVR4ditXT1BXNEg1NVlTbEFkN213WkZzQUxI?= =?utf-8?B?bWJNR2d1SkwyMGlISGFlTVBrODRnSlBQZ05kMEFjUjRVb3lvbXBnZWQ2aTJz?= =?utf-8?B?Q05tVHozS29VSnR4aDhUSm5hV2RVb0FqeHZOWG50OGNlN3dtczlXZTFnelhF?= =?utf-8?B?T0ZNL2xMQS95Z2U3QjIzYVNpaVlENC8rRERXbXNpeXlMZVZwSUJiL3J2VmZs?= =?utf-8?B?MTVLL2xKTHFPek1qRXVIM2ZjWDJVNnpPMEFSaTIyYTBSc1NLY2lLTHZtakE3?= =?utf-8?B?TjhiWEJZbGZMbFZEMXlyMUkzQUdhODJNZkQ4dys5eXdQakJoVEVZUkNjWkI1?= =?utf-8?B?US85Y2FrVWdSdnVVZXI0TnVmQTc0Qk1rT1JuOENlTHU5SFhzV0JUNXdvM3Iv?= =?utf-8?B?bzdRZGhJZlZoSmdJV2lMUFQ3QmdsWlVqb040cllTKzNOd3BkdlNQQnVBYVBD?= =?utf-8?Q?JEGLXBR1bEPh69D80gZiayuF4?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3861dde3-8457-40e0-41fd-08dc20e07234 X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5732.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2024 15:39:14.2205 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fnCKVHpl1i6rovR/ECj1dbZWZVreyUSJGAsHXOtkN5tqK8ISv3AW7iQhkiZJ1P1BE4wAkztOoRGbgiwvsfQKrw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5377 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,thomas.lendacky@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: PjGw42I56dBZU7RjnQaBMnH8x7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=GvmXlHhd; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") On 1/29/24 06:59, Gerd Hoffmann wrote: > On Fri, Jan 26, 2024 at 04:13:00PM -0600, Tom Lendacky wrote: >> BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4654 >> >> In preparation for running under an SVSM at VMPL1 or higher (higher >> numerically, lower privilege), re-organize the way a page state change >> is performed in order to free up the GHCB for use by the SVSM support. >> >> Currently, the page state change logic directly uses the GHCB shared >> buffer to build the page state change structures. However, this will be >> in conflict with the use of the GHCB should an SVSM call be required. >> >> Instead, use a separate buffer (an area in the workarea during SEC and >> an allocated page during PEI/DXE) to hold the page state change request >> and only update the GHCB shared buffer as needed. >=20 > So the idea is that the lowlevel code takes the "page state change > request", then either writes the request to the GHCB when running in > vmpl =3D=3D 0 (this patch), or submits a SVSM call when running in > vmpl > 0 (somewhere later in this series I guess)? Right, when VMPL =3D=3D 0: - a1: PVALIDATE directly issued (if making shared) - b1: Page State Change via GHCB call - c1: PVALIDATE directly issued (if making private) when VMPL !=3D 0: - a2: PVALIDATE via SVSM via GHCB call (if making shared) - b2: Page State Change via GHCB call - c2: PVALIDATE via SVSM via GHCB call (if making private) With an SVSM, there is a need to build the PVALIDATE call in the Calling=20 Area (CA) and invoke the SVSM via GHCB call. We can't rely on the GHCB shared buffer area remaining untouched between a2 and b2 (though it likely= =20 would), so a common structure is created that can be used to build the=20 entities in both the SVSM Calling Area (a2) and the GHCB shared buffer (b2)= . >=20 >> Since the information is copied to, and operated on, in the GHCB shared >> buffer this has the added benefit of not requiring to save the start and >> end entries for use when validating the memory during the page state >> change sequence. >=20 > The patch is pretty large, I'm not sure it is possible to make it much > smaller though. Yes, let me see if it is possible to split this up into a smaller set of=20 patches. Thanks, Tom >=20 >> - i =3D 0; >> + Index =3D 0; >=20 > That rename can be splitted. Will be a rather small chunk though. >=20 > take care, > Gerd >=20 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114716): https://edk2.groups.io/g/devel/message/114716 Mute This Topic: https://groups.io/mt/103986437/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-