aboutsummaryrefslogtreecommitdiff
path: root/test/py/test_device_get_region_io_fds.py
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2022-11-22 09:10:27 +0000
committerGitHub <noreply@github.com>2022-11-22 09:10:27 +0000
commit14c0bc58e7278271ba22e6d31480da550db69a0c (patch)
tree3c71a37a030e0ece5dfa81f92041d6327032f53a /test/py/test_device_get_region_io_fds.py
parentb975ee6e184884b63c654d2414f013c645c8a92e (diff)
downloadlibvfio-user-14c0bc58e7278271ba22e6d31480da550db69a0c.zip
libvfio-user-14c0bc58e7278271ba22e6d31480da550db69a0c.tar.gz
libvfio-user-14c0bc58e7278271ba22e6d31480da550db69a0c.tar.bz2
allow shadow memory offset per shadow ioeventfd (#703)
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com> Reviewed-by: John Levon <john.levon@nutanix.com>
Diffstat (limited to 'test/py/test_device_get_region_io_fds.py')
-rw-r--r--test/py/test_device_get_region_io_fds.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/py/test_device_get_region_io_fds.py b/test/py/test_device_get_region_io_fds.py
index 924f462..b9c8d93 100644
--- a/test/py/test_device_get_region_io_fds.py
+++ b/test/py/test_device_get_region_io_fds.py
@@ -225,7 +225,7 @@ def test_device_get_region_io_fds_full():
[out] = struct.unpack("@Q", out)
assert out == 1
assert ioevents[i].size == IOEVENT_SIZE
- assert ioevents[i].offset == 40 - (IOEVENT_SIZE * i)
+ assert ioevents[i].gpa_offset == 40 - (IOEVENT_SIZE * i)
assert ioevents[i].type == VFIO_USER_IO_FD_TYPE_IOEVENTFD
for i in newfds:
@@ -284,11 +284,11 @@ def test_device_get_region_io_fds_fds_read_write_dupe_fd():
[out] = struct.unpack("@Q", out)
assert out == 1
assert ioevents[i].size == IOEVENT_SIZE
- assert ioevents[i].offset == 56 - (IOEVENT_SIZE * i)
+ assert ioevents[i].gpa_offset == 56 - (IOEVENT_SIZE * i)
assert ioevents[i].type == VFIO_USER_IO_FD_TYPE_IOEVENTFD
assert ioevents[0].fd_index == ioevents[1].fd_index
- assert ioevents[0].offset != ioevents[1].offset
+ assert ioevents[0].gpa_offset != ioevents[1].gpa_offset
os.write(newfds[ioevents[0].fd_index], c.c_ulonglong(1))