Skip to contentSkip to conversation

i386: Build SEV only for 64-bit target

PATCH Applied Cédric Le Goater 3 participants 6 messages Jul 16, 2025 – Jul 28, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386: Build SEV only for 64-bit target

Recent changes broke build on 32-bit host. Since there is no 32-bit support, restrict SEV to 64-bit.

---
 hw/i386/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/Kconfig +1 -1
index 14d23e27b580b2d5ea3aa4c07ba066f21a62e348..5139d2308777114e76a789c4f850fa20f3fa754f 100644
@@ -4,7 +4,7 @@ config X86_FW_OVMF
 config SEV
     bool
     select X86_FW_OVMF
-    depends on KVM
+    depends on KVM && X86_64
 
 config SGX
     bool
Signature · 1 line
2.50.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Cédric Le Goater

Recent changes broke build on 32-bit host. Since there is no 32-bit support, restrict SEV to 64-bit.

---
 hw/i386/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Matches what we just did for TDX too.

Quoted 18 lines
hw/i386/Kconfig +1 -1
index 14d23e27b580b2d5ea3aa4c07ba066f21a62e348..5139d2308777114e76a789c4f850fa20f3fa754f 100644
@@ -4,7 +4,7 @@ config X86_FW_OVMF
 config SEV
     bool
     select X86_FW_OVMF
-    depends on KVM
+    depends on KVM && X86_64
 
 config SGX
     bool
Signature · 1 line
2.50.1

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#3 lore raw
Quoted 10 lines · Cédric Le Goater
Quoted 9 lines · Daniel P. Berrangé
Quoted 7 lines · Cédric Le Goater

Recent changes broke build on 32-bit host. Since there is no 32-bit support, restrict SEV to 64-bit.

---
  hw/i386/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 5 lines
Quoted 3 lines

Matches what we just did for TDX too.

What about SGX ?

Our SGX features only require kernel support.

The SGX userspace SDK can build for 32 & 64 bit, though in Fedora/RHEL I will only build it for 64-bit, but that's not relevant for QEMU's needs anyway.

Ultimately we're dropping 32-bit host support for QEMU in general at the end of this year, so we don't need to go out of our way to selectively drop things before then unless they're giving us trouble today.

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
Reviewed-by on v1 1/1
#4 lore raw
In reply to Cédric Le Goater
Quoted 4 lines · Cédric Le Goater

Recent changes broke build on 32-bit host. Since there is no 32-bit support, restrict SEV to 64-bit.

Quoted 17 lines
---
  hw/i386/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/Kconfig +1 -1
index 14d23e27b580b2d5ea3aa4c07ba066f21a62e348..5139d2308777114e76a789c4f850fa20f3fa754f 100644
@@ -4,7 +4,7 @@ config X86_FW_OVMF
  config SEV
      bool
      select X86_FW_OVMF
-    depends on KVM
+    depends on KVM && X86_64
 
  config SGX
      bool
author Applied
#5 lore raw
In reply to Cédric Le Goater
Quoted 13 lines · Cédric Le Goater

Recent changes broke build on 32-bit host. Since there is no 32-bit support, restrict SEV to 64-bit.

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

hw/i386/Kconfig config X86_FW_OVMF · line 10

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

Applied to vfio-next.

Thanks,

C.