vhost-user: only initialize queue 0 CharBackend
commit5d300164d00cf9d37a4481831d2c993255dfa0e8
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 22 Oct 2016 09:52:57 +0000 (22 12:52 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 24 Oct 2016 13:27:21 +0000 (24 15:27 +0200)
tree8368920176be94deb96de54c8b1c9e4f29527f6a
parent386f07d1fc02fb4316039994b855c4feb9b091ce
vhost-user: only initialize queue 0 CharBackend

All the queues share the same chardev. Initialize only the first queue
CharBackend, and pass it to other queues. This will allow to claim the
chardev only once in a later change.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20161022095318.17775-18-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
net/vhost-user.c