- kvm-target-i386-Make-invtsc-migratable-when-user-sets-ts.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-target-i386-Enable-fdp-excptn-only-and-zero-fcs-fds.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-kvm-i386-make-kvm_filter_msr-and-related-definitions.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-kvm-remove-unnecessary-ifdef.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-crypto-Define-macros-for-hash-algorithm-digest-lengt.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-cpu-Drop-the-check-of-phys_bits-in-host_cpu_rea.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-cpu-Extract-a-common-fucntion-to-setup-value-of.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-cpu-Drop-the-variable-smp_cores-and-smp_threads.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-cpu-Drop-cores_per_pkg-in-cpu_x86_cpuid.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-topology-Update-the-comment-of-x86_apicid_from_.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-topology-Introduce-helpers-for-various-topology.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-cpu-Track-a-X86CPUTopoInfo-directly-in-CPUX86St.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-cpu-Hoist-check-of-CPUID_EXT3_TOPOEXT-against-t.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-cpu-Remove-nr_cores-from-struct-CPUState.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-cpu-Set-up-CPUID_HT-in-x86_cpu_expand_features-.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-cpu-Set-and-track-CPUID_EXT3_CMP_LEG-in-env-fea.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-Remove-unused-parameter-uint32_t-bit-in-feature.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-target-i386-Print-CPUID-subleaf-info-for-unsupported.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-target-i386-sev-Reduce-system-specific-declarations.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-physmem-replace-assertion-with-error.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-redhat-target-i386-add-CPUID-and-MSR-bits-from-Clear.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-qom-reverse-order-of-instance_post_init-calls.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-target-i386-Remove-AccelCPUClass-cpu_class_init-need.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-cpu-Consolidate-the-helper-to-get-Host-s-vendor.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-rocker-do-not-pollute-the-namespace.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-linux-headers-Update-to-Linux-v6.14-rc3.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-linux-headers-Update-to-Linux-v6.15-rc3.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-linux-headers-update-from-6.15-kvm-next.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-update-Linux-headers-to-v6.16-rc3.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-update-Linux-headers-to-KVM-tree-master.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-Introduce-tdx-guest-object.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Implement-tdx_kvm_type-for-TDX.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Implement-tdx_kvm_init-to-initialize-TDX-VM.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Get-tdx_capabilities-via-KVM_TDX_CAPABILITI.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Introduce-is_tdx_vm-helper-and-cache-tdx_gu.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-kvm-Introduce-kvm_arch_pre_create_vcpu.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Initialize-TDX-before-creating-TD-vcpus.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Add-property-sept-ve-disable-for-tdx-guest-.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Make-sept_ve_disable-set-by-default.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Wire-CPU-features-up-with-attributes-of-TD-.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Validate-TD-attributes.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Support-user-configurable-mrconfigid-mrowne.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Set-APIC-bus-rate-to-match-with-what-TDX-mo.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Implement-user-specified-tsc-frequency.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-load-TDVF-for-TD-guest.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdvf-Introduce-function-to-parse-TDVF-metadata.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Parse-TDVF-metadata-for-TDX-VM.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Don-t-initialize-pc.rom-for-TDX-VMs.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Track-mem_ptr-for-each-firmware-entry-of-TD.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Track-RAM-entries-for-TDX-VM.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-headers-Add-definitions-from-UEFI-spec-for-volumes-r.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Setup-the-TD-HOB-list.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Add-TDVF-memory-via-KVM_TDX_INIT_MEM_REGION.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Call-KVM_TDX_INIT_VCPU-to-initialize-TDX-vc.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Finalize-TDX-VM.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Enable-user-exit-on-KVM_HC_MAP_GPA_RANGE.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Handle-KVM_SYSTEM_EVENT_TDX_FATAL.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Wire-TDX_REPORT_FATAL_ERROR-with-GuestPanic.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-kvm-Check-KVM_CAP_MAX_VCPUS-at-vm-level.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-cpu-introduce-x86_confidential_guest_cpu_instan.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-implement-tdx_cpu_instance_init.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-cpu-Introduce-enable_cpuid_0x1f-to-force-exposi.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Force-exposing-CPUID-0x1f.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Set-kvm_readonly_mem_enabled-to-false-for-T.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Disable-SMM-for-TDX-VMs.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Disable-PIC-for-TDX-VMs.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Set-and-check-kernel_irqchip-mode-for-TDX.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Don-t-synchronize-guest-tsc-for-TDs.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Only-configure-MSR_IA32_UCODE_REV-in-kvm_in.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-apic-Skip-kvm_apic_put-for-TDX.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-cpu-Don-t-set-vcpu_dirty-when-guest_state_protected.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-cgs-Rename-mask_cpuid_features-to-adjust_cpuid_.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Implement-adjust_cpuid_features-for-TDX.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Add-TDX-fixed1-bits-to-supported-CPUIDs.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Add-supported-CPUID-bits-related-to-TD-Attr.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Add-supported-CPUID-bits-relates-to-XFAM.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Add-XFD-to-supported-bit-of-TDX.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Define-supported-KVM-features-for-TDX.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-cgs-Introduce-x86_confidential_guest_check_feat.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Fetch-and-validate-CPUID-of-TD-guest.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Don-t-treat-SYSCALL-as-unavailable.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Make-invtsc-default-on.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Validate-phys_bits-against-host-value.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-docs-Add-TDX-documentation.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Fix-build-on-32-bit-host.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdvf-Fix-build-on-32-bit-host.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-cpu-Move-adjustment-of-CPUID_EXT_PDCM-before-fe.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Error-and-exit-when-named-cpu-model-is-requ.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-cpu-Rename-enable_cpuid_0x1f-to-force_cpuid_0x1.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Fix-the-typo-of-the-comment-of-struct-TdxGu.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Clarify-the-error-message-of-mrconfigid-mro.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-handle-TDG.VP.VMCALL-GetTdVmCallInfo.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-handle-TDG.VP.VMCALL-GetQuote.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-target-i386-move-max_features-to-class.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-target-i386-nvmm-whpx-add-accel-CPU-class-that-sets-.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-target-i386-allow-reordering-max_x86_cpu_initfn-vs-a.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-target-i386-move-accel_cpu_instance_init-to-.instanc.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-target-i386-merge-host_cpu_instance_init-and-host_cp.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Remove-enumeration-of-GetQuote-in-tdx_handl.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Set-value-of-GetTdVmCallInfo-based-on-capab.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-handle-TDVMCALL_SETUP_EVENT_NOTIFY_INTERRUP.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Fix-the-report-of-gpa-in-QAPI.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Remove-task-watch-only-when-it-s-valid.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Don-t-mask-off-CPUID_EXT_PDCM.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-cpu-Move-x86_ext_save_areas-initialization-to-..patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-target-i386-tdx-fix-locking-for-interrupt-injection.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-cpu-Cleanup-host_cpu_max_instance_init.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-i386-tdx-Remove-the-redundant-qemu_mutex_init-tdx-lo.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-redhat-enable-CONFIG_TDX.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-redhat-allow-5-level-paging-for-TDX-VMs.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-memory-Export-a-helper-to-get-intersection-of-a-Memo.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-memory-Change-memory_region_set_ram_discard_manager-.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-memory-Unify-the-definiton-of-ReplayRamPopulate-and-.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-ram-block-attributes-Introduce-RamBlockAttributes-to.patch [RHEL-15710 RHEL-20798 RHEL-49728] - kvm-physmem-Support-coordinated-discarding-of-RAM-with-g.patch [RHEL-15710 RHEL-20798 RHEL-49728] - Resolves: RHEL-15710 ([Intel 9.7 FEAT] TDX: QEMU Support) - Resolves: RHEL-20798 ([Intel 9.6 FEAT] TDX: host: Virt-QEMU: Add safe device pass-through for TD) - Resolves: RHEL-49728 ([Intel 9.7 FEAT] Virt-QEMU: TDX: Allow to configure apic bus clock)
223 lines
8.0 KiB
Diff
223 lines
8.0 KiB
Diff
From a9c7bbb7a32ba2ea5cd76b87c41f1fbdd789fb3b Mon Sep 17 00:00:00 2001
|
|
From: Paolo Bonzini <pbonzini@redhat.com>
|
|
Date: Fri, 18 Jul 2025 18:03:48 +0200
|
|
Subject: [PATCH 084/115] docs: Add TDX documentation
|
|
|
|
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
|
|
RH-MergeRequest: 391: TDX support, including attestation and device assignment
|
|
RH-Jira: RHEL-15710 RHEL-20798 RHEL-49728
|
|
RH-Acked-by: Yash Mankad <None>
|
|
RH-Acked-by: Peter Xu <peterx@redhat.com>
|
|
RH-Acked-by: David Hildenbrand <david@redhat.com>
|
|
RH-Commit: [84/115] 4f9930f4415e7195bf5bbbcc0d79cfc6aaa385e1 (bonzini/rhel-qemu-kvm)
|
|
|
|
Add docs/system/i386/tdx.rst for TDX support, and add tdx in
|
|
confidential-guest-support.rst
|
|
|
|
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
|
|
Link: https://lore.kernel.org/r/20250508150002.689633-56-xiaoyao.li@intel.com
|
|
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
(cherry picked from commit dc1424319311f86449c6825ceec2364ee645a363)
|
|
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
---
|
|
docs/system/confidential-guest-support.rst | 1 +
|
|
docs/system/i386/tdx.rst | 161 +++++++++++++++++++++
|
|
docs/system/target-i386.rst | 1 +
|
|
3 files changed, 163 insertions(+)
|
|
create mode 100644 docs/system/i386/tdx.rst
|
|
|
|
diff --git a/docs/system/confidential-guest-support.rst b/docs/system/confidential-guest-support.rst
|
|
index 0c490dbda2..66129fbab6 100644
|
|
--- a/docs/system/confidential-guest-support.rst
|
|
+++ b/docs/system/confidential-guest-support.rst
|
|
@@ -38,6 +38,7 @@ Supported mechanisms
|
|
Currently supported confidential guest mechanisms are:
|
|
|
|
* AMD Secure Encrypted Virtualization (SEV) (see :doc:`i386/amd-memory-encryption`)
|
|
+* Intel Trust Domain Extension (TDX) (see :doc:`i386/tdx`)
|
|
* POWER Protected Execution Facility (PEF) (see :ref:`power-papr-protected-execution-facility-pef`)
|
|
* s390x Protected Virtualization (PV) (see :doc:`s390x/protvirt`)
|
|
|
|
diff --git a/docs/system/i386/tdx.rst b/docs/system/i386/tdx.rst
|
|
new file mode 100644
|
|
index 0000000000..8131750b64
|
|
--- /dev/null
|
|
+++ b/docs/system/i386/tdx.rst
|
|
@@ -0,0 +1,161 @@
|
|
+Intel Trusted Domain eXtension (TDX)
|
|
+====================================
|
|
+
|
|
+Intel Trusted Domain eXtensions (TDX) refers to an Intel technology that extends
|
|
+Virtual Machine Extensions (VMX) and Multi-Key Total Memory Encryption (MKTME)
|
|
+with a new kind of virtual machine guest called a Trust Domain (TD). A TD runs
|
|
+in a CPU mode that is designed to protect the confidentiality of its memory
|
|
+contents and its CPU state from any other software, including the hosting
|
|
+Virtual Machine Monitor (VMM), unless explicitly shared by the TD itself.
|
|
+
|
|
+Prerequisites
|
|
+-------------
|
|
+
|
|
+To run TD, the physical machine needs to have TDX module loaded and initialized
|
|
+while KVM hypervisor has TDX support and has TDX enabled. If those requirements
|
|
+are met, the ``KVM_CAP_VM_TYPES`` will report the support of ``KVM_X86_TDX_VM``.
|
|
+
|
|
+Trust Domain Virtual Firmware (TDVF)
|
|
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
+
|
|
+Trust Domain Virtual Firmware (TDVF) is required to provide TD services to boot
|
|
+TD Guest OS. TDVF needs to be copied to guest private memory and measured before
|
|
+the TD boots.
|
|
+
|
|
+KVM vcpu ioctl ``KVM_TDX_INIT_MEM_REGION`` can be used to populate the TDVF
|
|
+content into its private memory.
|
|
+
|
|
+Since TDX doesn't support readonly memslot, TDVF cannot be mapped as pflash
|
|
+device and it actually works as RAM. "-bios" option is chosen to load TDVF.
|
|
+
|
|
+OVMF is the opensource firmware that implements the TDVF support. Thus the
|
|
+command line to specify and load TDVF is ``-bios OVMF.fd``
|
|
+
|
|
+Feature Configuration
|
|
+---------------------
|
|
+
|
|
+Unlike non-TDX VM, the CPU features (enumerated by CPU or MSR) of a TD are not
|
|
+under full control of VMM. VMM can only configure part of features of a TD on
|
|
+``KVM_TDX_INIT_VM`` command of VM scope ``MEMORY_ENCRYPT_OP`` ioctl.
|
|
+
|
|
+The configurable features have three types:
|
|
+
|
|
+- Attributes:
|
|
+ - PKS (bit 30) controls whether Supervisor Protection Keys is exposed to TD,
|
|
+ which determines related CPUID bit and CR4 bit;
|
|
+ - PERFMON (bit 63) controls whether PMU is exposed to TD.
|
|
+
|
|
+- XSAVE related features (XFAM):
|
|
+ XFAM is a 64b mask, which has the same format as XCR0 or IA32_XSS MSR. It
|
|
+ determines the set of extended features available for use by the guest TD.
|
|
+
|
|
+- CPUID features:
|
|
+ Only some bits of some CPUID leaves are directly configurable by VMM.
|
|
+
|
|
+What features can be configured is reported via TDX capabilities.
|
|
+
|
|
+TDX capabilities
|
|
+~~~~~~~~~~~~~~~~
|
|
+
|
|
+The VM scope ``MEMORY_ENCRYPT_OP`` ioctl provides command ``KVM_TDX_CAPABILITIES``
|
|
+to get the TDX capabilities from KVM. It returns a data structure of
|
|
+``struct kvm_tdx_capabilities``, which tells the supported configuration of
|
|
+attributes, XFAM and CPUIDs.
|
|
+
|
|
+TD attributes
|
|
+~~~~~~~~~~~~~
|
|
+
|
|
+QEMU supports configuring raw 64-bit TD attributes directly via "attributes"
|
|
+property of "tdx-guest" object. Note, it's users' responsibility to provide a
|
|
+valid value because some bits may not supported by current QEMU or KVM yet.
|
|
+
|
|
+QEMU also supports the configuration of individual attribute bits that are
|
|
+supported by it, via properties of "tdx-guest" object.
|
|
+E.g., "sept-ve-disable" (bit 28).
|
|
+
|
|
+MSR based features
|
|
+~~~~~~~~~~~~~~~~~~
|
|
+
|
|
+Current KVM doesn't support MSR based feature (e.g., MSR_IA32_ARCH_CAPABILITIES)
|
|
+configuration for TDX, and it's a future work to enable it in QEMU when KVM adds
|
|
+support of it.
|
|
+
|
|
+Feature check
|
|
+~~~~~~~~~~~~~
|
|
+
|
|
+QEMU checks if the final (CPU) features, determined by given cpu model and
|
|
+explicit feature adjustment of "+featureA/-featureB", can be supported or not.
|
|
+It can produce feature not supported warning like
|
|
+
|
|
+ "warning: host doesn't support requested feature: CPUID.07H:EBX.intel-pt [bit 25]"
|
|
+
|
|
+It can also produce warning like
|
|
+
|
|
+ "warning: TDX forcibly sets the feature: CPUID.80000007H:EDX.invtsc [bit 8]"
|
|
+
|
|
+if the fixed-1 feature is requested to be disabled explicitly. This is newly
|
|
+added to QEMU for TDX because TDX has fixed-1 features that are forcibly enabled
|
|
+by TDX module and VMM cannot disable them.
|
|
+
|
|
+Launching a TD (TDX VM)
|
|
+-----------------------
|
|
+
|
|
+To launch a TD, the necessary command line options are tdx-guest object and
|
|
+split kernel-irqchip, as below:
|
|
+
|
|
+.. parsed-literal::
|
|
+
|
|
+ |qemu_system_x86| \\
|
|
+ -accel kvm \\
|
|
+ -cpu host \\
|
|
+ -object tdx-guest,id=tdx0 \\
|
|
+ -machine ...,confidential-guest-support=tdx0 \\
|
|
+ -bios OVMF.fd \\
|
|
+
|
|
+Restrictions
|
|
+------------
|
|
+
|
|
+ - kernel-irqchip must be split;
|
|
+
|
|
+ This is set by default for TDX guest if kernel-irqchip is left on its default
|
|
+ 'auto' setting.
|
|
+
|
|
+ - No readonly support for private memory;
|
|
+
|
|
+ - No SMM support: SMM support requires manipulating the guest register states
|
|
+ which is not allowed;
|
|
+
|
|
+Debugging
|
|
+---------
|
|
+
|
|
+Bit 0 of TD attributes, is DEBUG bit, which decides if the TD runs in off-TD
|
|
+debug mode. When in off-TD debug mode, TD's VCPU state and private memory are
|
|
+accessible via given SEAMCALLs. This requires KVM to expose APIs to invoke those
|
|
+SEAMCALLs and corresonponding QEMU change.
|
|
+
|
|
+It's targeted as future work.
|
|
+
|
|
+TD attestation
|
|
+--------------
|
|
+
|
|
+In TD guest, the attestation process is used to verify the TDX guest
|
|
+trustworthiness to other entities before provisioning secrets to the guest.
|
|
+
|
|
+TD attestation is initiated first by calling TDG.MR.REPORT inside TD to get the
|
|
+REPORT. Then the REPORT data needs to be converted into a remotely verifiable
|
|
+Quote by SGX Quoting Enclave (QE).
|
|
+
|
|
+It's a future work in QEMU to add support of TD attestation since it lacks
|
|
+support in current KVM.
|
|
+
|
|
+Live Migration
|
|
+--------------
|
|
+
|
|
+Future work.
|
|
+
|
|
+References
|
|
+----------
|
|
+
|
|
+- `TDX Homepage <https://www.intel.com/content/www/us/en/developer/articles/technical/intel-trust-domain-extensions.html>`__
|
|
+
|
|
+- `SGX QE <https://github.com/intel/SGXDataCenterAttestationPrimitives/tree/master/QuoteGeneration>`__
|
|
diff --git a/docs/system/target-i386.rst b/docs/system/target-i386.rst
|
|
index 1b8a1f248a..4d58cdbc4e 100644
|
|
--- a/docs/system/target-i386.rst
|
|
+++ b/docs/system/target-i386.rst
|
|
@@ -29,6 +29,7 @@ Architectural features
|
|
i386/kvm-pv
|
|
i386/sgx
|
|
i386/amd-memory-encryption
|
|
+ i386/tdx
|
|
|
|
OS requirements
|
|
~~~~~~~~~~~~~~~
|
|
--
|
|
2.50.1
|
|
|