Blame 0001-fix-qemu-build-with-xen-4.18.0.patch

d047f9
From 3a2e5ecdde13bc4eb7f173f6cb36b1a6c752aa1f Mon Sep 17 00:00:00 2001
d047f9
Message-ID: <3a2e5ecdde13bc4eb7f173f6cb36b1a6c752aa1f.1701978796.git.m.a.young@durham.ac.uk>
d047f9
From: Michael Young <m.a.young@durham.ac.uk>
d047f9
Date: Thu, 7 Dec 2023 19:49:20 +0000
d047f9
Subject: [PATCH] fix qemu build with xen-4.18.0
d047f9
d047f9
---
d047f9
 include/hw/xen/xen_native.h | 2 +-
d047f9
 1 file changed, 1 insertion(+), 1 deletion(-)
d047f9
d047f9
diff --git a/include/hw/xen/xen_native.h b/include/hw/xen/xen_native.h
d047f9
index 6f09c48823..04b1ef4d34 100644
d047f9
--- a/include/hw/xen/xen_native.h
d047f9
+++ b/include/hw/xen/xen_native.h
d047f9
@@ -532,7 +532,7 @@ static inline int xendevicemodel_set_irq_level(xendevicemodel_handle *dmod,
d047f9
 }
d047f9
 #endif
d047f9
 
d047f9
-#if CONFIG_XEN_CTRL_INTERFACE_VERSION <= 41700
d047f9
+#if CONFIG_XEN_CTRL_INTERFACE_VERSION >= 41700
d047f9
 #define GUEST_VIRTIO_MMIO_BASE   xen_mk_ullong(0x02000000)
d047f9
 #define GUEST_VIRTIO_MMIO_SIZE   xen_mk_ullong(0x00100000)
d047f9
 #define GUEST_VIRTIO_MMIO_SPI_FIRST   33
d047f9
-- 
d047f9
2.43.0
d047f9