aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorCindy Lu <lulu@redhat.com>2020-10-16 11:09:09 +0800
committerMichael S. Tsirkin <mst@redhat.com>2020-11-03 16:39:05 -0500
commit1bc211a166be2c98f98852124b6fdb61e0b0be32 (patch)
tree7435a1030841347cbdd6dbf15a068bf491b2fc35 /net
parent57b3a7d81bd7b5fb846ab5c05597a853259a1853 (diff)
downloadqemu-1bc211a166be2c98f98852124b6fdb61e0b0be32.zip
qemu-1bc211a166be2c98f98852124b6fdb61e0b0be32.tar.gz
qemu-1bc211a166be2c98f98852124b6fdb61e0b0be32.tar.bz2
net: Add vhost-vdpa in show_netdevs()
Fix the bug that while Check qemu supported netdev, there is no vhost-vdpa Signed-off-by: Cindy Lu <lulu@redhat.com> Message-Id: <20201016030909.9522-2-lulu@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'net')
-rw-r--r--net/net.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/net.c b/net/net.c
index 7a2a0fb..794c652 100644
--- a/net/net.c
+++ b/net/net.c
@@ -1050,6 +1050,9 @@ static void show_netdevs(void)
#ifdef CONFIG_POSIX
"vhost-user",
#endif
+#ifdef CONFIG_VHOST_VDPA
+ "vhost-vdpa",
+#endif
};
printf("Available netdev backend types:\n");