vhost: introduce new VhostOps vhost_force_iommu
authorCindy Lu <lulu@redhat.com>
Wed, 1 Jul 2020 14:55:34 +0000 (22:55 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 3 Jul 2020 11:57:04 +0000 (07:57 -0400)
commitf6c99c3438c09706694f7bf1f3057c36d1bd0c21
tree9bbc8b2bf5b9479c6903aeced911cc64888a2f08
parentb4ab225c34944658ddff62e4ee8127c3838bcf1d
vhost: introduce new VhostOps vhost_force_iommu

This patch introduces new VhostOps vhost_force_iommu callback
to force enable features bit VIRTIO_F_IOMMU_PLATFORM.

Signed-off-by: Cindy Lu <lulu@redhat.com>
Message-Id: <20200701145538.22333-11-lulu@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
include/hw/virtio/vhost-backend.h