diff mbox series

[v1,12/12] meson.build: do not set have_xen_pci_passthrough for aarch64 targets

Message ID 20221015050750.4185-13-vikram.garhwal@amd.com
State New
Headers show
Series Introduce xenpv machine for arm architecture | expand

Commit Message

Vikram Garhwal Oct. 15, 2022, 5:07 a.m. UTC
From: Stefano Stabellini <stefano.stabellini@amd.com>

have_xen_pci_passthrough is only used for Xen x86 VMs.

Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
---
 meson.build | 2 ++
 1 file changed, 2 insertions(+)

Comments

Alex Bennée Oct. 27, 2022, 9:14 a.m. UTC | #1
Vikram Garhwal <vikram.garhwal@amd.com> writes:

> From: Stefano Stabellini <stefano.stabellini@amd.com>
>
> have_xen_pci_passthrough is only used for Xen x86 VMs.
>
> Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>

I think this might want to before 11/12. Anyway:

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>

> ---
>  meson.build | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meson.build b/meson.build
> index 0027d7d195..43e70936ee 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -1454,6 +1454,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()
diff mbox series

Patch

diff --git a/meson.build b/meson.build
index 0027d7d195..43e70936ee 100644
--- a/meson.build
+++ b/meson.build
@@ -1454,6 +1454,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()