From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0628.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe4a::628]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8F971803A1 for ; Thu, 23 Mar 2017 19:51:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=6/Pf3ukx4NjlCMxkzRPC6UgruJXLCH/6vlnFkjC1cCk=; b=3Hu+649w88k2VGvqeEbpzRaToGsU4UObF7ITZtSzmW9MLItReRo8wYhMrL0WbAhEsK+AbpLwI5GpiKyPSc0H52LUP4ck5hCs4OnKD+F5bI/vWOXLM9/ZBLheZaC7zkUMDC3YopSDA9eaDyDzg/kExbnILUMW95W9UFs74/JBZ6k= Authentication-Results: ml01.01.org; dkim=none (message not signed) header.d=none;ml01.01.org; dmarc=none action=none header.from=amd.com; Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by DM5PR12MB1243.namprd12.prod.outlook.com (10.168.237.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.977.11; Fri, 24 Mar 2017 02:51:40 +0000 From: Leo Duran To: CC: Leo Duran Date: Thu, 23 Mar 2017 21:51:26 -0500 Message-ID: <1490323887-9686-1-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SN1PR19CA0007.namprd19.prod.outlook.com (10.163.220.17) To DM5PR12MB1243.namprd12.prod.outlook.com (10.168.237.22) X-MS-Office365-Filtering-Correlation-Id: b3ff43d6-2f58-4300-a278-08d47260b292 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:DM5PR12MB1243; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1243; 3:C/oznVAGFAJlE5F6I5sL/zMap+hFXrW54z8lcfNMKdGqtME4rRLieUg3x7wWrDRjOBke/Xsj/aYB6xkYgBAVcyQJSKXsYUBFcrj02+9qP6vyECXQsHnM7uPE8MsHdcBP7zJGE+3JTjN8Oq2CAsbNSAN4dBldlzH7PUhDoGWhVUBgatsPYddvp2NZNMALKWybItvRplD+1NxVIOn0NECqybwBJlwy2xxag783oRCVuJOSvelvL+D30Bzm0DgZi5X4aL7Izi4BqsvirlURwuBaHTBef+NKj6sLGowW8a346n8=; 25:Pn1moDiJL24WlEf9sFxwMaqwW/G4dVlFMvVxD187lrElbmsKJ9PhyZgWtZiGeIx4ZxtA3Jb5+nepIey9fw7LIo/8xZ6IziPArvr11L7gk7ddaRGenANloB6NOgviKpIxK6JLjenqcX7sHklPNXwyGjuHg/XMdsy2bEJ9mLKgLgye92cshevLwkpGJ09KEKth6TpAnlUWr4xtaz3JXduIm/sWdrA9QfzArl02Iv9Uk49ms2uiHaVR90IYIuz7swmpA7FqVeXPZWl0jXKY3FpyKxGbkJlTC/yz2rQhJUbtzB++HNqbyzb+pTQFWN94VApdomr/oyid/eUDUT4TIH1F7dFhgjTgeFHI0fphMryCuyQ49FxGnfQl7y+Eezzv0T5axTh+qpZeZFnz0CIGiUn0NLcX9nqspDSQw4bpQfQb79URrnGV813R+biGZWThlWIVbKAL9FlEzCK5ZSZJ62pwzA== X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1243; 31:ZMBl9LNLmXNbcjYkbhVEjmwZtt75FD4RNOHqry5B9zx2IpxGy20Wn8oAfn3RcAs/YBdmSWLHTunKkjcDz5Dq4pct5I1y2n/ckKCiy6yhgAu8Q6/LIGLVNuLzUcsd1vA7Ajlm8vcxaGUVMrjvQuhK4zLjvL7agrosKVREVIpAOMa6GEy3fBbGHiwoZMNxCnluxQjrhDKKlkolfqJzlsKMKQJxfRBk2CmFU+tdWL74MTM=; 20:0xp9axb+84EaTE27/bmgyn1+wO2nqUvqPmvcUjOjGIVw6JoXSnd7IapH3VVdncLZ/RQ2pjNEpDV+PMK12O2daUUAMQfB35mMQI3PzcJHD5KFKUCio0aYWcsZuyuw+ZcT8EIa6aCiR3ZpI0NBjrx1Dc238vHRMcL/aeJK/8+gOEERdnUMQ+1oMYpoH3osJJzaPHP5yxforJ/+fk65HB0uy1mP2zpp9RER+IjrLYCvg7dU7Ce63mQ770V0PIz4YnsNPpCXB+1iyHa/mhv/b3fI0LolW0Yy8ZRb1NW/8Ef31V73Sdopx/TafI4T4JS7EsR7SSEFhqJaLiP2oxOPAZnhn5Ya7ixE8KjKzJBdFjo50aCWU4Z6avRVMynLxf/0HIYxC5uy6k4L5WfHDLSck1GAu9KnyZoqqn1h600w9UveJCwz7BFzaMZTS8ZmZTvcX38oo0oq4gcEcGnS7oXhrZHMnzGWZGa6RKmIKuCfGE9pi1V74QyL5aXbma9ZPlk0cwOy X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123564025)(20161123562025)(20161123558025)(20161123555025)(6072148); SRVR:DM5PR12MB1243; BCL:0; PCL:0; RULEID:; SRVR:DM5PR12MB1243; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1243; 4:/5urPsNN3E4wS59dzjqggThjnakqQNmPfRQeL5guFSB34IAQh+r9YhAGzVpzkKFE5o84lL1E1Gk44VjkCgmBj7pANZXY7xwZObpRiZcxayBeoUIOIodGEelrpy5mgSUHO/dabkT6Jvj49YUus5gaROKfQYHrgJJPrbbpCkg+QY8shX6bj02UPA6IEraMUjaAzJdLvrq0j8nUWgE0fHoXEr5UiZD1g2A7K378LWRD8AGAmb8cHWkEt9togPRh4pK8uTXZ61CLh6xbco8EIHfbWDiygojv1YQiSS/VWzpdRhQcEEgZmN/FXU5hfJj2xEsjQ99ckGJ3K97hLPE2FQ4NLv5h9jFEiGq6udOWgVrSJixFyz80OsDo44jLt1WekD+nrMMBtmVJIZEJjHNF9AiwKAFoaj3pqthj4Zr97+1ekaqW2JUwVo/3+aHNCTdTRKdy/+IjRE3mFENK/QGF+bR8pz7cAWDfTLjFlvzNsEbfSgHLlebSufAJkVqlmubt5zWSUz2EyUdNw4pWpRrkgJtd18RvX7uyKA/2+mcYMWt7Wh/hy3AmQbyprJEvHa7k3uZkmTrLqXjgdMSemd0ZDpvTUft/SwuT3KJilNs1aPuL7v22kFDF/T1ifZ6rehY/DrUF X-Forefront-PRVS: 0256C18696 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39840400002)(39860400002)(39450400003)(39410400002)(189998001)(5003940100001)(81166006)(2906002)(53416004)(50466002)(305945005)(86362001)(6916009)(38730400002)(110136004)(8676002)(6666003)(36756003)(4326008)(42186005)(6486002)(47776003)(33646002)(6116002)(25786009)(2351001)(3846002)(7736002)(50986999)(50226002)(48376002)(53936002)(5660300001)(66066001)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1243; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR12MB1243; 23:5KFc4e4JwI04f8JXb+ODlDNZm2glLCS6gaBHbTBci?= =?us-ascii?Q?8MraxYJV1WcNBI7+yxf7MdqOe7ge5XgTSlQr1JjIpR425ZXeZz93RIb4m0jK?= =?us-ascii?Q?/mjPucsljs4gz+AgT4gM75t8jDcMDQOioPn8uU/JOjyoZfpMpb6FdT+UMTPu?= =?us-ascii?Q?JiDqJWx2IghhO4DGC7cMajq+Ugu62L7zBKq9yGJkfqFk6LW4hLQUY5Jck+69?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jgjW0bD0nvRmHC332l4wjIzTRqKB6GLO16NTYIDKSmfiLtlNNOWzoRshLQ5hlUGQiSKW5vUsssuyDY9FPDG7QAZRVJd8OMa58HNiCq12YsQ8Rkr+FV7J3hsccF+2ehodIBtK7UOVoLT9meLtaa4LG0vvYcPqF/YFFPp7I1HE+jCJuuBqQ3rnCQZAaoCtR0yg1GBos15nTAVcSv6cVm1mjL8W4ZUOOj6ru80IpojCtHC+ X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2017 02:51:40.2872 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1243 Subject: [PATCH] MdeModulePkg/Core/Dxe: Clear SEV mask on MMIO regions X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Mar 2017 02:51:41 -0000 Content-Type: text/plain This patch intercepts MMIO configuration in the GCD module to ensure those regions are unmasked. Thsi patch follows the series: [PATCH v4 0/6] Add PCD PcdPteMemoryEncryptionAddressOrMask which has already being pushed upstream. Leo Duran (1): MdeModulePkg/Core/Dxe: Clear SEV mask on MMIO regions MdeModulePkg/Core/Dxe/DxeMain.inf | 11 ++ MdeModulePkg/Core/Dxe/Gcd/Gcd.c | 28 ++++++ MdeModulePkg/Core/Dxe/Gcd/GcdHelper.h | 151 ++++++++++++++++++++++++++++ MdeModulePkg/Core/Dxe/Gcd/GcdHelperCommon.c | 120 ++++++++++++++++++++++ MdeModulePkg/Core/Dxe/Gcd/Ia32/GcdHelper.c | 115 +++++++++++++++++++++ MdeModulePkg/Core/Dxe/Gcd/X64/GcdHelper.c | 129 ++++++++++++++++++++++++ 6 files changed, 554 insertions(+) create mode 100644 MdeModulePkg/Core/Dxe/Gcd/GcdHelper.h create mode 100644 MdeModulePkg/Core/Dxe/Gcd/GcdHelperCommon.c create mode 100644 MdeModulePkg/Core/Dxe/Gcd/Ia32/GcdHelper.c create mode 100644 MdeModulePkg/Core/Dxe/Gcd/X64/GcdHelper.c -- 2.7.4