From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on062a.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe45::62a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 3C38121A0483A for ; Wed, 12 Apr 2017 12:00:43 -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=CWMKqWv5ZAsd6wMIdRiZNuzhJBYvA0efvmNN4nzNX+4=; b=IgaD+rlQndKnk4qyn+HjB4B6GI8kjMLEZFHPjckKflFbCRt+n6XPm1hkXnCcVx8s+NX4be4PIkjG7m3wFmgqRg2x2BBHrIfNySgsPpFLMVCDH1+KoZE24qrr1VO8uSrSafj2AKQyL2hRotTMdfkNcAoTDcBRl42HG633e5OBtbI= 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 BN6PR12MB1234.namprd12.prod.outlook.com (10.168.227.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Wed, 12 Apr 2017 19:00:41 +0000 From: Leo Duran To: CC: Leo Duran Date: Wed, 12 Apr 2017 14:00:30 -0500 Message-ID: <1492023631-16252-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: CY4PR13CA0011.namprd13.prod.outlook.com (10.168.161.149) To BN6PR12MB1234.namprd12.prod.outlook.com (10.168.227.20) X-MS-Office365-Filtering-Correlation-Id: cf63c620-2997-49b0-c769-08d481d6371d X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:BN6PR12MB1234; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1234; 3:9hztkxjfX3KIbcD1uCBmY2xYxEiYRRe77BJIeiWvWiSWEVx4GgaMjKTIFQ0z4qwWLhLmff8S10zopr6I4WrBRV2yR4FOFGDm/sIJwD+vDiIUDWuNArdg2n1mf5Kgcif2LHl45C95QJkQ7KNY2qEVuGRfVCqtdwsrDXgj8pHsfjhuLmz9JdSrDd4AIGHpEAUXztayTYoNOjhJ1YcvwsXuWOQMn9Cs+AuVEltvhHt7vZKv0KeXfDcRNiLTeSLdkbeEfgEDgWU4jcJI4axvzMSkOhgg+rLhgplFq2V/ofeCwzBBIeiaqEegeyZyuQeRWwgC7IG8lPN7tlxNZcZMbh33Whe9BlbPx5QkYWF6UfgAZdo=; 25:hcJp4SZzifHQZjii7OckiGV+Xxhf9hHFQg7iIILdoag9w+q59tn3g1Rcomh6y3DSa5qlzgWIPkOysmQP2kWMbFouHOs9t2IUYuqTKYXsEX411niA/jF23q8PWxuXBOP2aUmlrmBwGd+A/aegZr4xIssxqkpWOJA7O2511D+rO5S/VRKbVXg0t/oeNIrZBFPRr02L2U6ugVF1JplrALM6n2fPjjwk0ocL/VePDSenXTNICIndordTpAO4/PsZJWVA8WDVggHVsWrVLEOLZfOZfiCFTD8StTMhQo/1IMUKCQt54RdC1w+BjJOn+k1YbbFCnD+vi2an/5yAbm04/Ug+P6IhQWfhFy0xH0iTK29/djG6DOxYrc2lBTrSrNvsOUnx0eyIKwg14vPytrQ03GMZwtCPXcA8uNqTALlvg5WFYP33zNwlcC1P+wwJVkwmgNCFkJoscfMn/u2KaZvxKP/kFw== X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1234; 31:U5Ec28gjxNG18bFOWjEkfNS5jtEEJZys9UWQnhDXcfP6O+0zmJTGieEhmg+WSXDEYDOpKlXX7qg+hFIAWaS6gQjQ+Dymm2VzPqauH1iVGbjXHK3vA03UMKMBhEwTuUXj/zDu7KUTdF35kplXHwXLpcc7C2Gs4lUuA+V8Mkbc3/+AS5osEY7RujooDVLw67O6NODTv/P12b4D6HDGD1RcfKfz5yVPm7cZmGvxG9rEz/I=; 20:KnjR8KA4Qhg0l3K2o5xM2c27WRqGlwJsAzNfH4OVy4l9eR08p+Y1iC39EYeaTPZtAuxEqRn4NzNQqM0RkcIp9gYRPuA6ktUP8KpRBWcAveivSdDkeJ8JBL+hdWPircoNBKAnTXA/Mj1cFnyRM+7TbRC3peGxdiNHq4tL3JmYWdja/xIBWlpuTrbyP7cDLyvSYDH4YBO4bhm4+LmvX3bEE+tBDhFGyU3PZD8T/FI7yT+S6VVtrdzwx0XCYLXTjJOHnrLO14W059VembRa1Zs7tdfY4ezavbw2LUXxaOsq4rEz0jIZf1Lwk9ZVOQU5XDt/PdOleT/0Pw+p0mLjUyWVn3cVOH51G+m13i+MMYRYHWvYQUuz2bDSx7cS+r7fwmRwSsv2h/+N1JOVxYuBegGPBBELMuPYJP/Rl2PboaqQTpuzDL0/VPIsc5pEkxeqodaw2lN1EmTdnEe7b4X/8kgfGjYcTdYHv0hXlB7BMJ2MBKz/QV0XSgpLXD2ELAZHgCa7 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:BN6PR12MB1234; BCL:0; PCL:0; RULEID:; SRVR:BN6PR12MB1234; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1234; 4:dH9/NENbQ3V5P8O4jtf9nViilSC/xkoytaW+Yv6E8BRWbEzBIHNUCo/KlIclNY5mLC2FoOEH2woF3rQMRX8hcNtuPyEt6FGErqiZctFlpTidxbdi4vFFbCuORcddWr1ZM1s+ushk/7YwUfNknE1vH772VercQG/ZH8jEzWZlfovXBynbo8Y3ZQjDzJhM0C7LuE+nRV49W2aD8wCP2S4pQtOZ2N2hNV+peNZnqaeoSVesnV1P9Fu7wDGTEB6bqAfUlt8wh8Uz/6sZ+wA7kZU8jl+5XyvKquHHqNxggLRS6AcO6C5lkHuV8bW/tEW/buSQ8GTSMW47jzK44z6oTHxqOTNcj8haIO0MC0KjFJBOPqg+6w3d6yIjcyyum4ydmfJ1Ei+U0Pm7I9ngprpzR1h7Sq9Y253xbQ32Y/0jKChn0xzJLbDQayMOpvt8L6JHBbsWONKFAiStaX7TU759GhcEg0t553h+OK83KgFk/Bk8K/VCE8qnAMC4oWnRLIny9VOhZ0h3AQjzP13SGogGCzJ67uE7KtfMrN0i2osEMOR6UeiUSQfYp2BphglFcqOk1By6FF5f2EHzQNFPoqrMeAasjy0DhApVcB1kApSHy2OkHW8E14Oe1AFuVX0JwL9Rgi6E49WYukQrHPlExQdJrBxu8Yjg/h3SQ98blmKHrWSndXYqfgUA7DHRPTnN8L6kyQdScXgkp1v5lYmilcn8rQXuifXXbDBX7yLMsFpmt7E3FcE= X-Forefront-PRVS: 027578BB13 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39450400003)(39840400002)(39400400002)(39850400002)(39860400002)(39410400002)(36756003)(50466002)(189998001)(2906002)(6916009)(305945005)(6666003)(5003940100001)(6486002)(86362001)(48376002)(53936002)(50986999)(66066001)(25786009)(50226002)(4326008)(6116002)(3846002)(8676002)(81166006)(33646002)(2351001)(47776003)(38730400002)(42186005)(110136004)(53416004)(5660300001)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR12MB1234; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR12MB1234; 23:gEYFenUzCPzBHrJr2WdD4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ieNMW8NDqs3ZgTH4xpQ2vlP0O7tLBMd2eDKDTElAFNFT7?= =?us-ascii?Q?m0uUwTVbJJsiVOicZghKropb4Dy7NDCbcPiKdrRCxVVAQyS/jcK+14+DV5Ll?= =?us-ascii?Q?Yc=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1234; 6:BtkXDJSiCxByeCMlIT1hwGZFMfACfdTxTnD5rT6Aq459N0+oQkL7mKUhIdP1Ek+9P0JrfjhgheJcZeeW8g7X+SmNj/FuZRA1N1YPD9+QyorD3+QAcW7IkLDJFtSGONk8msTUxk73iFzEFjmRyDMoqAs1BiyRA6IGYW3Kq4R+lUE5DyvotLhW9jGU0cMw62tTOTagDX/5CyZh8e3VHsLF/pkqS9n95OHYVGYkU5hC4zkGUYOPxqgAbR2k5bp1t3wfikMJRGls/YNPw9aQKhuH1YeIcoSaMcLOBvCqC172rwR8lYTO/KJ2dAR1cn3V8WOLj96Z4QvuKeINRHUowcKH6n5gVyfFLSwTe03cHlxiAc4KIIJ++Owf1L172ETy7TUr7c5a16DZ9i4tOv294nLAiPW3/NQgaai8okgfrVERyyGKvqfH/+kA24+OL+oMvw80yqKVVrbMFTv4lodCUkNEhZN3OSdDLofpgamPanrl9fA=; 5:QlZ+na9l1LFAJt3dVNepBAB9kAEMJHFyhqmH9Op0UFb0ZIQWwTzUol+NGREgAsiNFDFJo1oOvrDKYhvD9i+rTkBgj1vwuTaCNMAw6njQPoaPz/6u7jV2Z8h+TaRkGvh7ucjwOe2D5Luthxc8BmBj9w==; 24:zR0zkh+BafG7AN3xfLqDmjznuazQNQizp9Nz9aEkq0EYXofdvU5xZ06WvXFthb8aQtGUhTVVkrkcUGGXHeSDKytESYoS1KqxgSgFLzD9QpA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1234; 7:p3zOuI6s26kup01PGLcbLI2sBB9GY6xUc6Bcu1/DN5/MprlhayhoiVGgh6a93S4AcgZdZw0BNQKtmfAW4st2syPIuuRkWSbP/3WDG2ZK6EEKUSL0JTNFZ7XzH1dtjRO45VxDuc4InGEGIY1bAKHKkIJ1xQzmQa2evCFfFaHz+aflp0HbRRcp3nYqaIKhAkLDmtEaPF0fGuvtDwSAfGbjntOoU+Bns/PefW1CUl3FCqDWCqSyUDvkSXiC1cBuYfLDGJfZmi/etpFCgHj28e9Xy6eDIXTagxABiAnXoEOYJVNGtGlLEYcLU2vPzcojp/QlcVs84kEhM3xZwxxACss58A==; 20:1OXrApOA+Q9V8La92tc4To0V0GCN6QCI9DciqDCdWasUlL/tw1w11KcavLKJmMKHRyCrhIqXwZcsJK5eYTIGojZpmgfxHC3Be28jMbNCufn5vvtBNjZWV6zz3HGZyf3QVpZpAFdt4OUJTRg0z9tJ9Gc+BnrbXmSH8gqkvaoNBj5c7o4RgEI1Kj0NBiOuGIp/B5wI0tAGgYrAkVslHu7bfyitlaxnRPiJXkSjVBn8VqFj2Uusyxn+3uSSS+ZOZPBu X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2017 19:00:41.0612 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1234 Subject: [PATCH] OvmfPkg/GcdNotifyDxe: Install EFI_GCD_MEMORY_SPACE_NOTIFY_PROTOCOL 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: Wed, 12 Apr 2017 19:00:43 -0000 Content-Type: text/plain On entry, GcdNotifyDxe scans the GCD MemmorySpace map and produces this protocol to get notifications from GCD on MemorySpace Add/Remove operations. This patch illustrates how OvmfPkg could take actions on GCD notifications. For example: updating the SEV mask on page-table entries for MMIO ranges. This patch follows [PATCH] MdeModulePkg: Add EFI_GCD_MEMORY_SPACE_NOTIFY_PROTOCOL. Leo Duran (1): OvmfPkg/GcdNotifyDxe: Install EFI_GCD_MEMORY_SPACE_NOTIFY_PROTOCOL OvmfPkg/GcdNotifyDxe/GcdNotifyDxe.c | 148 ++++++++++++++++++++++++++++++++++ OvmfPkg/GcdNotifyDxe/GcdNotifyDxe.inf | 44 ++++++++++ OvmfPkg/OvmfPkgIa32X64.dsc | 2 + OvmfPkg/OvmfPkgIa32X64.fdf | 3 + 4 files changed, 197 insertions(+) create mode 100644 OvmfPkg/GcdNotifyDxe/GcdNotifyDxe.c create mode 100644 OvmfPkg/GcdNotifyDxe/GcdNotifyDxe.inf -- 2.7.4