diff options
author | Swapnil Ingle <swapnil.ingle@nutanix.com> | 2021-05-27 13:49:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 13:49:57 +0200 |
commit | aaa19498e194368c80f2b12b7f380c911f98d9cc (patch) | |
tree | 04616539ec3b172782ec26555ef21e1d4cfd5994 /test/py | |
parent | e0690cf179293d983cb9a7837e7fa2ebc0308d30 (diff) | |
download | libvfio-user-aaa19498e194368c80f2b12b7f380c911f98d9cc.zip libvfio-user-aaa19498e194368c80f2b12b7f380c911f98d9cc.tar.gz libvfio-user-aaa19498e194368c80f2b12b7f380c911f98d9cc.tar.bz2 |
Fix struct pxcap (#534)
* Added missing reserved bits and renamed per to rer nameing as the
nvme specs
* Add pxcap capability in lspci test
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Reviewed-by: John Levon <john.levon@nutanix.com>
Diffstat (limited to 'test/py')
-rw-r--r-- | test/py/test_pci_caps.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/py/test_pci_caps.py b/test/py/test_pci_caps.py index d510727..88a9b7c 100644 --- a/test/py/test_pci_caps.py +++ b/test/py/test_pci_caps.py @@ -309,7 +309,7 @@ def test_pci_cap_write_px(): #flrc cap = struct.pack("ccHHcc52c", to_byte(PCI_CAP_ID_EXP), b'\0', 0, 0, b'\0', - b'\x02', *[b'\0' for _ in range(52)]) + b'\x10', *[b'\0' for _ in range(52)]) pos = vfu_pci_add_capability(ctx, pos=cap_offsets[5], flags=0, data=cap) assert pos == cap_offsets[5] |