Commit 23bfaf77 authored by Jason Wang's avatar Jason Wang
Browse files

vhost_net: don't set backend for the uninitialized virtqueue



We used to set backend unconditionally, this won't work for some
guests (e.g windows driver) who may not initialize all virtqueues. For
kernel backend, this will fail since it may try to validate the rings
during setting backend.

Fixing this by simply skipping the backend set when we find desc is
not ready.

Reviewed-by: default avatarMichael S. <Tsirkin&lt;mst@redhat.com>
Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
parent d8276573
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment