From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=helo; client-ip=104.47.33.63; helo=nam01-bn3-obe.outbound.protection.outlook.com; envelope-from=brijesh.singh@amd.com; receiver=edk2-devel@lists.01.org Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0063.outbound.protection.outlook.com [104.47.33.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6248E202E5486 for ; Thu, 5 Jul 2018 12:12:36 -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:X-MS-Exchange-SenderADCheck; bh=JVCyKDSwMZEDbxCZwqLEQtmdkmPrdHqNr+FOcktMxto=; b=cqjH8eM8eSMlFYfXYf6nJxXKu1JvkmpfqC9PcAW43FatHhhM32GsiEPfYv0vFPtJAWfUfXZUIyXshpC4vJWmFJCb76qViWSMFFJ3rXKFAEc0efVfOuNDLryX/ZeBKBGseGTBFM1laBV6EcFXEKXX4ly/e4sfZo1dZqnV5RRlpRk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Received: from sbrijesh-desktop.amd.com (165.204.77.1) by SN6PR12MB2685.namprd12.prod.outlook.com (2603:10b6:805:6f::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.20; Thu, 5 Jul 2018 19:12:34 +0000 From: Brijesh Singh To: edk2-devel@lists.01.org Cc: Lendacky Thomas , Brijesh Singh , Ard Biesheuvel , Anthony Perard , Julien Grall , Justen Jordan L , Laszlo Ersek Date: Thu, 5 Jul 2018 14:12:22 -0500 Message-Id: <1530817945-8030-1-git-send-email-brijesh.singh@amd.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BN6PR1201CA0013.namprd12.prod.outlook.com (2603:10b6:405:4c::23) To SN6PR12MB2685.namprd12.prod.outlook.com (2603:10b6:805:6f::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 65888a45-27d1-48f8-8642-08d5e2ab43e2 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:SN6PR12MB2685; X-Microsoft-Exchange-Diagnostics: 1; SN6PR12MB2685; 3:+8LYDHDSrGIWYzsoVYNQ4/tE1ayc6lGLpnAmt/6Kx0IO1Cepklg6VQRzrS0vXwV7pw0Igaen5wPCfOaK312SkCtTE3xTDr+Hr4e5sKwWt8CTKGYnIDI40q/Tv8rJuktPBuKYTyI5NJSD4Zl90M2bMV5NN7rHiFObWE4MbvuEa9ZYEf6+dPltX9aCTGbPjSyapt1sPMIu4k4WfJTghk4X/CRN8kuUeJ4LRoffe60OSFjCRmysEKXhgFPqgPgN0pJQ; 25:6NNgL3AH7gFOF2qrQ/nonFrtBhCy/JwgKq3KGKAwOL9VVyrXG4tfOhLA5I/lMrKU7zIT+TDvoGScQns0upOr6cYq4OI4icV1MQxFye23aEq2rvkiRFGbCEnxeg2MlsmB/onJwqhGNy3ypt2wUqi6iR2H0RH9qgfq9MW330N7PaJWRAqFbZcGnfBNu1M9cBuz2rbQOG+MfjuW/ngqesqvstW7B6/hLehZc/6fiBK/t/GStbas5UIjZMdrU6opiDFOLNnyZlCztvUEFQfTzs630nR1r4EHn1y7pvcbB1Cc5wYV7P6uTrtpgX59rQwFJA5zBvgomfv+SyNdEM6bARro9g==; 31:myrQ3cfUMYb0nvPjimXKOsBj4t7eYSmwE8AaRu5/NY90v4p8/+fXnfAhL4fgz5HrZg1WZaKpIcqHb3XHXZj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KUdGE2hAh+SLbELyR6XB1/PELeX23LhnBIywYphCG+CwrxS4mXt9cS7NDcmg40ctqxnec+t2nI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(166708455590820)(767451399110)(70601490899591)(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:SN6PR12MB2685; BCL:0; PCL:0; RULEID:; SRVR:SN6PR12MB2685; X-Forefront-PRVS: 0724FCD4CD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(376002)(396003)(136003)(346002)(366004)(189003)(199004)(106356001)(105586002)(4326008)(2351001)(54906003)(50226002)(25786009)(186003)(53936002)(51416003)(52116002)(36756003)(7696005)(16526019)(66066001)(47776003)(2361001)(5660300001)(6916009)(68736007)(316002)(16586007)(14444005)(6666003)(478600001)(6306002)(53416004)(8676002)(86362001)(6486002)(50466002)(2906002)(44832011)(81156014)(3846002)(386003)(2616005)(476003)(966005)(956004)(81166006)(8936002)(48376002)(97736004)(486006)(305945005)(6116002)(26005)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR12MB2685; H:sbrijesh-desktop.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN6PR12MB2685; 23:dm7Cpe/TmlYv4aW8mlJONSijukte8xST005rzxuQ+?= =?us-ascii?Q?MAHLi95sxCcCnE7p9PhrK013ZZIvK/NPG2qClSRGBF4/lR3OpgHG4Efwo0N9?= =?us-ascii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cFCkyJbtjG7S1bqEZp0aahtsJbRLHOKfDl0fb2kdhdZB26S4ceFPQOyIl4CEVSEBMS6rCfbhXyROO4fUPwSLi201pWzJrrVh/1lZuzha5mCMbu05dYihWGdPPEdfPte02EOqBHhPJDFgcr7SWOuyDg7ueErqYH3j4h50nTYwwzuWaaG6Gd/g97Lg==; 5:DjO8E6lDYNSlfSRd/oxyoxfkqXAO560Dqqp04Tj69arArxENTpYOseuHFW36zUQWwboPaZT5263ETA2Gj1ACnLIZHMiaIChugogzn2KhWfFBunCgWbds0eWecK4SM5f378S5w1UO6lWGbe1dT21YWGaGZcr/JDkAKpQCmva8S7U=; 24:n4GkNn/i9RdqHItEyslfHjZVJH/uQgoUGWfg4DbFomVyXkutm1Br3hid/VDSvR3488uNAcqJP8TwdCBVg/46wYTvZXng1ya7OsJHL5tJEtM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN6PR12MB2685; 7:zDmT4vtMFS8Qv1pBLc/whgpgNzrYpZFDvlRksskHaHeOCjt/uW6f7PiVGURj2AcUaNz+yri+TlsDicwI2uqRgjT6sDm2ITHfPeR6VlboMmu0PkroVpjdsIGHvzzr5Vz2G5g1Tk4TjymAN5602DZY2JTRevE6uTtiHPjpya/AI+JPTJjrVpq01vI3mFiVMcoxI9/rrpguz4YsGID9+dmHBvdvbzJ7cQFf1HNrQoGslP4MkSIJDzGS2NIbs+ARaROk; 20:4ty3ElaFHDgh40xpDzZjRa2rqy3eHyOkl+nxQ66f1S5L3r+HmfZuzN49SlEsoQAb3DiEAS3PEM0HuwvrKEJsFsNoYBMDZC9HDSRkichtMLaMH1uBgYDyKUO7Q3z3C4qC1E7xvqn2/pdzSBA1W244az8jptlLHkhdBLJIFWKIB7idoRnxpyFdHlMp/GfRz23mPdo0NvpWV+1j01xvehNcB+YMWpV/CMA7kLxNXOEtnnskTPfLvD+itLI0+aerOHSr X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2018 19:12:34.1742 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 65888a45-27d1-48f8-8642-08d5e2ab43e2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR12MB2685 Subject: [PATCH v3 0/3] OvmfPkg: mark flash memory range as MMIO X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2018 19:12:37 -0000 Content-Type: text/plain The Qemu flash range is marked as 'system ram' in EFI runtime memmap but it is actually an IO address. The patch series updates the EFI runtime memmap to add this range as Memory Mapped IO address. Changes since v2: - added cover letter and extend CC list to add all OvmfPkg maintainers/reviewers. Changes since v1: - split the OvmfPkg single patch into three patches based on Laszlo's feedback. a) mark memory as MMIO for non SEV case b) do not adding EFI runtime mapping for SMM build c) clear C-bit when SEV is active for non SMM builds only Cc: Ard Biesheuvel Cc: Anthony Perard Cc: Julien Grall Cc: Justen Jordan L Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Brijesh Singh Complete tree is available: url: https://github.com/codomania/edk2.git branch: qemu-flash-mmio Brijesh Singh (3): OvmfPkg/QemuFlashFvbServicesRuntimeDxe: mark Flash memory range as MMIO OvmfPkg/QemuFlashFvbServicesRuntimeDxe: Do not expose MMIO in SMM build OvmfPkg/QemuFlashFvbServicesRuntimeDxe: Restore C-bit when SEV is active .../FvbServicesRuntimeDxe.inf | 1 + .../FwBlockService.c | 38 +----------- .../FwBlockService.h | 7 +++ .../FwBlockServiceDxe.c | 68 ++++++++++++++++++++++ .../FwBlockServiceSmm.c | 13 +++++ 5 files changed, 90 insertions(+), 37 deletions(-) -- 2.7.4