meson, xen: fix condition for enabling the Xen accelerator
commit16b6273b4bbdaf44ff1849cb468335ff55db903c
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 9 Dec 2023 14:31:15 +0000 (9 15:31 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Dec 2023 10:18:21 +0000 (12 11:18 +0100)
tree59fcda97483f6ba14c5993535abdd06804ec75c1
parentabf635ddfe3242df907f58967f3c1e6763bbca2d
meson, xen: fix condition for enabling the Xen accelerator

A misspelled condition in xen_native.h is hiding a bug in the enablement of
Xen for qemu-system-aarch64.  The bug becomes apparent when building for
Xen 4.18.

While the i386 emulator provides the xenpv machine type for multiple architectures,
and therefore can be compiled with Xen enabled even when the host is Arm, the
opposite is not true: qemu-system-aarch64 can only be compiled with Xen support
enabled when the host is Arm.

Expand the computation of accelerator_targets['CONFIG_XEN'] similar to what is
already there for KVM.

Cc: Stefano Stabellini <stefano.stabellini@amd.com>
Cc: Richard W.M. Jones <rjones@redhat.com>
Cc: Daniel P. Berrangé <berrange@redhat.com>
Reported-by: Michael Young <m.a.young@durham.ac.uk>
Fixes: 0c8ab1cddd6 ("xen_arm: Create virtio-mmio devices during initialization", 2023-08-30)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build