meson: Disallow 64-bit on 32-bit Xen emulation
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 4 Feb 2025 16:16:36 +0000 (08:16 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 8 Feb 2025 20:40:24 +0000 (12:40 -0800)
Require a 64-bit host binary to spawn a 64-bit guest.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
meson.build

index 1af8aeb194c2d434efd7ebbe11a81fe08055f08c..911955cfa85be4494e39d404353aa56202b0bd2a 100644 (file)
@@ -304,9 +304,14 @@ else
 endif
 accelerator_targets = { 'CONFIG_KVM': kvm_targets }
 
-if cpu in ['x86', 'x86_64']
+if cpu == 'x86'
+  xen_targets = ['i386-softmmu']
+elif cpu == 'x86_64'
   xen_targets = ['i386-softmmu', 'x86_64-softmmu']
-elif cpu in ['arm', 'aarch64']
+elif cpu == 'arm'
+  # i386 emulator provides xenpv machine type for multiple architectures
+  xen_targets = ['i386-softmmu']
+elif cpu == 'aarch64'
   # i386 emulator provides xenpv machine type for multiple architectures
   xen_targets = ['i386-softmmu', 'x86_64-softmmu', 'aarch64-softmmu']
 else