diff options
author | John Levon <john.levon@nutanix.com> | 2021-09-28 17:34:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-28 17:34:12 +0100 |
commit | e7f0fc73cdab811948adf5227c04f722a7c3105b (patch) | |
tree | 57093aed1a3e368110aa3cc0158620016c30869c /test/py | |
parent | 2789a978b9e710ccb17bc4f7de884743abd63297 (diff) | |
download | libvfio-user-e7f0fc73cdab811948adf5227c04f722a7c3105b.zip libvfio-user-e7f0fc73cdab811948adf5227c04f722a7c3105b.tar.gz libvfio-user-e7f0fc73cdab811948adf5227c04f722a7c3105b.tar.bz2 |
disable VFIO_USER_DEVICE_GET_REGION_IO_FDS on invalid region (#607)
If a region is not set up, asking for its iofds should fail with EINVAL.
Co-authored-by: John Levon <john.levon@nutanix.com>
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'test/py')
-rw-r--r-- | test/py/test_device_get_region_io_fds.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/py/test_device_get_region_io_fds.py b/test/py/test_device_get_region_io_fds.py index 63e3236..2179cf7 100644 --- a/test/py/test_device_get_region_io_fds.py +++ b/test/py/test_device_get_region_io_fds.py @@ -140,7 +140,7 @@ def test_device_get_region_io_fds_no_regions_setup(): index = VFU_PCI_DEV_BAR3_REGION_IDX, count = 0) ret = msg(ctx, sock, VFIO_USER_DEVICE_GET_REGION_IO_FDS, payload, - expect = 0) + expect = errno.EINVAL) def test_device_get_region_io_fds_region_no_mmap(): |