Message ID | 1529031683-27458-2-git-send-email-jasowang@redhat.com |
---|---|
State | New |
Headers | show |
Series | [PULL,1/4] tap: set vhostfd passed from qemu cli to non-blocking | expand |
diff --git a/net/tap.c b/net/tap.c index de05f20..2126f48 100644 --- a/net/tap.c +++ b/net/tap.c @@ -40,6 +40,7 @@ #include "qemu-common.h" #include "qemu/cutils.h" #include "qemu/error-report.h" +#include "qemu/sockets.h" #include "net/tap.h" @@ -693,6 +694,7 @@ static void net_init_tap_one(const NetdevTapOptions *tap, NetClientState *peer, } return; } + qemu_set_nonblock(vhostfd); } else { vhostfd = open("/dev/vhost-net", O_RDWR); if (vhostfd < 0) {