diff mbox series

[1/4] configure: remove useless code to check for Xen PCI passthrough

Message ID 20201217085005.10644-2-pbonzini@redhat.com (mailing list archive)
State New, archived
Headers show
Series First batch of configure cleanups | expand

Commit Message

Paolo Bonzini Dec. 17, 2020, 8:50 a.m. UTC
meson.build is already doing the same check, so remove it from
configure.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 configure | 12 ------------
 1 file changed, 12 deletions(-)

Comments

Marc-André Lureau Dec. 17, 2020, 10:20 a.m. UTC | #1
On Thu, Dec 17, 2020 at 12:51 PM Paolo Bonzini <pbonzini@redhat.com> wrote:

> meson.build is already doing the same check, so remove it from
> configure.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>

---
>  configure | 12 ------------
>  1 file changed, 12 deletions(-)
>
> diff --git a/configure b/configure
> index 708cf365f0..085a5ad7ff 100755
> --- a/configure
> +++ b/configure
> @@ -2879,18 +2879,6 @@ EOF
>    fi
>  fi
>
> -if test "$xen_pci_passthrough" != "disabled"; then
> -  if test "$xen" = "enabled" && test "$linux" = "yes"; then
> -    xen_pci_passthrough=enabled
> -  else
> -    if test "$xen_pci_passthrough" = "enabled"; then
> -      error_exit "User requested feature Xen PCI Passthrough" \
> -          " but this feature requires /sys from Linux"
> -    fi
> -    xen_pci_passthrough=disabled
> -  fi
> -fi
> -
>  ##########################################
>  # X11 probe
>  if $pkg_config --exists "x11"; then
> --
> 2.29.2
>
>
>
>
diff mbox series

Patch

diff --git a/configure b/configure
index 708cf365f0..085a5ad7ff 100755
--- a/configure
+++ b/configure
@@ -2879,18 +2879,6 @@  EOF
   fi
 fi
 
-if test "$xen_pci_passthrough" != "disabled"; then
-  if test "$xen" = "enabled" && test "$linux" = "yes"; then
-    xen_pci_passthrough=enabled
-  else
-    if test "$xen_pci_passthrough" = "enabled"; then
-      error_exit "User requested feature Xen PCI Passthrough" \
-          " but this feature requires /sys from Linux"
-    fi
-    xen_pci_passthrough=disabled
-  fi
-fi
-
 ##########################################
 # X11 probe
 if $pkg_config --exists "x11"; then