From: "Min Xu" <min.m.xu@intel.com>
To: devel@edk2.groups.io
Cc: Min Xu <min.m.xu@intel.com>, Erdem Aktas <erdemaktas@google.com>,
James Bottomley <jejb@linux.ibm.com>,
Jiewen Yao <jiewen.yao@intel.com>,
Gerd Hoffmann <kraxel@redhat.com>,
Michael D Kinney <michael.d.kinney@intel.com>,
Liming Gao <gaoliming@byosoft.com.cn>,
Tom Lendacky <thomas.lendacky@amd.com>
Subject: [PATCH V2 0/4] Reserve shared memory for DMA operation
Date: Tue, 13 Dec 2022 13:48:20 +0800 [thread overview]
Message-ID: <20221213054824.53-1-min.m.xu@intel.com> (raw)
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4171
This patch-set introduces the feature of reserving shared memory
for DMA operation. Its intention is to reduce the allocation and
conversion of private/shared memory, so that boot performance
can be improved significantly. Detailed information is in Patch#1.
Patch#2 renames AmdSevIoMmu.* to CcIoMmu.* because these 2 files
support both SEV and TDX guest.
Patch#3 is provided by Tom Lendacky which add SEV support for reserved
shared memory.
Patch#4 updates the related section in Maintainers.txt.
Code: https://github.com/mxu9/edk2/tree/IoMmu.v2
v2 changes:
- Add Patch#3 which is provided by Tom Lendacky. It adds SEV support for
reserved shared memory.
- Add more description for mReservedMemRanges. It describes:
1) How the pre-allocated memory is managed.
2) What if the pre-allocated memory is used up.
Cc: Erdem Aktas <erdemaktas@google.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Min M Xu (3):
OvmfPkg/IoMmuDxe: Reserve shared memory region for DMA operation
OvmfPkg/IoMmuDxe: Rename AmdSevIoMmu to CcIoMmu
Maintainers: Update OvmfPkg/IoMmuDxe
Tom Lendacky (1):
OvmfPkg/IoMmuDxe: Add SEV support for reserved shared memory
Maintainers.txt | 2 +-
OvmfPkg/IoMmuDxe/{AmdSevIoMmu.c => CcIoMmu.c} | 203 ++++----
OvmfPkg/IoMmuDxe/{AmdSevIoMmu.h => CcIoMmu.h} | 0
OvmfPkg/IoMmuDxe/IoMmuBuffer.c | 489 ++++++++++++++++++
OvmfPkg/IoMmuDxe/IoMmuDxe.c | 2 +-
OvmfPkg/IoMmuDxe/IoMmuDxe.inf | 6 +-
OvmfPkg/IoMmuDxe/IoMmuInternal.h | 179 +++++++
7 files changed, 775 insertions(+), 106 deletions(-)
rename OvmfPkg/IoMmuDxe/{AmdSevIoMmu.c => CcIoMmu.c} (85%)
rename OvmfPkg/IoMmuDxe/{AmdSevIoMmu.h => CcIoMmu.h} (100%)
create mode 100644 OvmfPkg/IoMmuDxe/IoMmuBuffer.c
create mode 100644 OvmfPkg/IoMmuDxe/IoMmuInternal.h
--
2.29.2.windows.2
next reply other threads:[~2022-12-13 5:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-13 5:48 Min Xu [this message]
2022-12-13 5:48 ` [PATCH V2 1/4] OvmfPkg/IoMmuDxe: Reserve shared memory region for DMA operation Min Xu
2022-12-13 16:04 ` Lendacky, Thomas
2022-12-14 0:02 ` [edk2-devel] " Min Xu
2022-12-14 14:24 ` Lendacky, Thomas
2022-12-13 5:48 ` [PATCH V2 2/4] OvmfPkg/IoMmuDxe: Rename AmdSevIoMmu to CcIoMmu Min Xu
2022-12-13 5:48 ` [PATCH V2 3/4] OvmfPkg/IoMmuDxe: Add SEV support for reserved shared memory Min Xu
2022-12-13 16:05 ` Lendacky, Thomas
2022-12-13 23:55 ` [edk2-devel] " Min Xu
2022-12-13 5:48 ` [PATCH V2 4/4] Maintainers: Update OvmfPkg/IoMmuDxe Min Xu
[not found] ` <1730444AD2D72EE9.23954@groups.io>
2022-12-13 5:52 ` [edk2-devel] [PATCH V2 3/4] OvmfPkg/IoMmuDxe: Add SEV support for reserved shared memory Min Xu
2022-12-13 15:35 ` Lendacky, Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221213054824.53-1-min.m.xu@intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox