diff options
author | Jag Raman <jag.raman@oracle.com> | 2022-05-23 08:15:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 13:15:47 +0100 |
commit | b52bff72d4eb646a453d19e19ddbd13ed6111a09 (patch) | |
tree | 493045e75edc44a0696dfaffd84896a8e0cdaf7f /test/py/libvfio_user.py | |
parent | b427c6084311f0c620bf4afe7746739e8c887977 (diff) | |
download | libvfio-user-b52bff72d4eb646a453d19e19ddbd13ed6111a09.zip libvfio-user-b52bff72d4eb646a453d19e19ddbd13ed6111a09.tar.gz libvfio-user-b52bff72d4eb646a453d19e19ddbd13ed6111a09.tar.bz2 |
libvfio-user.h: sync VFIO_DEVICE_STATE_XXXX definitions with upstream (#690)
Rename VFIO_DEVICE_STATE_XXXX defines as VFIO_DEVICE_STATE_V1_XXXX.
Upstream renamed these variable to be of the XXXX_V1_XXXX format and
switched an enum for VFIO_DEVICE_STATE_XXXX.
Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'test/py/libvfio_user.py')
-rw-r--r-- | test/py/libvfio_user.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/py/libvfio_user.py b/test/py/libvfio_user.py index 246a4f1..ec9da7b 100644 --- a/test/py/libvfio_user.py +++ b/test/py/libvfio_user.py @@ -111,10 +111,10 @@ VFIO_IRQ_SET_ACTION_TRIGGER = (1 << 5) VFIO_DMA_UNMAP_FLAG_ALL = (1 << 1) -VFIO_DEVICE_STATE_STOP = (0) -VFIO_DEVICE_STATE_RUNNING = (1 << 0) -VFIO_DEVICE_STATE_SAVING = (1 << 1) -VFIO_DEVICE_STATE_RESUMING = (1 << 2) +VFIO_DEVICE_STATE_V1_STOP = (0) +VFIO_DEVICE_STATE_V1_RUNNING = (1 << 0) +VFIO_DEVICE_STATE_V1_SAVING = (1 << 1) +VFIO_DEVICE_STATE_V1_RESUMING = (1 << 2) VFIO_DEVICE_STATE_MASK = ((1 << 3) - 1) |