summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-12-12 11:14:54 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2023-12-12 11:18:32 +0100
commit4efb13f845d03092337e308c85f16eb384fc62df (patch)
treee801d55267808692af253c761c0343bcde702f52
parent16b6273b4bbdaf44ff1849cb468335ff55db903c (diff)
downloadfocaccia-qemu-4efb13f845d03092337e308c85f16eb384fc62df.tar.gz
focaccia-qemu-4efb13f845d03092337e308c85f16eb384fc62df.zip
xen: fix condition for skipping virtio-mmio defines
GUEST_VIRTIO_MMIO_* was added in Xen 4.17, so only define them
for CONFIG_XEN_CTRL_INTERFACE_VERSIONs up to 4.16.

Reported-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--include/hw/xen/xen_native.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/xen/xen_native.h b/include/hw/xen/xen_native.h
index 6f09c48823..1a5ad693a4 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