From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0068.outbound.protection.outlook.com [104.47.32.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BD5F221BBC418 for ; Thu, 22 Jun 2017 13:37:09 -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=3EWDX79gb5IJmdOF6tYXVLoeyTjKgj6TCkLO65cqzfM=; b=4E6WaMKdi/L6gM8tUKQY3kwje6RP6RLNznIVNS4t2Oqsv0Yj+RDTJFzhSJYINGohxug9en5DGL+cUJdAXarETAdUQLp0NWuhN6RwnAKyAvBLJ0AyY4TvxMkWiGO/WnTx3GiuqbBPrHD7aQPayn5gWSmX09Dhb/Quyk2N0kaZzaw= Authentication-Results: lists.01.org; dkim=none (message not signed) header.d=none;lists.01.org; dmarc=none action=none header.from=amd.com; Received: from brijesh-build-machine.amd.com (165.204.77.1) by BY2PR12MB0145.namprd12.prod.outlook.com (10.162.82.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Thu, 22 Jun 2017 20:38:33 +0000 From: Brijesh Singh To: edk2-devel@lists.01.org Cc: Brijesh Singh , Jordan Justen , Laszlo Ersek Date: Thu, 22 Jun 2017 16:37:42 -0400 Message-Id: <1498163868-30191-12-git-send-email-brijesh.singh@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498163868-30191-1-git-send-email-brijesh.singh@amd.com> References: <1498163868-30191-1-git-send-email-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: CO1PR15CA0051.namprd15.prod.outlook.com (10.175.176.19) To BY2PR12MB0145.namprd12.prod.outlook.com (10.162.82.18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f8e153fd-d3ae-4c0b-4e31-08d4b9aea69c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:BY2PR12MB0145; X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0145; 3:eBB84YwV8h07+kgaRdYscKcuWsCNjcbep5rnnj+1pcK19m46QwaU1yRB1CKFzMcV0caSVlwDQPLrf00mfJWL/wjTxIw/sVD6fB5Z+3+OXHfb6N+/gH1hrID52Nx2hcRti94yUTN8xJHBm8FRL54NSQmrc2Mx+HAFqFlqbzQ8h/HHry48cLFQPM04fzCzlQ2v2C0mWYbHd9q7jbe2s0D9Uhmew6enjnNNnQRt9DloYu2GTaODaUnWZ60ixPXUGd2arO3EY+YBhcWWPJAgKohHNSXw0fEVxKnGsCGQLAwRff/AsIIDh7LA2odf90/VubosKhn3B3tfhwvwNM355W7ydnciD1639//EHvugRezB56Y=; 25:rSmM+LQW2VuolkbQ50428/8HOBeGmsK4qKKxWIHWjUBPomaIfaTVi2KFQ9qBW9btPPkByYa9OlGx/85nVUNygTUUHTbkMXddwyhMi7QAfep0qwNh0X6MfxghVOQ/ZAnuB8GPBsJ5ge3KbjxEOBzT0OvF0/hxVItx3QA8g9YAq4Kalwk0/tOHpprvQGmrJa6EaU8vpwGfAJWgx9r1KHDWqxmF4qoSnTpj1IbsVWqGvOpoGoiaz6qfcGG72Nn9vENG6lfcCkpa/NlCC+SxpNboVKzLf2R73ZTbHJbsQyr/uFrp11fZAsDJMZrnsYjUuwfE0d47QiSWoyOwYFCx1Rq7tOc+cpuOARl1dGnFBl6AKnYPIAVWtbbDFKdjBy9u2KUZblDpaVvnX8UKaV9j/LiIjSFVE/PAR33IOTyeXRBqKQoIQInjG+f5WbU0Y5iZLDt+O08tcUxEHPa31fHcMbmVtJO3siNmWqa9pNXPtT21HKg= X-MS-TrafficTypeDiagnostic: BY2PR12MB0145: X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0145; 31:OcMN7+ByGV+wKnftq2Z5UND/XPf4lPlA5ww1PW7tZ+I1zYll2JDeKsDfD2ybHnPMzm+MEdPhiytvpbDbAk6EE+fbpn1LNIhzbJMUzPYLiHDtcnNpT1ToooZNf8czYE7DKtK2U5BknXYvgDUlqsRuDDNLfaWbqeAUlOfgLN4d/h4OEYcEjLA23weGZKIu7l4vA3dmhcGRhHqAnq1V6M1zjJ7I3b0hw5lM9+FqNsK+anQ=; 20:mtGAidAJTTmMaKOfsxGYleHFrsHHhUobzsJUsuaztppYAGnGd4f142hggbamhxO+uDg1zlULpJCTbfcnjMseuQ27mbJTYGmuvsmfQZo2/PKjmr3akMvdEJu6T8G/YSlQAybmsLyUgdvR9No5UDnbto1pd1BOSp9AQ2J5OJzH//iNySAAegf7pzsBI+dbyHu51Tc4pZsLz9anlQ3pnqRHpLoAYkbEAycLdbNIIEaagtmaFbrYhylNNRAyr858D5AXScS1AwJw9dm+e6XntpiMpmjmSDzZJuGouoYAsyKM7zOf4BbMh5jKMqR0N+o8yMFsnbV6Lsi9xcYbeP4lJRH5fKwBe7obKnKpvKOdqUCVqU3SPGi9hCDwbpD5ivjJc9CteLQmkwv3E7yZQpLVN9Fk9vLx30tGm657wpHVZQMzvVRKw9HXhY1UlgqEen3GWKrWeTnDt4QFzwHrs7Rw7r+aBBUIOJkSfwwL1VNcYfDxJ8mhUoR8AAixX1ExYnMeRRQ9 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(3002001)(6055026)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123558100)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR12MB0145; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR12MB0145; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR12MB0145; 4:5DqmQYjecyReIYYgmzjWlMfCbK9qeXZwHRsvSGk4kx?= =?us-ascii?Q?JQA4R4ox8OewCvUeRB8qwYS6j/ffsRb0QiSLbhks0Acb8AZVGR2dhMeTT7s6?= =?us-ascii?Q?anf23Vvu6Qisi/dZ/avoXw5UJYmBbZXFS4mvJTrNtrZGWBXfxzx46bOkrH0Z?= =?us-ascii?Q?QsiAcElUpNF/lzSU9J8rxz6t8KpnWogDHm8wfiI3+a5TO2JkDZthGpnUU/zU?= =?us-ascii?Q?luax2hCQHfClvEBtAPw2HQBPVa5xMBZ53dmq64BEwpy1Oa9fNeNhRC2N2DNY?= =?us-ascii?Q?0Ok06w+JfysjEJnugkcclPm3mGltxNtz4baigLBcNDgPZRTnTz5w1zt8egaU?= =?us-ascii?Q?GG3CZI9HtIz3FNMhGw19cost7kXA50JcOpS1i67EiBnsTMq9Gl5msqKVFEp2?= =?us-ascii?Q?bkwosbYH5L2hfxC9ImGXUN5B5ZTdgSJ8I5sic98h7XDZBZfrAU8D6UBgzGJU?= =?us-ascii?Q?QT9WLa8jY6yQOzse5yPF+/jqrjl1rkaIG+TM0ET49z1bTUVxSHA14yD1US92?= =?us-ascii?Q?78Wo4en5ySdaw7q8W2ey/3/jy3j2akxWqEkTZmoNaaa/x+3tDKNWkbOfB/EQ?= =?us-ascii?Q?vySaZxM8V1Mrjv9LJkYpzslticfb3fIPVPJlrCEHtgnigZjujb1lu+Fxj/8S?= =?us-ascii?Q?R+tSd1XT1vy+dAWnI2rfUejZXuLJq9n2n4/TqAZ4E3iaTLirdgsk2Dc4F0pg?= =?us-ascii?Q?bW/rlIFewgzxpsQwoO2VBjbiESwiGZUi0XSLha3s978owv1kXTi71x6qFsFs?= =?us-ascii?Q?XNo5lpPXST8SawRbVryC+225Ap2+NTW84ptA/UPJSiQqoe28zg2srpK4ilEn?= =?us-ascii?Q?DFOrRk6FK+vQgPhl7GYsLCkdwn6c6CLOQ+HfXkDLDdgqEuJC954qZEXmeAcY?= =?us-ascii?Q?L5yBnIcWpYEZxNJAXFQpQIwy7yqx5B2zTRKI7l8b5FhsBUZEMneVMHbnEmt3?= =?us-ascii?Q?JHatugrtcGA53B298STHhoiizVqa+iEWA7pvL3ghamYOpHM2Uew6X1Rd0wPY?= =?us-ascii?Q?ChywBciZShimgiV0czljfVENvNNq40/s9LKN91HUCwHB3ZfYXp+M+mFuwbJ/?= =?us-ascii?Q?vCFFAgh9JwY09luNY9N5IL4QzlZ0QO+Laa9qTB0igLvSypiFo526O7LwboyG?= =?us-ascii?Q?+ESM0rR7DS3H6HqRqCLSy8kNcNg/igl9CoRLHiLqjITRAAH6qyDBWtZp7wHt?= =?us-ascii?Q?5bPSuQflmvE34S7Cdr0pPhO+5ua91dgAnDlLXzmQDNFpFPIkz8XgbHnxZDyk?= =?us-ascii?Q?9/pd80+iOWA2xkcxg=3D?= X-Forefront-PRVS: 03468CBA43 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6029001)(6009001)(39450400003)(39840400002)(39850400002)(39860400002)(39410400002)(39400400002)(25786009)(189998001)(50226002)(76176999)(50986999)(2351001)(2361001)(7736002)(33646002)(2950100002)(6916009)(6666003)(6486002)(4326008)(53936002)(2906002)(110136004)(5003940100001)(8676002)(81166006)(38730400002)(478600001)(36756003)(305945005)(54906002)(47776003)(3846002)(66066001)(50466002)(48376002)(6116002)(86362001)(53416004)(5660300001)(42186005); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR12MB0145; H:brijesh-build-machine.amd.com; FPR:; SPF:None; M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-ascii?Q?M0T1UQco/jue28I2prMkukSP9NGjl7Pef6eV5WV4GV6tJjD18Yal5wpo1wQI?= =?us-ascii?Q?aKVk1nb9Wi7EENwW9qbdycEyax+GucPIcXzNBnlK7xAj7IfLbfN89MeHEo/G?= =?us-ascii?Q?h4VcZ98v76JKrUqp4WfbpMhJ5U2lZ1FEvPTDHBAxuvIzltvlPrEWXI59MEbs?= =?us-ascii?Q?qpHWKmNyMNYc70S6Nd5gc+4X+R4kJWkHeRVmp/iecDr1dCX2QK0fgwCNoaJe?= =?us-ascii?Q?yc0xQa0+Qy0ZF0LAd6D+/3XHP+g45UJxJMmRSq+KHL1BJu6JNiM1DaPH8gq5?= =?us-ascii?Q?3y2DI8G1YI=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR12MB0145; 6:syB5aLJIyRmWRmstoij+OzqnqOxExKiB7MkSeWNy3u?= =?us-ascii?Q?/QQ4woyTX8w/evzVyphUqqfttkD6IysMiCg4bT4MVgACwZfeuW53fyigSXFr?= =?us-ascii?Q?vuNGByV/FUaSj/w0zyZJZpDBS9ULK0I9hobW0TBjf2o5vpnIZWFR1a+HlzTx?= =?us-ascii?Q?cttonTw3Aq9f0AxL5rnJpOXZlMWVqLo7Lv+zZa6iH8cn8djKvanrOatR/6ay?= =?us-ascii?Q?Y6E32IDKndFUpQXWL2LdrADDaWGbJPHtCuGOwlbXj4LseLp5x0CIRwZvgNGB?= =?us-ascii?Q?NjzeBFbkrOfFNRe3/USH2+TWF4N0Ih8zJFQaROZ3AwNiLOnhZIO33Cll21/+?= =?us-ascii?Q?MBmxfKaewdP37TcuRVuaMjnrgc4uCZZZyXHxQMltncBLOnEOyca15KVI3j+A?= =?us-ascii?Q?6wreETPijG2a0JeXBuyfhqvbmRKuWiCIM0Qkh/QsZrwn/gZNTPRaPzVRHwVV?= =?us-ascii?Q?lX2LdKfKjSBslTwN+9e53WiVdact8DRQUghMUnvOpoYibPKKLP5BS8lu1QNp?= =?us-ascii?Q?wl1XnjqajqyALKC+FBQB9dkuDghSpYehn4aaq3hT85OttF9ApUewsppwgIxW?= =?us-ascii?Q?GWfS+jHfBxvOoxSnz2+DAaurgQhhV5dXYYnhntqQodPrkSFvpg4C4/qUEt/y?= =?us-ascii?Q?NukaR91v629E8aGzbvUo5V0yp12pZ8VIP3V9TSwlsAK/OGwDkh7zgrliz0gB?= =?us-ascii?Q?gHbesWnH2CksL1J3H3b/q3OZ8Vl3/GVWZ7rpOwVBjV22pg2KnVqxEX+/B8pT?= =?us-ascii?Q?6/enzuoVDG0+DYub+y47memVQkTmcSKdMby5t32JnDBbpv0ueNqObpVnzmTW?= =?us-ascii?Q?xGyasR37yIuZRtjQNHg45zIN1QzKCsqe1AD3anaD552FF02Te0KXILLNWrXE?= =?us-ascii?Q?usNaKkmRVVGZRwmi/4VJF4VzNO+wHDOsxnoVaP30BqKJqbHUSVafLPchtVgS?= =?us-ascii?Q?9PIlwegnszpICc1YySesVKTpeXiXkxFeP29rDIXlAon678+ji6NRNie9qPWS?= =?us-ascii?Q?3H3bQPPwtfW9Bk62Y/OITo?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0145; 5:UKhmKjyaBwsZP4ZCwI6/jGVHm2Vq7XRfqe9uB2+fiSphXmFGVIpE9gIX+EIWNUxmHgSgB+dMULvuZG7+9VX+yK8KPhRjIME920zlv1hm2OJRoSY2xSnOU7le9s6R0O00Ci1u+sw/rVTg0+bgkExC1iwRxB/6ebcUkjfIaSuZAhZbI2fd0cNosAOuMcuEQ+dsHMVrMDAemH5gEfdvDFxhzxJMtbRRk/OiWBg52hTtQPx+GrS8KKZGhOXuemSatPnEO0wgbbCYYE2CPa7lYpLhWgUbIaD0fuYSNQmiYN+j6U8uKzzHpgJkk1u6TY5bISVMu2051L6AyvKmIet0RONBMd/obdPgkTMgSoVtuyjFWImpKyLK1yRjBhjRCDmPQQU4jWNCRrJafaOpoyTMg+Ws5A/i/dAKPZFGf0s7HvuYuk4J8CZOebS7Z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oft-Exchange-Diagnostics: 1; BY2PR12MB0145; 20:GUgYofelqi2Y6R8J64JEV2Un6p9RukHd6kEcOqngOV1gRvJlXKfULS2yA1JJo1udwh32q7KpLYBo0un8ZgmAijjYBCLoO3OEIdQ551q23Lcnd/2R4SIyNdsZsv3noGrCIov+LNZRpRdpiwr2ddDjsRs1dIAnxXJB12hFnF1niSvNgjuhciQv9SYhDi3til+ky/2gf26b7iS52NH2Z2cJhOYyHaP9FlMOFhaIjg+I9ClpdNdYt3wFzzAkydI3+oz1 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2017 20:38:33.1479 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR12MB0145 Subject: [PATCH v7 11/17] OvmfPkg/QemuFwCfgLib: Prepare for SEV support 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, 22 Jun 2017 20:37:10 -0000 Content-Type: text/plain Add SEV specific internal functions which will be used while intergrating the SEV support into QemuFwCfgLib. Cc: Jordan Justen Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brijesh Singh Reviewed-by: Laszlo Ersek Reviewed-by: Jordan Justen --- OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibInternal.h | 37 ++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibInternal.h b/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibInternal.h index 6e87c625102e..8cfa7913ffae 100644 --- a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibInternal.h +++ b/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibInternal.h @@ -2,6 +2,7 @@ Internal interfaces specific to the QemuFwCfgLib instances in OvmfPkg. Copyright (C) 2016, Red Hat, Inc. + Copyright (C) 2017, Advanced Micro Devices. All rights reserved This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this @@ -43,4 +44,40 @@ InternalQemuFwCfgDmaIsAvailable ( VOID ); +/** + Returns a boolean indicating whether SEV support is enabled + + @retval TRUE SEV is enabled + @retval FALSE SEV is disabled +**/ +BOOLEAN +InternalQemuFwCfgSevIsEnabled ( + VOID + ); + +/** + Allocate a bounce buffer for SEV DMA. + + @param[out] Buffer Allocated DMA Buffer pointer + @param[in] NumPage Number of pages. + +**/ +VOID +InternalQemuFwCfgSevDmaAllocateBuffer ( + OUT VOID **Buffer, + IN UINT32 NumPages + ); + +/** + Free the DMA buffer allocated using InternalQemuFwCfgSevDmaAllocateBuffer + + @param[in] NumPage Number of pages. + @param[in] Buffer DMA Buffer pointer + +**/ +VOID +InternalQemuFwCfgSevDmaFreeBuffer ( + IN VOID *Buffer, + IN UINT32 NumPages + ); #endif -- 2.7.4