vhost: allow backends to filter memory sections
commit988a27754bbbc45698f7acb54352e5a1ae699514
authorTiwei Bie <tiwei.bie@intel.com>
Thu, 24 May 2018 10:33:31 +0000 (24 18:33 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 24 May 2018 18:14:10 +0000 (24 21:14 +0300)
treee4811d50cf0f70d72791b65867304f0ce87f8438
parent63b88968f139b6a77f2f81e6f1eedf70c0170a85
vhost: allow backends to filter memory sections

This patch introduces a vhost op for vhost backends to allow
them to filter the memory sections that they can handle.

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@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