Commit 247a0fc6 authored by Min Xu's avatar Min Xu Committed by mergify[bot]
Browse files

OvmfPkg: Add README for TDVF



Cc: Brijesh Singh <>
Cc: Erdem Aktas <>
Cc: Gerd Hoffmann <>
Cc: James Bottomley <>
Cc: Jiewen Yao <>
Cc: Tom Lendacky <>
Signed-off-by: default avatarMin Xu <>
Acked-by: default avatarGerd Hoffmann <>
Reviewed-by: default avatarJiewen Yao <>
parent 2434f6f2
TDVF Overview
<b>Intel Trust Domain Extension (TDX)</b> is Intel Architecture extension
to provide trusted, isolated VM execution by removing CSP software
(hypervisor etc) from the TCB. <b>TDX Virtual Firmware (TDVF)</b> is an
EDK II based project to enable UEFI support for TDX based Virtual
Machines. It provides the capability to launch a TD.
The <b>Intel? TDX Virtual Firmware Design Guide</b> is at
More information can be found at:
Configurations and Features
There are 2 configurations for TDVF.
- Merge the *basic* TDVF feature to existing OvmfX64Pkg.dsc. (Align
with existing SEV)
- Threat model: VMM is NOT out of TCB. (We don?t make things worse)
- The OvmfX64Pkg.dsc includes SEV/TDX/normal OVMF basic boot capability.
The final binary can run on SEV/TDX/normal OVMF.
- No changes to existing OvmfPkgX64 image layout.
- No need to add additional security features if they do not exist today.
- No need to remove features if they exist today.
- RTMR is not supported.
- PEI phase is NOT skipped in either Td or Non-Td.
- (*) Add a standalone IntelTdx.dsc to a TDX specific directory for a *full*
feature TDVF.(Align with existing SEV)
- (*) Threat model: VMM is out of TCB. (We need necessary change to prevent
attack from VMM)
- (*) IntelTdx.dsc includes TDX/normal OVMF basic boot capability. The final
binary can run on TDX/normal OVMF.
- It might eventually merge with AmdSev.dsc, but NOT at this point of
time. And we don?t know when it will happen. We need sync with AMD in
the community after both of us think the solutions are mature to merge.
- Need to add necessary security feature as mandatory requirement, such
as RTMR based Trusted Boot support.
- Need to measure the external input from Host VMM, such as TdHob, CFV.
- Need to measure other external input, such as FW_CFG data, os loader,
initrd, etc.
- Need to remove unnecessary attack surfaces, such as network stack.
In current stage, <b>Config-A</b> has been merged into edk2-master branch.
The corresponding pkg file is OvmfPkg/OvmfPkgX64.dsc.
<b>Config-B</b> is split into several waves. The corresponding pkg file is
OvmfPkg/IntelTdx/IntelTdxX64.dsc. The features with (*) have been implemented
and merged into edk2-master branch. Others are in upstreaming progress.
- Build the TDVF (Config-A) target:
`cd /path/to/edk2`
` -p OvmfPkg/OvmfPkgX64.dsc -a X64 -t GCC5`
- Build the TDVF (Config-B) target:
`cd /path/to/edk2`
`set PACKAGES_PATH=/path/to/edk2/OvmfPkg`
` -p OvmfPkg/IntelTdx/IntelTdxX64.dsc -a X64 -t GCC5`
Assuming TDX-QEMU/TDX-KVM are already built, one can start a TD virtual
machine as [launching-td-guest](
`qemu_system_x86 \`
` -machine ...,confidential-guest-support=tdx0 \`
` -object tdx-guest,id=tdx0,[sept-ve-disable=off] \`
` -drive if=pflash,format=raw,unit=0,file=/path/to/OVMF_CODE.fd \`
` -drive if=pflash,format=raw,unit=1,file=/path/to/OVMF_VARS.fd \`
TDX-QEMU/TDX-KVM are still in upstreaming progress. Please refer to:
- kvm :
- qemu :
Once above 2 upstreaming are completed a minimum qemu/kvm version will be updated here.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment