From f87e78fcf904688846c9d4490397f3bdf07d424f Mon Sep 17 00:00:00 2001 From: John Levon Date: Tue, 4 May 2021 16:22:31 +0100 Subject: 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 Reviewed-by: Thanos Makatos --- include/vfio-user.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') 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; -- cgit v1.1