aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-05-04 16:22:31 +0100
committerGitHub <noreply@github.com>2021-05-04 16:22:31 +0100
commitf87e78fcf904688846c9d4490397f3bdf07d424f (patch)
treeba77308e16bacbfc228c12800500dcbbab143761 /include
parent1b8f3e66037b3cb59fec6c0fe778c8b3734b7093 (diff)
downloadlibvfio-user-f87e78fcf904688846c9d4490397f3bdf07d424f.zip
libvfio-user-f87e78fcf904688846c9d4490397f3bdf07d424f.tar.gz
libvfio-user-f87e78fcf904688846c9d4490397f3bdf07d424f.tar.bz2
stop using struct vfio_device_info (#456)
This struct from vfio.h has grown larger in newer Linux versions; this breaks older clients, as now the server would require the larger size. Replace with our own definition. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'include')
-rw-r--r--include/vfio-user.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/vfio-user.h b/include/vfio-user.h
index 11eb366..053ead2 100644
--- a/include/vfio-user.h
+++ b/include/vfio-user.h
@@ -96,6 +96,17 @@ struct vfio_user_version {
uint8_t data[];
} __attribute__((packed));
+/*
+ * Similar to vfio_device_info, but without caps (yet).
+ */
+struct vfio_user_device_info {
+ uint32_t argsz;
+ /* VFIO_DEVICE_FLAGS_* */
+ uint32_t flags;
+ uint32_t num_regions;
+ uint32_t num_irqs;
+} __attribute__((packed));
+
struct vfio_user_dma_region {
uint64_t addr;
uint64_t size;