diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-02-04 08:16:36 -0800 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-02-08 12:40:24 -0800 |
| commit | 807a85dfc8542de3cd9f2d37314006ff638d5761 (patch) | |
| tree | e2c496ef2e8f494928a0bbf93eab0537f7b0c103 | |
| parent | 33614fa3105c3b348d512e0ec466c82bf322e45c (diff) | |
| download | focaccia-qemu-807a85dfc8542de3cd9f2d37314006ff638d5761.tar.gz focaccia-qemu-807a85dfc8542de3cd9f2d37314006ff638d5761.zip | |
meson: Disallow 64-bit on 32-bit Xen emulation
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>
| -rw-r--r-- | meson.build | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 1af8aeb194..911955cfa8 100644 --- a/meson.build +++ b/meson.build @@ -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 |