From aaa19498e194368c80f2b12b7f380c911f98d9cc Mon Sep 17 00:00:00 2001 From: Swapnil Ingle Date: Thu, 27 May 2021 13:49:57 +0200 Subject: 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 Reviewed-by: John Levon --- test/py/test_pci_caps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/py') 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] -- cgit v1.1