From 207374c07b90e386462ca6c43405345b84723a8a Mon Sep 17 00:00:00 2001 From: Thanos Makatos Date: Wed, 2 Dec 2020 04:46:28 -0500 Subject: introduce device type Signed-off-by: Thanos Makatos --- samples/null.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'samples/null.c') diff --git a/samples/null.c b/samples/null.c index 99e35cc..4dd50d0 100644 --- a/samples/null.c +++ b/samples/null.c @@ -76,7 +76,8 @@ int main(int argc, char **argv) errx(EXIT_FAILURE, "missing vfio-user socket path"); } - vfu_ctx_t *vfu_ctx = vfu_create_ctx(VFU_TRANS_SOCK, argv[1], 0, NULL); + vfu_ctx_t *vfu_ctx = vfu_create_ctx(VFU_TRANS_SOCK, argv[1], 0, NULL, + VFU_DEV_TYPE_PCI); if (vfu_ctx == NULL) { err(EXIT_FAILURE, "failed to create libvfio-user context"); } -- cgit v1.1