vhost-user: don't merge regions with different fds
commitffe42cc14c770549abc7995a90cf53bca3659b7f
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 21 Feb 2016 15:01:47 +0000 (21 17:01 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 23 Feb 2016 10:55:16 +0000 (23 12:55 +0200)
treed9db618d305306cb65e8931859c740f0355ca4dd
parentb54ca0c3df4f21315bebdb96dc81cdf1abb9b214
vhost-user: don't merge regions with different fds

vhost currently merges regions with contiguious virtual and physical
addresses.  This breaks for vhost-user since that also needs fds to
match.

Add a vhost_ops entry to compare the fds for vhost-user only.

Cc: qemu-stable@nongnu.org
Cc: Victor Kaplansky <victork@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-user.c
hw/virtio/vhost.c
include/hw/virtio/vhost-backend.h