]> git.proxmox.com Git - mirror_qemu.git/commitdiff
xen: fix condition for skipping virtio-mmio defines
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Dec 2023 10:14:54 +0000 (11:14 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Dec 2023 10:18:32 +0000 (11:18 +0100)
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>
include/hw/xen/xen_native.h

index 6f09c48823b56bf9237cef8fa16051355b3e9e96..1a5ad693a4d5a8b56a656df5b44c19a9d6328bf2 100644 (file)
@@ -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