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 16E567803CF for ; Wed, 24 Apr 2024 16:38:18 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=zjCLP8xq+5/3dCP6ZURtFRnN8Rje9l5xGdLbobDNzM8=; 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=1713976697; v=1; b=bPB/81Dyqx/cFmS97yYYCRMXYtGk30eQOM90i7JqxnxxYVbsYBTUI5q9ZrFy4bqgTqZiAgQF J5BFZnkFnFCTw1v7bHq65hfkAlue0SdJG72qIPYOtSoOjzsQCKtUVDD1WN1HKMi/4sZIZxvnGtE X8SxN1KxDP8xXrVqJkkC6mg53YMr3y7Lo0HqZMq4hHkMprN/l6XveciWCF1ryt7XrBpAHc1arTM uxcMsFmAXxq1OXUxaulGum+2sN4G+NnhHVJv4ancb6+HCB9Osi2e4XuVYioaLoujvZ16dAP6Cki jGcBE0pyt5ok1hwOfdEEh8fObm4reaA23achdwD07XF0A== X-Received: by 127.0.0.2 with SMTP id 0DH8YY7687511xuDhbDLVNlz; Wed, 24 Apr 2024 09:38:17 -0700 X-Received: from NAM12-DM6-obe.outbound.protection.outlook.com (NAM12-DM6-obe.outbound.protection.outlook.com [40.107.243.49]) by mx.groups.io with SMTP id smtpd.web11.1425.1713976696643215393 for ; Wed, 24 Apr 2024 09:38:16 -0700 X-Received: from BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) by CYXPR12MB9277.namprd12.prod.outlook.com (2603:10b6:930:d8::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.22; Wed, 24 Apr 2024 16:38:11 +0000 X-Received: from BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::bf0:d462:345b:dc52]) by BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::bf0:d462:345b:dc52%7]) with mapi id 15.20.7472.044; Wed, 24 Apr 2024 16:38:11 +0000 Message-ID: <6e89b08b-e852-9892-3adc-1c2d30941746@amd.com> Date: Wed, 24 Apr 2024 11:38:09 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [edk2-devel] [PATCH] OvmfPkg: Don't make APIC MMIO accesses with encryption bit set To: Gerd Hoffmann Cc: Michael Roth , devel@edk2.groups.io, Ard Biesheuvel , Erdem Aktas , Jiewen Yao , Min Xu , Jianyong Wu , Anatol Belski References: <20240423205958.1791780-1-michael.roth@amd.com> <006f3bfc-d7df-f2a9-57fb-378c72e316bd@amd.com> From: "Lendacky, Thomas via groups.io" In-Reply-To: X-ClientProxiedBy: SA9P223CA0008.NAMP223.PROD.OUTLOOK.COM (2603:10b6:806:26::13) To BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL1PR12MB5732:EE_|CYXPR12MB9277:EE_ X-MS-Office365-Filtering-Correlation-Id: 3fb7b8af-aba6-4ba4-2e8b-08dc647cee37 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: =?utf-8?B?ekZxNkJXL1FwK2N6Qk1QN01WNnlOMis1NU1JSmdJM1pHUGp5TTBLWmcwbHl5?= =?utf-8?B?dlZrenJiM3hhWmFHRUE0emUxTnRnak8rU2xaN0hjTmxzejhObHJ1UzBHNjla?= =?utf-8?B?c3FqL3gwbnRKVHVqbVdlQi8vUFplc0RzVmxqRUVuZVBYbDZBTGV1ODJRb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L0lSR2g1bE9pbHFHd05wd1JuVG9DWlBjMVdBZXZvU0d0a0lCTm12d2x3?= =?utf-8?B?SG4vNGZpdFlKTGM2THdUa25mT0E3cUYydEJvQWtuRmYzTmRwL1plS3dXOWNo?= =?utf-8?B?NG5OeDBwMDJXeVBoZitQaHNITk9DNHVxOThmcEZYZHB0WkVTRWkvWjBEaW9B?= =?utf-8?Q?QqzziFai2k9Z6D9R+5JD0rQSo?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3fb7b8af-aba6-4ba4-2e8b-08dc647cee37 X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5732.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2024 16:38:11.6552 (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: gUdn4z8Nwj/NIgz2XYDh4BMl0V4rtkCh54qCqdawBhoTWZKMEmNW2cLL4DcPn35c1szj7MTwizJWzd6HTlEdow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYXPR12MB9277 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: Wed, 24 Apr 2024 09:38:16 -0700 Resent-From: thomas.lendacky@amd.com Reply-To: devel@edk2.groups.io,thomas.lendacky@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: OsUISKh728ikMq8n3xQqgYh1x7686176AA= 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="bPB/81Dy"; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io On 4/24/24 09:45, Gerd Hoffmann wrote: > Hi, >=20 >>> Ideally CpuPageTableLib should be used for this. >> >> CpuPageTableLib will need to be modified in order for it to be used at t= his >> (Sec) stage. In order to work in Sec - either the caller will have to su= pply >> a list of pages that can be used if pagetable entries need to be allocat= ed >> for splits >=20 > I don't think so. PageTableMap() has the 'Buffer' parameter for passing > in page table memory. And the patch reserves a page in MEMFD. Handing > that page over to PageTableMap() should work just fine, no? Oh, I thought the library allocated the pages, my bad. Mike and I will=20 take a look at that. Thanks, Tom >=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 (#118223): https://edk2.groups.io/g/devel/message/118223 Mute This Topic: https://groups.io/mt/105698125/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-