From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (NAM04-DM6-obe.outbound.protection.outlook.com [40.107.102.45]) by mx.groups.io with SMTP id smtpd.web10.10204.1619716375457201959 for ; Thu, 29 Apr 2021 10:12:55 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=EAbk4pzG; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.102.45, mailfrom: thomas.lendacky@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lB8ukiYz/W9S8+XXCFh6nLMJ1z4/S61TahmF1E6YbK8J0qt3+6UNxbGIof9gogtqNGEdXB3EuY1SZHmR565xwqPxtOVnl+vo/YzZLxMds8xVVSlbJ9gbsFWt1OgphQm+znd1pPYlVy2G79hVfo++Awz5MP4fSu+UsG5v8xcp2Vb5LNRMY6yUfh9J/ZfOJ04LM5nKyuYdxsRuHwxb8oCE9N4dy2unqPnSJiYceITNbOY69r3h2OOo687J5ijRXrz5tB3CW+VmNlza5XWltq2eusFXwLXB9tOdK0dgxW2gthNkwa59w4C+WF02SRh6eVWF0YgOJ/Gb8WGXUxHLp9K37A== 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-SenderADCheck; bh=ZG4fF7skBu3dojAmFzgvTfLLE5UT6pdXnBCHdNJXx/s=; b=W25NEctXsxT8X8og5xJKU5N47cr7KsQkYyrRszs1XJ5gHg7c9EMCMIrxYuqFzk+ko8isYHpaVOVhU0CelfEUms1DQPr/1LoAiIKe7UREXOgan66fspsMVKnwxIVCvVoE6yl65YGIWBnE/4wXifBgx5xQP7Vx3pJn5nkb12mEc5uK5l776IEPo6H4Y82lw6Cjr4B6Ci3D1KyGby0XuawT98VaqG6VCe0hAw6qOVIaGdWY9raNY2SorXKhgrMhg33qmuXLA0BmJ2z8Ikw+Kl4RYKtSi9v0FNAJ+Mpcc3fv7wWETpHL39iPdAkOMWg6dCVYdLyJyBbZfUB3fDDx98goPA== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZG4fF7skBu3dojAmFzgvTfLLE5UT6pdXnBCHdNJXx/s=; b=EAbk4pzGQwZJHxuWWbYHSbkK4vOhPKmmbLqcrv5VmCzonMSykDpBeHc8BP+tMbQfmGNALPNUvEfFJNmpqiz8FAwK/DrLQIST4UaFq+vGEh/pln7bXJzwTALJkkFPWXZgWiI8w+3EeokZmrpYJ+qBHgLITl+dnhU0pf94VzGZniU= Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=amd.com; Received: from DM5PR12MB1355.namprd12.prod.outlook.com (2603:10b6:3:6e::7) by DM6PR12MB4218.namprd12.prod.outlook.com (2603:10b6:5:21b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21; Thu, 29 Apr 2021 17:12:54 +0000 Received: from DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::b914:4704:ad6f:aba9]) by DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::b914:4704:ad6f:aba9%12]) with mapi id 15.20.4065.026; Thu, 29 Apr 2021 17:12:54 +0000 From: "Lendacky, Thomas" To: devel@edk2.groups.io CC: Joerg Roedel , Borislav Petkov , Laszlo Ersek , Ard Biesheuvel , Jordan Justen , Brijesh Singh , Erdem Aktas , James Bottomley , Jiewen Yao , Min Xu , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Stefan Berger Subject: [PATCH v3 3/5] OvmfPkg: Define a new PPI GUID to signal TPM MMIO accessability Date: Thu, 29 Apr 2021 12:12:12 -0500 Message-ID: <03e292339273721724c8b14605cfe9d7bbe45a71.1619716333.git.thomas.lendacky@amd.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: References: X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SA9PR13CA0120.namprd13.prod.outlook.com (2603:10b6:806:24::35) To DM5PR12MB1355.namprd12.prod.outlook.com (2603:10b6:3:6e::7) Return-Path: thomas.lendacky@amd.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from tlendack-t1.amd.com (165.204.77.1) by SA9PR13CA0120.namprd13.prod.outlook.com (2603:10b6:806:24::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.8 via Frontend Transport; Thu, 29 Apr 2021 17:12:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e2c4f6ad-e0c8-4596-e368-08d90b3206a8 X-MS-TrafficTypeDiagnostic: DM6PR12MB4218: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QK/FCz1RqFolwyRwCtV/onLI+m7z9kZUEsifw7/5OxZrJHshJlYSOuJVHrNjxPrjfhorgiwmqzQPSPfQAb/HG8Tc5tPcGr4CbIOsCEoi0e9tUXp1Nxoa/iFzQQXExJlS0dFF20EfTWeAQIiCNN5qSgz3cEUY4sMmsSMb9cSB8gVWs18tVD6DvcVQLRjw1IoLCbgx0CPsAnD13ZQc6LSvXiPpPXtzuEM6My6psHaavtzHdlintEVjL2lIE7bCbQygwjwM4lRKN9C3Z+KOE4iC/ToI8FlERRgKxxj49VGXOBUdBw6Zmfdmk5Crbp6SWi41+eabjgiAJmgwNzMfLymBp6Uv/DcwED8Ns+hckTpF/fAJ235hLLG62qAW9mXmDyzlVlCrKX5+7nAOFW11aze+HHaslBzi2plTlF4T4rq+PREbGWtM1JBEXCMBZ8Z3PDOWRUUTh9itEgKfjiZVyaXH2rQ8E74YAW1bYuKPVZreOSKxEMhIWi5JP5jAftZGgzFIAaosSBMQ6DwNqHjDAHS1TYV4mAsdjyA0XzyHAT59ZoedXHG7ujSVwU3kTD8TwJnQzid8XSdQP9xh+iLUazFsdUxYD78pEIJ2UTse38/R+ze2BPiGKKmFdHYl+A00CKwlHFhRxJRPaqdPP59vXJvCNiJohoro47rGgA+vzL4R3TA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR12MB1355.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(136003)(376002)(366004)(346002)(39860400002)(5660300002)(52116002)(66556008)(478600001)(66476007)(16526019)(54906003)(66946007)(83380400001)(956004)(2906002)(8676002)(8936002)(186003)(6916009)(2616005)(38100700002)(6666004)(26005)(86362001)(7416002)(7696005)(4326008)(38350700002)(6486002)(36756003)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?bcO+DQFQNcKovJEVn32a2RAf9Q9IasK8dTPcL2ITmdRqXpstspVjGIutoNIh?= =?us-ascii?Q?qmsAPdkgxKhblY2XfbhNaCjp13tBaF8l5Ufpk0wKDiPif2tQ7V032NNGEGqJ?= =?us-ascii?Q?Pg0PvwJboi8KXGwAE/n4xkbcMjuXZg2yxZggEf2wThgOx2Pq9gSTRLq5rcwd?= =?us-ascii?Q?AjQOkHGa3iQP4t0sYQR67PlquTpu7EFIyAY47hsLTg3e4cUQPS0lN2DLqPZ3?= =?us-ascii?Q?vR4Ua3dqwIztvm4XLygziLoEC3+3YUtmW8zFiMinE/afCz0vD3sXX1iYnAfm?= =?us-ascii?Q?UEya/kwGWOeLECZy5LAfj3ZDY6Gh8SGzGTuORoT4o1l1gLfqVCC9AWAIAc9A?= =?us-ascii?Q?8UQcvXqMkiZZqBc4nnRe/uCnpyoK1U1JJLCnQy6YVTAp+I8ga8OdFW4ZGm+u?= =?us-ascii?Q?tz137ei+7+I8f1umj9WlmvMj5kD58sq9mW9QVBH/HbYJQRGPpY/ZbTDSbD/Y?= =?us-ascii?Q?oFDNJO39Bg4OudJlh7/q8arzbwOsezqKjnKvksQapIrot8anK6H1lAoyl2a5?= =?us-ascii?Q?EH5sysTOoaQxKEHiRl+2RW4831gIlW9Lki4SFe3eaNniSr4+a+PEXHGZy925?= =?us-ascii?Q?EzLHlNiG4o3TUieZQ6VuCrEq850M1D5d+aFIGcumoQiw1wlImIS/1+aPrbSa?= =?us-ascii?Q?uQ6e4VioJH+0N+c6TXZigFceHONUxAmzxJx6o73d/FWMZ/j8p+e86QWRlnL5?= =?us-ascii?Q?PYu7uWrhG/91H6022rLePO40NBYXnyKsT3h7vPsscjJDmdNFJ/50vr7thPp4?= =?us-ascii?Q?/UyhDY3VAXzU5j9bv4pQifSIs/Z85WYuG5ziB9/uESB/fBK190mHyMY9c9YT?= =?us-ascii?Q?J+KaB//tU8hkarNvBAr+6AS4W8WxpKn945VDaloErz8OjvVwXdW2Vu64Am6h?= =?us-ascii?Q?TyDC/wK7FWEx3auZQBkG6AsNot1u4QhZt5F72IL/LDvsH9XQOH2ufTZt8oH7?= =?us-ascii?Q?xFqF4Aap6k5K7W0q4jABqPlt+WpWFaHfst2P2C8bKT0S6dw+isWKiRod8wWh?= =?us-ascii?Q?immi1zl8kRM3ORZCdRbbIVumBBS8PsrfBC4SUGVwWgdr52I5wX+Xew439A7P?= =?us-ascii?Q?yL+KaP5a4v6zXAriT6zBln5QrX6OO6hczjaDHmEA/AruSMBri4aUqsmIB7J6?= =?us-ascii?Q?HQj7tiikVWTMYdzOzfFCSYIBeZ5fEyKrPEju+wUjs/HHtRQKmGwOIDFXCpJw?= =?us-ascii?Q?vVadvivnB95aj5G5O8A+Jm9DwvMU0nbW1CtlDqkUYm2ZQMbgwypaT1Vue1ff?= =?us-ascii?Q?Zu4N0gIeyPN6IRlZtIzyuCVfFQOf8OjPM/cf+laakver5vfDKFoUM8K+cLxp?= =?us-ascii?Q?Aqe1OwzMVdtJDXGJNbqEvjsp?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: e2c4f6ad-e0c8-4596-e368-08d90b3206a8 X-MS-Exchange-CrossTenant-AuthSource: DM5PR12MB1355.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2021 17:12:53.9626 (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: 417ZzitNH3h92PVMwWUA15SMkWOlY39xn0h89PAyKDqnVPDmrI4b6+6IyhoZCGnM5An2HQGyfc1gpsX/KhN92Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4218 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Define a new PPI GUID that is to be used as a signal of when it is safe to access the TPM MMIO range. This is needed so that, when SEV is active, the MMIO range can be mapped unencrypted before it is accessed. Cc: Laszlo Ersek Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Brijesh Singh Cc: Erdem Aktas Cc: James Bottomley Cc: Jiewen Yao Cc: Min Xu Cc: Marc-Andr=C3=A9 Lureau Cc: Stefan Berger Signed-off-by: Tom Lendacky --- OvmfPkg/OvmfPkg.dec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OvmfPkg/OvmfPkg.dec b/OvmfPkg/OvmfPkg.dec index 9629707020ba..6ae733f6e39f 100644 --- a/OvmfPkg/OvmfPkg.dec +++ b/OvmfPkg/OvmfPkg.dec @@ -128,6 +128,10 @@ [Ppis] # has been discovered and recorded gOvmfTpmDiscoveredPpiGuid =3D {0xb9a61ad0, 0x2802, 0x41f3, {= 0xb5, 0x13, 0x96, 0x51, 0xce, 0x6b, 0xd5, 0x75}} =20 + # This PPI signals that accessing the MMIO range of the TPM is possible = in + # the PEI phase, regardless of memory encryption + gOvmfTpmMmioAccessiblePpiGuid =3D {0x35c84ff2, 0x7bfe, 0x453d, {= 0x84, 0x5f, 0x68, 0x3a, 0x49, 0x2c, 0xf7, 0xb7}} + [Protocols] gVirtioDeviceProtocolGuid =3D {0xfa920010, 0x6785, 0x4941, {= 0xb6, 0xec, 0x49, 0x8c, 0x57, 0x9f, 0x16, 0x0a}} gXenBusProtocolGuid =3D {0x3d3ca290, 0xb9a5, 0x11e3, {= 0xb7, 0x5d, 0xb8, 0xac, 0x6f, 0x7d, 0x65, 0xe6}} --=20 2.31.0