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 --- samples/lspci.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'samples/lspci.c') diff --git a/samples/lspci.c b/samples/lspci.c index 1a25ff6..010cd7a 100644 --- a/samples/lspci.c +++ b/samples/lspci.c @@ -50,7 +50,10 @@ int main(void) .sn_hi = 0xcafebabe }; struct pmcap pm = { .hdr.id = PCI_CAP_ID_PM, .pmcs.nsfrst = 0x1 }; /* Required for lspci to report extended caps. */ - struct pxcap px = { .hdr.id = PCI_CAP_ID_EXP }; + struct pxcap px = { + .hdr.id = PCI_CAP_ID_EXP, + .pxdcap = {.flrc = 0x1} + }; vfu_ctx_t *vfu_ctx = vfu_create_ctx(VFU_TRANS_SOCK, "", LIBVFIO_USER_FLAG_ATTACH_NB, NULL, -- cgit v1.1