meson.build: do not set have_xen_pci_passthrough for aarch64 targets
authorStefano Stabellini <stefano.stabellini@amd.com>
Thu, 15 Jun 2023 00:03:36 +0000 (17:03 -0700)
committerStefano Stabellini <stefano.stabellini@amd.com>
Thu, 15 Jun 2023 23:46:42 +0000 (16:46 -0700)
have_xen_pci_passthrough is only used for Xen x86 VMs.

Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
meson.build

index 34306a6205ba59bde8603c001881556d89eb4517..481865bfa979f53a1d675f79be0994e5b53e6682 100644 (file)
@@ -1726,6 +1726,8 @@ have_xen_pci_passthrough = get_option('xen_pci_passthrough') \
            error_message: 'Xen PCI passthrough requested but Xen not enabled') \
   .require(targetos == 'linux',
            error_message: 'Xen PCI passthrough not available on this platform') \
+  .require(cpu == 'x86'  or cpu == 'x86_64',
+           error_message: 'Xen PCI passthrough not available on this platform') \
   .allowed()