diff options
author | John Levon <john.levon@nutanix.com> | 2021-05-04 16:22:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-04 16:22:31 +0100 |
commit | f87e78fcf904688846c9d4490397f3bdf07d424f (patch) | |
tree | ba77308e16bacbfc228c12800500dcbbab143761 /samples/client.c | |
parent | 1b8f3e66037b3cb59fec6c0fe778c8b3734b7093 (diff) | |
download | libvfio-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 'samples/client.c')
-rw-r--r-- | samples/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/client.c b/samples/client.c index e27a323..fb69ce8 100644 --- a/samples/client.c +++ b/samples/client.c @@ -338,7 +338,7 @@ get_device_region_info(int sock, uint32_t index) } static void -get_device_regions_info(int sock, struct vfio_device_info *client_dev_info) +get_device_regions_info(int sock, struct vfio_user_device_info *client_dev_info) { unsigned int i; @@ -348,7 +348,7 @@ get_device_regions_info(int sock, struct vfio_device_info *client_dev_info) } static void -get_device_info(int sock, struct vfio_device_info *dev_info) +get_device_info(int sock, struct vfio_user_device_info *dev_info) { uint16_t msg_id = 0xb10c; int ret; @@ -1063,7 +1063,7 @@ int main(int argc, char *argv[]) { int ret, sock, irq_fd; struct vfio_user_dma_region *dma_regions; - struct vfio_device_info client_dev_info = {0}; + struct vfio_user_device_info client_dev_info = {0}; int *dma_region_fds; int i; FILE *fp; |