qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix qemu build with xen-4.18.0
@ 2023-12-07 23:12 Michael Young
  2023-12-08  8:47 ` Richard W.M. Jones
  2023-12-08  9:25 ` Daniel P. Berrangé
  0 siblings, 2 replies; 15+ messages in thread
From: Michael Young @ 2023-12-07 23:12 UTC (permalink / raw)
  To: qemu-devel; +Cc: Michael Young

Builds of qemu-8.2.0rc2 with xen-4.18.0 are currently failing
with errors like
../hw/arm/xen_arm.c:74:5: error: ‘GUEST_VIRTIO_MMIO_SPI_LAST’ undeclared (first use in this function)
   74 |    (GUEST_VIRTIO_MMIO_SPI_LAST - GUEST_VIRTIO_MMIO_SPI_FIRST)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~

as there is an incorrect comparision in include/hw/xen/xen_native.h
which means that settings like GUEST_VIRTIO_MMIO_SPI_LAST
aren't being defined for xen-4.18.0

Signed-off-by: Michael Young <m.a.young@durham.ac.uk>
---
 include/hw/xen/xen_native.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/hw/xen/xen_native.h b/include/hw/xen/xen_native.h
index 6f09c48823..04b1ef4d34 100644
--- a/include/hw/xen/xen_native.h
+++ b/include/hw/xen/xen_native.h
@@ -532,7 +532,7 @@ static inline int xendevicemodel_set_irq_level(xendevicemodel_handle *dmod,
 }
 #endif
 
-#if CONFIG_XEN_CTRL_INTERFACE_VERSION <= 41700
+#if CONFIG_XEN_CTRL_INTERFACE_VERSION >= 41700
 #define GUEST_VIRTIO_MMIO_BASE   xen_mk_ullong(0x02000000)
 #define GUEST_VIRTIO_MMIO_SIZE   xen_mk_ullong(0x00100000)
 #define GUEST_VIRTIO_MMIO_SPI_FIRST   33
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-12-12 16:31 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-07 23:12 [PATCH] fix qemu build with xen-4.18.0 Michael Young
2023-12-08  8:47 ` Richard W.M. Jones
2023-12-08  9:59   ` Richard W.M. Jones
2023-12-08 10:00   ` Richard W.M. Jones
2023-12-08  9:25 ` Daniel P. Berrangé
2023-12-08 10:59   ` Peter Maydell
2023-12-08 11:34     ` Daniel P. Berrangé
2023-12-08 22:49   ` Stefano Stabellini
2023-12-12 14:19     ` Anthony PERARD
2023-12-12 14:36       ` Peter Maydell
2023-12-12 15:35       ` Volodymyr Babchuk
2023-12-12 15:47         ` Stefan Hajnoczi
2023-12-12 16:02           ` Volodymyr Babchuk
2023-12-12 16:29             ` Stefan Hajnoczi
2023-12-12 16:00         ` Anthony PERARD

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).