Skip to contentSkip to conversation

i386/tdx: Build TDX only for 64-bit target

PATCH Applied Xiaoyao Li 4 participants 5 messages Jun 25, 2025 – Jul 11, 2025

lore
Share & tools
lore

Xiaoyao Li

author
#0 lore raw

PATCH v2 1/1 i386/tdx: Build TDX only for 64-bit target

Build errors related to TDX were reported when QEMU built on 32-bit host[1][2].

Since TDX cannot work on 32-bit host and it's also not worth supporting TDX with 32-bit QEMU, limit TDX to 64-bit target only.

[1] https://lore.kernel.org/qemu-devel/[email protected]/
[2] https://lore.kernel.org/qemu-devel/[email protected]/

---
 hw/i386/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/Kconfig +1 -1
index eb65bda6e071..14d23e27b580 100644
@@ -13,7 +13,7 @@ config SGX
 config TDX
     bool
     select X86_FW_OVMF
-    depends on KVM
+    depends on KVM && X86_64
 
 config PC
     bool
Signature · 1 line
2.43.0
Tested-by Reviewed-by on v2 1/1
#1 lore raw
Quoted 20 lines · Xiaoyao Li

Build errors related to TDX were reported when QEMU built on 32-bit host[1][2].

Since TDX cannot work on 32-bit host and it's also not worth supporting TDX with 32-bit QEMU, limit TDX to 64-bit target only.

[1] https://lore.kernel.org/qemu-devel/[email protected]/
[2] https://lore.kernel.org/qemu-devel/[email protected]/

---
  hw/i386/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/Kconfig +0 -0
index eb65bda6e071..14d23e27b580 100644

hw/i386/Kconfig config SGX · line 19

Quoted 8 lines
hw/i386/Kconfig +1 -1
@@ -13,7 +13,7 @@ config SGX
  config TDX
      bool
      select X86_FW_OVMF
-    depends on KVM
+    depends on KVM && X86_64
 
  config PC
      bool

Thanks,

C.

Reviewed-by on v2 1/1
#2 lore raw
In reply to Xiaoyao Li
Quoted 11 lines · Xiaoyao Li

Date: Wed, 25 Jun 2025 15:33:10 +0800
From: Xiaoyao Li <[email protected]>
Subject: [PATCH v2] i386/tdx: Build TDX only for 64-bit target
X-Mailer: git-send-email 2.43.0

Build errors related to TDX were reported when QEMU built on 32-bit host[1][2].

Since TDX cannot work on 32-bit host and it's also not worth supporting TDX with 32-bit QEMU, limit TDX to 64-bit target only.

Quoted 8 lines

[1] https://lore.kernel.org/qemu-devel/[email protected]/
[2] https://lore.kernel.org/qemu-devel/[email protected]/

---
 hw/i386/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#3 lore raw
In reply to Xiaoyao Li
Quoted 20 lines · Xiaoyao Li

Build errors related to TDX were reported when QEMU built on 32-bit host[1][2].

Since TDX cannot work on 32-bit host and it's also not worth supporting TDX with 32-bit QEMU, limit TDX to 64-bit target only.

[1] https://lore.kernel.org/qemu-devel/[email protected]/
[2] https://lore.kernel.org/qemu-devel/[email protected]/

---
  hw/i386/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/Kconfig +0 -0
index eb65bda6e071..14d23e27b580 100644

hw/i386/Kconfig config SGX · line 19

Quoted 8 lines
hw/i386/Kconfig +1 -1
@@ -13,7 +13,7 @@ config SGX
  config TDX
      bool
      select X86_FW_OVMF
-    depends on KVM
+    depends on KVM && X86_64
 
  config PC
      bool

I will take this change through the vfio queue if no one objects.

Thanks,

C.