xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
To: qemu-devel@nongnu.org, xen-devel@lists.xenproject.org,
	Peter Maydell <peter.maydell@linaro.org>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Stefano Stabellini <sstabellini@kernel.org>,
	qemu-arm@nongnu.org
Cc: "Juergen Gross" <jgross@suse.com>,
	"Marcelo Tosatti" <mtosatti@redhat.com>,
	"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
	"Anthony Xu" <anthony.xu@intel.com>,
	"Anoob Soman" <anoob.soman@citrix.com>,
	"Anthony Perard" <anthony.perard@citrix.com>,
	xen-arm@lists.xen.org, "Paul Durrant" <paul.durrant@citrix.com>
Subject: [RFC PATCH 1/3] configure: disable Xen PCI Passthrough on !x86 archs
Date: Mon, 10 Jul 2017 23:57:01 -0300	[thread overview]
Message-ID: <20170711025703.24194-2-f4bug@amsat.org> (raw)
In-Reply-To: <20170711025703.24194-1-f4bug@amsat.org>

linking on Linux debian/stretch/arm64 with libxen-4.8:

    hw/xen/xen_pt.o: In function `xen_pt_pci_read_config':
    qemu/hw/xen/xen_pt.c:206: undefined reference to `xen_shutdown_fatal_error'
    hw/xen/xen_pt.o: In function `xen_igd_passthrough_isa_bridge_create':
    qemu/hw/xen/xen_pt.c:698: undefined reference to `igd_passthrough_isa_bridge_create'
    hw/xen/xen_pt.o: In function `xen_pt_pci_write_config':
    qemu/hw/xen/xen_pt.c:355: undefined reference to `xen_shutdown_fatal_error'
    hw/xen/xen_pt_config_init.o: In function `xen_pt_status_reg_init':
    qemu/hw/xen/xen_pt_config_init.c:281: undefined reference to `xen_shutdown_fatal_error'
    qemu/hw/xen/xen_pt_config_init.c:275: undefined reference to `xen_shutdown_fatal_error'
    hw/xen/xen_pt_graphics.o: In function `get_vgabios':
    qemu/hw/xen/xen_pt_graphics.c:135: undefined reference to `pci_assign_dev_load_option_rom'
    collect2: error: ld returned 1 exit status
    Makefile:197: recipe for target 'qemu-system-aarch64' failed
    make[1]: *** [qemu-system-aarch64] Error 1

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 configure | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 806658c98b..e4b173405a 100755
--- a/configure
+++ b/configure
@@ -2344,8 +2344,15 @@ EOF
 fi
 
 if test "$xen_pci_passthrough" != "no"; then
-  if test "$xen" = "yes" && test "$linux" = "yes"; then
-    xen_pci_passthrough=yes
+  if test "$xen" = "yes"; then
+    case "$cpu" in
+    i386|x32|x86_64)
+        if test "$linux" = "yes"; then
+            xen_pci_passthrough=yes
+        fi ;;
+    *)  echo "Disabling Xen PCI Passthrough (not implemented on $cpu)"
+        xen_pci_passthrough=no ;;
+    esac
   else
     if test "$xen_pci_passthrough" = "yes"; then
       error_exit "User requested feature Xen PCI Passthrough" \
-- 
2.13.2


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2017-07-11  2:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-11  2:57 [RFC PATCH 0/3] disable Xen on ARM (until supported) Philippe Mathieu-Daudé
2017-07-11  2:57 ` Philippe Mathieu-Daudé [this message]
2017-07-11  2:57 ` [RFC PATCH 2/3] xen/mapcache: disable Xen on arm* Philippe Mathieu-Daudé
2017-07-11  2:57 ` [RFC PATCH 3/3] xen/pt: add comments about !x86 archs Philippe Mathieu-Daudé

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170711025703.24194-2-f4bug@amsat.org \
    --to=f4bug@amsat.org \
    --cc=anoob.soman@citrix.com \
    --cc=anthony.perard@citrix.com \
    --cc=anthony.xu@intel.com \
    --cc=jgross@suse.com \
    --cc=mtosatti@redhat.com \
    --cc=paul.durrant@citrix.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=sstabellini@kernel.org \
    --cc=xen-arm@lists.xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).