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 2521A740038 for ; Tue, 20 Feb 2024 19:56:40 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=UeJIldMF6HCHPnD0JnePCwuCvSTKJwuabcTWUUrz38M=; 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=1708458999; v=1; b=P3e/KwOeJMlpZEA90oDFYLkuzc2R/Gz3Yqss2EjsxubKFoyTwC39AU2iSa6Gh5yYz5qR4M31 a7C4ENkkm3ZLUsGsCf41k3VbWOBT+OAu44XjaXxkN2KVyNmJNJNz8ck8VLF4G0tr0MVfIQtrLHB n7Crax+O+muaOjrk9G24vVqo= X-Received: by 127.0.0.2 with SMTP id xwA3YY7687511xUSppUQSQ8g; Tue, 20 Feb 2024 11:56:39 -0800 X-Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.70]) by mx.groups.io with SMTP id smtpd.web11.23052.1708458999050122837 for ; Tue, 20 Feb 2024 11:56:39 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MU/YAbyFSbBPXN5aGE50cTbldk+fIo7w3mpKNziqlyjzQETYVnXyqUJOlh9XF1PIi9CTkhMQEwwNf1qiNmrNt3mV+cUHZDNK54Unlji4ytgZOUm5U+zkP2+MXywLphTt56mBBqpaOImtRsBM3Qu0369vyAjhb90fFY2hj12G29zSRuTBp+AlzjaDsZ1PeIrv60sSFVGWVKuPtwZ/AuehczS4F70bbNereZ536uRNgBVUbHDpSjTjdmj9ZwQX35bK+k/GNBtEv9oLmMYh/79lIE1Kat+/2FCG6NJPOdSzD3U/ueh6nRKhx5+K/M6efM9zEpz0R47XHh1ju9RfVRKjIw== 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=5H7I34lmD/xBdIF6hKOya+lrKHsOUhlWtDPL8tZXtmc=; b=JOZq6DCh/6GVNJEywh4f87lwhPRuFoTE29W2WBPHnpaVqXIkKJ3N4JQmXY9Bq9+ilg0CPT3nC/W+IGnsTgWNOLLbeA2MEDLNGWXFEQ5Z3bs3tKcqPay86lYxOCMh7U5Of9mEKw0fY3+JwVt/1STTHdoGIwWmpSmemi5WxU53PGqDXCMTIRlD7iaW5jsmSyU2QLOEabBl0YyilW1EQV7hNIuAn/HSpIR5Ag4CVxcIu0BF2jcqgJj7jRKUEV1fKki3zek//1iRfhWDAb9QHOzdW0ZGcCQlGkhDQNMP8Ff+GoWiiVc62oaBRIHyU3IqKd95vlVOIXZaxGKIQNdBcfCU7g== 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 DS7PR12MB5767.namprd12.prod.outlook.com (2603:10b6:8:76::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.19; Tue, 20 Feb 2024 19:56:35 +0000 X-Received: from BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::db9b:a5f:5d0a:2a42]) by BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::db9b:a5f:5d0a:2a42%4]) with mapi id 15.20.7316.018; Tue, 20 Feb 2024 19:56:35 +0000 Message-ID: <21dbc22e-ce25-435f-aad0-d6f51e4f33c6@amd.com> Date: Tue, 20 Feb 2024 13:56:32 -0600 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] [PATCH v3 4/6] OvmfPkg/ResetVector: SEV: keep #vc handler installed longer To: Gerd Hoffmann , devel@edk2.groups.io Cc: Liming Gao , Michael Roth , Oliver Steffen , Erdem Aktas , Laszlo Ersek , Min Xu , Ard Biesheuvel , Jiewen Yao References: <20240220090639.472222-1-kraxel@redhat.com> <20240220090639.472222-5-kraxel@redhat.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 NRAz6ShU77jkoYoI4hoGC7qZcwy84mmJqRygFnb8dOjHI1K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cqNI9mDjJr NdQdtvYxECabwtPaShqnRIE7HhQPu8Xr9adirnDw1Wruafmyxnn5W3rhJy06etmP0pzL6frN y46PmDPicLjX/srgemvLtHoeVRplL9ATAkmQ7yxXc6wBSwf1BYs9gAiwXbU1vMod0AXXRBym 0qhojoaSdRP5XTShfvOYdDozraaKx5Wx8X+oZvvjbbHhHGPL2seq97fp3nZ9h8TIQXRhO+aY vFkWitqCJg== In-Reply-To: <20240220090639.472222-5-kraxel@redhat.com> X-ClientProxiedBy: DM6PR11CA0044.namprd11.prod.outlook.com (2603:10b6:5:14c::21) To BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL1PR12MB5732:EE_|DS7PR12MB5767:EE_ X-MS-Office365-Filtering-Correlation-Id: 3e3cfacc-666a-4aaa-843f-08dc324e0afc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: ubBmI2KmZVcOvQ5DnaV07GeKqs6EZFQUUWxMhGvZlDOf7PQ1qJv2Is8gsovKntSgUeDNvdQmGbvi0NtkpFTQFGyxoY6lmjXjDFjSe/avxn5QccI9lWuQXBxBKfJj0yo7+aW7P0bb2EAMJYkpOuKwMkPDuDTW3v+badQO+B3tAqa8wH2coWvYqUbAtqrADmprWbkBGYVfMhjWvOhmi1A1YC9F4vxbSPr+6cpi8wKjlagzSzlyUoBZQVFov0pxzcLFDromFR1ShlfQgplKWnKt89erB1a16oAEklG5aH6nLsvuec9SgWs9a+ce2xrYp+/N2Vs+/oBQVDs2owYouwcwXuiiEhugu42+jGXLxowNBfNTWZ7ZE/9pEEC5fECr3K4OBNwoVErnSG/tYE+2SEpLkooivWWbsyuzRuhlX9GDcb/alHdJrs0yOWov4mrlymaa9f9IF+5XFYU/EZ6dnRYXZVsn/Le1fMZVUXVfjg05u9ETpx6fPYAVUiU3wIAx91bD2M64UAfoMt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wRHlaVHlxUnF6VjMybk5KWGZwZS9NYnMvZi9sZ0NUaUVuQ2owWmFvQjFy?= =?utf-8?B?Uk5QdExtZFpiNXdVT0p5UDgzMHo2RzNKYUs3Yk9ZS1Jwak02aUNORVhzbVgw?= =?utf-8?B?QmNmdTVLRmpvN1JmMmVYenNLKzVSTUhTT1lUZlBTV2p5MlBVOVpqVU1TeVdS?= =?utf-8?B?b01NM1MrcFNreWJrSkhjRWp5bXY4RFhhdWZaTkxOZklCVTdlZk5pWnNPWk8v?= =?utf-8?B?cW5oTEhscS9saVY2Z3l6TVpFOG1aWHVvWGVISEVmeTFac0crL2daamxjeGll?= =?utf-8?B?VlE0N1MyUmJGNENJdzdwQlVYS2dQQVltZWtOL2UyNURvU3p3d2E1WHIrQnox?= =?utf-8?B?Y0FWOGVWRHpxR3JYNElFb29JS2VMTkdlRW1ERWduVndpcFU2VjhCU2Z2ZHcw?= =?utf-8?Q?xoCqIA9Yzms+I979eXVLOGVhN?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3e3cfacc-666a-4aaa-843f-08dc324e0afc X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5732.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2024 19:56:35.4450 (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: HQKaaV7k95zDOMoPB4pTKCrWmGPoPpON5O2LXuFjB8Lds4uxsCVUqBJkS6UssA7kF0PJDnsA42t3aBtLKp5X1Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5767 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: r49JXPELVkujGVm1AhOwSLaFx7686176AA= 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="P3e/KwOe"; dmarc=pass (policy=none) header.from=groups.io; 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 2/20/24 03:06, Gerd Hoffmann wrote: > When running in SEV mode do not uninstall the #vc handler in > CheckSevFeatures. Keep it active and uninstall it later in > SevClearPageEncMaskForGhcbPage. >=20 > This allows using the cpuid instruction in SetCr3ForPageTables64, > which is needed to check for la57 & 1G page support. >=20 > Signed-off-by: Gerd Hoffmann I think a comment should be added above where the #VC handler is=20 established to document that the #VC handler is removed at the end of this= =20 function if SEV is not active or that it remains installed to support=20 CPUID calls, e.g. to check for 5-level paging support, and is removed=20 later in SevClearPageEncMaskForGhcbPage(). With that, Reviewed-by: Tom Lendacky > --- > OvmfPkg/ResetVector/Ia32/AmdSev.asm | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) >=20 > diff --git a/OvmfPkg/ResetVector/Ia32/AmdSev.asm b/OvmfPkg/ResetVector/Ia= 32/AmdSev.asm > index 043c88a7abbe..02f287f1d934 100644 > --- a/OvmfPkg/ResetVector/Ia32/AmdSev.asm > +++ b/OvmfPkg/ResetVector/Ia32/AmdSev.asm > @@ -158,6 +158,11 @@ SevClearPageEncMaskForGhcbPage: > cmp byte[WORK_AREA_GUEST_TYPE], 1 > jnz SevClearPageEncMaskForGhcbPageExit > =20 > + ; Clear exception handlers and stack > + mov eax, ADDR_OF(IdtrClear) > + lidt [cs:eax] > + mov esp, 0 > + > ; Check if SEV-ES is enabled > mov ecx, 1 > bt [SEV_ES_WORK_AREA_STATUS_MSR], ecx > @@ -332,7 +337,6 @@ NoSevEsVcHlt: > NoSevPass: > xor eax, eax > =20 > -SevExit: > ; > ; Clear exception handlers and stack > ; > @@ -342,6 +346,7 @@ SevExit: > pop eax > mov esp, 0 > =20 > +SevExit: > OneTimeCallRet CheckSevFeatures > =20 > ; Start of #VC exception handling routines -=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 (#115678): https://edk2.groups.io/g/devel/message/115678 Mute This Topic: https://groups.io/mt/104464311/7686176 Mute #vc:https://edk2.groups.io/g/devel/mutehashtag/vc 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-