diff options
-rw-r--r-- | test/py/libvfio_user.py | 2 | ||||
-rw-r--r-- | test/py/test_shadow_ioeventfd.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/py/libvfio_user.py b/test/py/libvfio_user.py index fd09fa8..5f0872a 100644 --- a/test/py/libvfio_user.py +++ b/test/py/libvfio_user.py @@ -416,8 +416,8 @@ class vfio_user_sub_region_ioeventfd(Structure): ("type", c.c_uint32), ("flags", c.c_uint32), ("shadow_mem_fd_index", c.c_uint32), + ("shadow_offset", c.c_uint64), ("datamatch", c.c_uint64), - ("shadow_offset", c.c_uint64) ] diff --git a/test/py/test_shadow_ioeventfd.py b/test/py/test_shadow_ioeventfd.py index c7cc4e5..e64c253 100644 --- a/test/py/test_shadow_ioeventfd.py +++ b/test/py/test_shadow_ioeventfd.py @@ -54,7 +54,7 @@ def test_shadow_ioeventfd(): efd = eventfd(flags=EFD_NONBLOCK) ret = vfu_create_ioeventfd(ctx, VFU_PCI_DEV_BAR0_REGION_IDX, efd, 0x8, - 0x16, 0, 0, shadow_fd=fo.fileno(), 0x10) + 0x16, 0, 0, fo.fileno(), 0x10) assert ret == 0 ret = vfu_realize_ctx(ctx) assert ret == 0 @@ -76,7 +76,7 @@ def test_shadow_ioeventfd(): assert ioevent.type == VFIO_USER_IO_FD_TYPE_IOEVENTFD_SHADOW assert ioevent.flags == 0 assert ioevent.datamatch == 0 - assert ioevent.shadow_offset = 0x10 + assert ioevent.shadow_offset == 0x10 assert len(newfds) == 2 # 2 FDs: eventfd plus shadow FD cefd = newfds[0] |