From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 755FED8094F for ; Tue, 30 Apr 2024 09:53:35 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=K91n1ww/fRmUHKQSM4XDsxWK8TEHDLgTzLkXQsRtTP8=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:User-Agent:Subject:To:Cc:References:From:In-Reply-To:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240206; t=1714470813; v=1; b=lm7UE8dH2hCaTt2SSkxTZtGzPt6tZWcykWL9RMeGGez2lGFKZY65OTUV7M0veISWUAv+vdxB rLkILnuz4CsrVII6q6IbhDQiy0kQ2G57+WEYTsmiv+76N2U66Fz6IZBDvpflzYUDgeqwCv5pkHb M9PpXg473s5E49wAJas4DElLLgVzhxm45ulvTzq71viMUAG9qjJdhqZpc4ClmbOPwmb56N/AbOx 7YWVfTFyXeIHTKvniIj5Z4inVciw7gt7kDyhmuCy9cCR6UtpQ6IZPNfFehmRhVt8l2nJUiZb+xD rVm5Y1apAqbo88ZL/wo2xVwh7/9yZssf3Zcc8fhUiug1A== X-Received: by 127.0.0.2 with SMTP id yOZTYY7687511xdYOV3bvzjp; Tue, 30 Apr 2024 02:53:33 -0700 X-Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.64]) by mx.groups.io with SMTP id smtpd.web10.11497.1714470812855989356 for ; Tue, 30 Apr 2024 02:53:33 -0700 X-Received: from CH3PR12MB9194.namprd12.prod.outlook.com (2603:10b6:610:19f::7) by LV2PR12MB5992.namprd12.prod.outlook.com (2603:10b6:408:14e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.35; Tue, 30 Apr 2024 09:53:30 +0000 X-Received: from CH3PR12MB9194.namprd12.prod.outlook.com ([fe80::53fb:bf76:727f:d00f]) by CH3PR12MB9194.namprd12.prod.outlook.com ([fe80::53fb:bf76:727f:d00f%4]) with mapi id 15.20.7519.031; Tue, 30 Apr 2024 09:53:30 +0000 Message-ID: <53e28b77-aef6-4b8f-9073-f3117b0adb20@amd.com> Date: Tue, 30 Apr 2024 19:53:24 +1000 User-Agent: Mozilla Thunderbird Beta Subject: Re: [edk2-devel] [PATCH ovmf v2 0/5] Enable AMD SEV-ES DebugSwap To: devel@edk2.groups.io Cc: Gerd Hoffmann , Tom Lendacky References: <20240422121704.200856-1-aik@amd.com> From: "Alexey Kardashevskiy via groups.io" In-Reply-To: <20240422121704.200856-1-aik@amd.com> X-ClientProxiedBy: SY6PR01CA0105.ausprd01.prod.outlook.com (2603:10c6:10:111::20) To CH3PR12MB9194.namprd12.prod.outlook.com (2603:10b6:610:19f::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PR12MB9194:EE_|LV2PR12MB5992:EE_ X-MS-Office365-Filtering-Correlation-Id: 8cd5e603-4bb5-435a-a4d2-08dc68fb63ca X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: =?utf-8?B?ajVka21KbGdvMUV1RnZxV0xEWkNTcTdDZmV2Q1plcFJJdFpqUXRUTVB2eDN1?= =?utf-8?B?QUpodStORjk3bzUvNGZOdTNsdG50akg1d0hMdWo4bk80RUJwKzhqd1pTUXM5?= =?utf-8?B?MEkyWndTYzNtd3kyZWxqaldoYzdvRVFiME1uTzQ1U0RISXU4a1JrMmFiU1VP?= =?utf-8?B?WUZjOGNub3hPa0MzZGRuaEF6ZGZsMDBTTk9JV2xXYVp5ZU04NFBsRUsvSndr?= =?utf-8?B?ZDM4aXJIV2F0b3B3dFFFQ2d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?= =?utf-8?Q?iMiLryADg54Z1oBC+Dt+YOVUl?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8cd5e603-4bb5-435a-a4d2-08dc68fb63ca X-MS-Exchange-CrossTenant-AuthSource: CH3PR12MB9194.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Apr 2024 09:53:30.3268 (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: zyeYyx208MhJNSnaxNHnWVfcgTxRaaJuPSglGtAGXHvMdqYWq+gP4M3NVBVuxJyUNf8rRJ9UbVNfSsP1DhAHzg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR12MB5992 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 Resent-Date: Tue, 30 Apr 2024 02:53:33 -0700 Resent-From: aik@amd.com Reply-To: devel@edk2.groups.io,aik@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 9NtF8aRq6vpGzupJ8lQmLQkox7686176AA= 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=20240206 header.b=lm7UE8dH; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=pass (policy=none) header.from=groups.io On 22/4/24 22:16, Alexey Kardashevskiy wrote: > This is to prevent #DB interception on SEV-ES VM with > enabled DebugSwap feature, more details in 3/5. >=20 > The corresponding Linux change (HV and VM) went upstream > long time ago: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit= /?id=3De221804dad4e > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit= /?id=3Dd1f85fbe836e >=20 > And then I dropped the ball, sorry. >=20 > The previous conversation (more than a year ago) is here: > https://edk2.groups.io/g/devel/message/96808 >=20 > This failed CI though (figuring out this not-that-trivial Uncrustify guy = now): > https://dev.azure.com/tianocore/edk2-ci/_build/results?buildId=3D123642&v= iew=3Dlogs&j=3Dec42d809-3c3b-54a9-276c-e54a8b9aaee9&t=3Dbd91c6c3-6d75-5ede-= 7b63-5767cf827334 I finally got CI happy, here is the pull request: github.com/tianocore/edk2/pull/5594 How do I proceed from here? Repost patches here or that pull request=20 will do? I did not change anything besides spaces and CCs. Thanks, > This is based on sha1 > 6780b3aba086 Abner Chang "Maintainers: AMD as SPI driver stack maintainer= ". >=20 > Please comment. Thanks. >=20 >=20 >=20 > Alexey Kardashevskiy (5): > MdePkg/Register/Amd: Define all bits from MSR_SEV_STATUS_REGISTER > MdePkg: Add AMD SEV features to PcdConfidentialComputingGuestAttr > OvmfPkg: Add AMD SEV-ES DebugSwap feature support > UefiCpuPkg: Add AMD SEV-ES features support > OvmfPkf: Enable AMD SEV-ES DebugSwap for DXE >=20 > MdePkg/Include/ConfidentialComputingGuestAttr.h | 16= +++++- > MdePkg/Include/Register/Amd/Fam17Msr.h | 57= +++++++++++++++++++- > OvmfPkg/Include/Library/MemEncryptSevLib.h | 12= +++++ > OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLibInternal.c | 25= +++++++-- > OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLibInternal.c | 19= +++++++ > OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLibInternal.c | 20= +++++++ > OvmfPkg/Library/CcExitLib/CcExitVcHandler.c | 8= +++ > OvmfPkg/PlatformPei/AmdSev.c | 13= +++-- > UefiCpuPkg/Library/MpInitLib/MpLib.c | 10= ++-- > 9 files changed, 168 insertions(+), 12 deletions(-) >=20 --=20 Alexey -=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 (#118432): https://edk2.groups.io/g/devel/message/118432 Mute This Topic: https://groups.io/mt/105668050/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-