From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0063.outbound.protection.outlook.com [104.47.32.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 F3D6721AEB0DB for ; Thu, 3 Aug 2017 16:09:13 -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=cR5EpofSQ30PoJpvICUZi+fxPI0rWuUO5JlmqVpvoBA=; b=EJQuIn6VoGoZoSbQqS/m4p7DcM4yzvRhdn6DSHBbuZVs1VM14h0G1f8e9EVAKhsM791/x5S1lr8uax70JRFc+WhcuxldXzry2ZNuMg0/KgoR95geJpTpv4FaMdwPOT0OPgAmlwzj0we/WXLLTV/n4MNoOuRr/qIkWSQr5u34vkY= Received: from brijesh-build-machine.amd.com (165.204.77.1) by BY2PR12MB0148.namprd12.prod.outlook.com (10.162.82.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1304.22; Thu, 3 Aug 2017 23:11:23 +0000 From: Brijesh Singh To: edk2-devel@lists.01.org Cc: Tom Lendacky , Brijesh Singh Date: Thu, 3 Aug 2017 19:11:11 -0400 Message-Id: <1501801872-22626-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: BN6PR13CA0048.namprd13.prod.outlook.com (10.171.172.34) To BY2PR12MB0148.namprd12.prod.outlook.com (10.162.82.21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e6cc63df-964f-4788-5464-08d4dac4f5d6 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(48565401081)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BY2PR12MB0148; X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0148; 3:srcGFDblBMofBRyUt9PTeEbpF9HmwXNDB11FbLcCKyTmGkuh4z90iUlTLl/mbnI8ccWw4KAfFc+c6YAThLqGry5aR9Sl7TjywpzPOrRRJud8mCCr9ITE0vzqLxaAeJocTphB+CYxDWxGbtCFV70TjaUAZScJfsr0FPpQ9nPoC2B8Eb9irApZkJRQf6MR8rl3Wx6bIflzWAuphw3aan1wL1EE0X+W290Kv7iulmBqPQtgKwtTzbG2ALnt7qUUEYlO; 25:y+mu6XlnHzVSS8SGueUJoAvqe/NcxwBI18sAtfIt30CgP6i53AUmqy86/GxAuP/6lrGUkwvO6rQs210vIB3gcposaW9WlOMDP4fi2jglnaW7wdU9o0OcMsENxMZy3F65b4XdknK8lfGkJbW+70h6VxQKcLPPk2VSepGyBhgFC+aTtxZ5btdFmaU+5Wmn7q3lxzLPFQAJDag55fLHx7AjqXelc+Fo/lX/AooOYo2qA9ZoVSQ4j4IpI+YGs9OT+ioV5kCANkbtJPuVxIfn3PYYaeZZF/CKUQb15c9U9fKwseGTlINIMFWwEDXjempN5UGLgHOR5ZqsNauWqxtFJQ/aYw==; 31:yqAWuYBHB1RMJR1PzO5X2kEgIFbvB4BBcvcA4OBwOhTcIN5caJfQHEXJJe8a8qVIGm6fAevhTObaTc+Q1CFVacZ4HEqFSSBSwGct7uc1LsLwhph7+AlHpXwYkrkfVSgqtllLozYYNlhqKU1bjLnyQMshZb+r3jyvRXg59khu//hxUj4gOLGxuJ+j4GPhULOMv3VimqEL6La42Xiksf0wwj8Gtvu6ZOsn27Apur+fyjM= X-MS-TrafficTypeDiagnostic: BY2PR12MB0148: X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0148; 20:Jp250r3CaWv4uEY+giqtmZi27dCpW3+3l9HnF62durk4IDLYvPFaUMYnGSugchkXnPttGR+qkAFc0jNgaAq7eGCwpR+DyTrXEwu5eMCOGWvTnbyN4LC9fwrwncgohU+wZ4ZEQ6PWOonsSyrxoXvEvHDXg5Qb00z/UGO8xpcfhaE65sgB2gDwdvKIUAnvFl2T/UTscTOO2ohBmyYFxcarFbcHBcsgddnCz0bLMvNKZcOMh2NzxH4qndKum7PukHkHa2jnv+/7yjTRtQqvj/YaxlmbVaQKW94JAcd7/mqxkJYLbWFCJjDrEuTTgRsP7xjAyNQVg6rFp6WX/t2QSrHXpof3cy0OMkFgtseA2bgsLpHWXS5Be7+WkjLt3LyBedeFKnq7xXOWrpcMROR+tRF13/K3qoU7DJkjgjsJf97JihP+HkcwRXGQRqReH52iAsYT1r7sCMAPDtpB2eH9HAaDW+R0im2ipFZUFSXvevYm1KFGWDSsImlgjdAms4SmKv5T; 4:2tRY1HNCJ78iAATyxs6eV5sgQ9DN7YYYw0X6YeWwzmc9oQhlU28WAZrve/GB8egj4b7jGqYgCQW+iZazYD8JsQdWBLR5Nsatu37qYGi2zHX/lw+r6LB+cHTbN86bPixExxg2s98GPsfklyGGRlLT2j9UsSdvy6Ocjc4OndLnalVaeeVkZ9ZxZfWZtunGWkNiPS6DXLKuRQR/fQW/V1xcmQOltLzUYXdUaIWcae5v9zsalQT9G5uBxyaNES/T8ZKUnHJ3pU5olGW8oSTFoZDoamw9UzEEepDHHJpIplQ3hAfGWNOotK/KIA8zM+4Hud0Op1jwggbZpDVDq5ie6HpNFw== X-Exchange-Antispam-Report-Test: UriScan:(166708455590820)(162533806227266); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123558100)(20161123560025)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR12MB0148; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR12MB0148; X-Forefront-PRVS: 03883BD916 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6009001)(39400400002)(39850400002)(39840400002)(39450400003)(39410400002)(189002)(199003)(105586002)(68736007)(305945005)(86362001)(53936002)(6916009)(25786009)(7736002)(42186005)(53416004)(106356001)(36756003)(4326008)(5003940100001)(6666003)(33646002)(66066001)(2906002)(47776003)(54906002)(6306002)(6116002)(3846002)(966005)(2351001)(2361001)(189998001)(110136004)(81166006)(81156014)(38730400002)(478600001)(50226002)(8676002)(6486002)(97736004)(101416001)(50466002)(48376002)(7350300001)(50986999)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR12MB0148; H:brijesh-build-machine.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR12MB0148; 23:aHjCm53dvhsR8PLGORTigWrrmd4V8RGtmMeFUp8g/?= =?us-ascii?Q?Y3V9KtxauQ8OPspNxDSlYSdzznhk1OCIPDacd4oPQz5ly60J0ZPwUdJxeOMo?= =?us-ascii?Q?TanBfL5X46WskdyUEoqf6E9ByadWK9FfM5BhUX96vFQ9snX3qgOI1qHQaIC4?= =?us-ascii?Q?+uC9hhEAx37NVHFEF9k66K2ZphkQWYT1VfJtpQV2j3Jsm/KuCCE2y6Ag9ANs?= =?us-ascii?Q?0W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vi32GG2yj4gazzZLe/98KsNlMDuOnfDHQ2S+klwourNFReCVjzubLWBx3ORqho7E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0148; 20:H7y27dY3dC+V/mDPHz4xBn9VTF91mhi+iFVUd5w8H8I0rlN6BGuOJBFfXQ9INVWPGrjCf0RLip8OWTrG92mYB7OW8wkMH+W+xKBH3lInibxBgbBRsGQLtoVYHm4M+Fi2pGzNJUuGv/lI5X09y4IoHa1+CWjiUqEYlTQKOj0EsVpjDQdgY9rQpGqq2mwaNIexhVrA5vyWRkWX3oXIcSDsgBWKD9UaRH9FUI1IjtdEgIB55X2zOUREEDh+RUaQbFTr X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2017 23:11:23.3210 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR12MB0148 Subject: [PATCH v3 0/1] Use BusMasterCommonBuffer to map FW_CFG_DMA_ACCESS 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: Thu, 03 Aug 2017 23:09:14 -0000 Content-Type: text/plain The patch applies on top of Laszlo's IoMmuDxe cleanup series [1]. Commit is also available at https://github.com/codomania/edk2/tree/qemufwcfg-sev [1] https://lists.01.org/pipermail/edk2-devel/2017-August/012808.html Changes since v2: * Changes to address v2 feedbacks. Changes since v1: * Drop Patch 1 through 3, they are covered by Laszlo's cleanup series * Rebase to the latest Brijesh Singh (1): OvmfPkg/QemuFwCfgLib: Use BusMasterCommonBuffer to map FW_CFG_DMA_ACCESS OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibInternal.h | 42 +-- OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxe.c | 330 ++++++++++++++++---- OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c | 130 -------- OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPei.c | 99 +++--- OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSec.c | 58 +--- 5 files changed, 367 insertions(+), 292 deletions(-) -- 2.7.4