aboutsummaryrefslogtreecommitdiff
path: root/test/py
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-05-25 16:01:20 +0100
committerGitHub <noreply@github.com>2021-05-25 16:01:20 +0100
commit29d91682128b26482c55a7f87b4849cd05d8ca88 (patch)
treeb6a00871c6c5488e0da9082bdd81e57442ff1c0c /test/py
parentdf72df510f4696fb4835fd42e8f4de2dcb7cf428 (diff)
downloadlibvfio-user-29d91682128b26482c55a7f87b4849cd05d8ca88.zip
libvfio-user-29d91682128b26482c55a7f87b4849cd05d8ca88.tar.gz
libvfio-user-29d91682128b26482c55a7f87b4849cd05d8ca88.tar.bz2
more spec updates (#491)
update spec to v0.9.1 Changes include: - reply message includes the command number - split out message definitions into request/reply sections, and skip the repeated standard header definitions - lots of markup fixes - re-organization for clarity - further documentation of argsz - remove VFIO_USER_VM_INTERRUPT until we have a working implementation - dirty page tracking is optional - fix implementations to match the spec 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/libvfio_user.py14
-rw-r--r--test/py/test_device_get_region_info.py2
2 files changed, 8 insertions, 8 deletions
diff --git a/test/py/libvfio_user.py b/test/py/libvfio_user.py
index faebf03..9faaf83 100644
--- a/test/py/libvfio_user.py
+++ b/test/py/libvfio_user.py
@@ -111,13 +111,13 @@ VFIO_USER_DMA_MAP = 2
VFIO_USER_DMA_UNMAP = 3
VFIO_USER_DEVICE_GET_INFO = 4
VFIO_USER_DEVICE_GET_REGION_INFO = 5
-VFIO_USER_DEVICE_GET_IRQ_INFO = 6
-VFIO_USER_DEVICE_SET_IRQS = 7
-VFIO_USER_REGION_READ = 8
-VFIO_USER_REGION_WRITE = 9
-VFIO_USER_DMA_READ = 10
-VFIO_USER_DMA_WRITE = 11
-VFIO_USER_VM_INTERRUPT = 12
+VFIO_USER_DEVICE_GET_REGION_IO_FDS = 6
+VFIO_USER_DEVICE_GET_IRQ_INFO = 7
+VFIO_USER_DEVICE_SET_IRQS = 8
+VFIO_USER_REGION_READ = 9
+VFIO_USER_REGION_WRITE = 10
+VFIO_USER_DMA_READ = 11
+VFIO_USER_DMA_WRITE = 12
VFIO_USER_DEVICE_RESET = 13
VFIO_USER_DIRTY_PAGES = 14
VFIO_USER_MAX = 15
diff --git a/test/py/test_device_get_region_info.py b/test/py/test_device_get_region_info.py
index 742e689..c81d97b 100644
--- a/test/py/test_device_get_region_info.py
+++ b/test/py/test_device_get_region_info.py
@@ -108,7 +108,7 @@ def test_device_get_region_info_larger_argsz():
vfu_run_ctx(ctx)
result = get_reply(sock)
- assert(len(result) == 32 + 8)
+ assert(len(result) == 32)
info, _ = vfio_region_info(result)