README 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. TDVF Overview
  2. -------------
  3. <b>Intel Trust Domain Extension (TDX)</b> is Intel Architecture extension
  4. to provide trusted, isolated VM execution by removing CSP software
  5. (hypervisor etc) from the TCB. <b>TDX Virtual Firmware (TDVF)</b> is an
  6. EDK II based project to enable UEFI support for TDX based Virtual
  7. Machines. It provides the capability to launch a TD.
  8. The <b>Intel? TDX Virtual Firmware Design Guide</b> is at
  9. https://www.intel.com/content/dam/develop/external/us/en/documents/tdx-virtual-firmware-design-guide-rev-1.01.pdf.
  10. More information can be found at:
  11. https://www.intel.com/content/www/us/en/developer/articles/technical/intel-trust-domain-extensions.html
  12. Configurations and Features
  13. ----------------------------
  14. There are 2 configurations for TDVF.
  15. <b>Config-A:</b>
  16. - Merge the *basic* TDVF feature to existing OvmfX64Pkg.dsc. (Align
  17. with existing SEV)
  18. - Threat model: VMM is NOT out of TCB. (We don?t make things worse)
  19. - The OvmfX64Pkg.dsc includes SEV/TDX/normal OVMF basic boot capability.
  20. The final binary can run on SEV/TDX/normal OVMF.
  21. - No changes to existing OvmfPkgX64 image layout.
  22. - No need to remove features if they exist today.
  23. - PEI phase is NOT skipped in either Td or Non-Td.
  24. - RTMR based measurement is supported.
  25. - External inputs from Host VMM are measured, such as TdHob, CFV.
  26. - Other external inputs are measured, such as FW_CFG data, os loader,
  27. initrd, etc.
  28. <b>Config-B:</b>
  29. - Add a standalone IntelTdx.dsc to a TDX specific directory for a *full*
  30. feature TDVF.(Align with existing SEV)
  31. - Threat model: VMM is out of TCB. (We need necessary change to prevent
  32. attack from VMM)
  33. - IntelTdx.dsc includes TDX/normal OVMF basic boot capability. The final
  34. binary can run on TDX/normal OVMF.
  35. - It might eventually merge with AmdSev.dsc, but NOT at this point of
  36. time. And we don?t know when it will happen. We need sync with AMD in
  37. the community after both of us think the solutions are mature to merge.
  38. - Need to add necessary security feature as mandatory requirement, such
  39. as RTMR based Trusted Boot support.
  40. - Need to measure the external input from Host VMM, such as TdHob, CFV.
  41. - Need to measure other external input, such as FW_CFG data, os loader,
  42. initrd, etc.
  43. - Need to remove unnecessary attack surfaces, such as network stack.
  44. Build
  45. ------
  46. - Build the TDVF (Config-A) target:
  47. `cd /path/to/edk2`
  48. `source edksetup.sh`
  49. `build.sh -p OvmfPkg/OvmfPkgX64.dsc -a X64 -t GCC5`
  50. - Build the TDVF (Config-B) target:
  51. `cd /path/to/edk2`
  52. `set PACKAGES_PATH=/path/to/edk2/OvmfPkg`
  53. `source edksetup.sh`
  54. `build.sh -p OvmfPkg/IntelTdx/IntelTdxX64.dsc -a X64 -t GCC5`
  55. Usage
  56. -----
  57. Assuming TDX-QEMU/TDX-KVM are already built, one can start a TD virtual
  58. machine as [launching-td-guest](https://github.com/intel/qemu-tdx/blob/tdx-qemu-upstream-rfc-v3/docs/system/i386/tdx.rst#launching-a-td-tdx-vm):
  59. `qemu_system_x86 \`
  60. ` -machine ...,confidential-guest-support=tdx0 \`
  61. ` -object tdx-guest,id=tdx0,[sept-ve-disable=off] \`
  62. ` -drive if=pflash,format=raw,unit=0,file=/path/to/OVMF_CODE.fd \`
  63. ` -drive if=pflash,format=raw,unit=1,file=/path/to/OVMF_VARS.fd \`
  64. Note:
  65. TDX-QEMU/TDX-KVM are still in upstreaming progress. Please refer to:
  66. - kvm : https://github.com/intel/tdx/tree/kvm-upstream
  67. - qemu : https://github.com/intel/qemu-tdx/blob/tdx-qemu-upstream-rfc-v3
  68. Once above 2 upstreaming are completed a minimum qemu/kvm version will be updated here.