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 /samples/lspci.c | |
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 'samples/lspci.c')
-rw-r--r-- | samples/lspci.c | 5 |
1 files changed, 4 insertions, 1 deletions
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, |