i386/tdx: Build TDX only for 64-bit target
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
@@ -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
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]/Suggested-by Cédric Le Goater <[email protected]>Signed-off-by Xiaoyao Li <[email protected]>--- hw/i386/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/i386/Kconfig +0
-0
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.
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.0Build 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]/Suggested-by Cédric Le Goater <[email protected]>Signed-off-by Xiaoyao Li <[email protected]>--- hw/i386/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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]/Suggested-by Cédric Le Goater <[email protected]>Signed-off-by Xiaoyao Li <[email protected]>--- hw/i386/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/i386/Kconfig +0
-0
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.
Paolo Bonzini
AppliedQueued, thanks.
Paolo