virtio: force VIRTIO_F_IOMMU_PLATFORM
commit2943b53f682f54548e7ddcf2ebb6c6d12d8dc821
authorJason Wang <jasowang@redhat.com>
Tue, 17 Jan 2017 04:01:00 +0000 (17 12:01 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jan 2017 21:00:31 +0000 (19 23:00 +0200)
treee995398fca685fe0d9df6b0889961b782cf9bdd3
parent6bdc21c050a2a7b92cbbd0b2a1f8934e9b5f896f
virtio: force VIRTIO_F_IOMMU_PLATFORM

We allow vhost to clear VIRITO_F_IOMMU_PLATFORM which is wrong since
VIRTIO_F_IOMMU_PLATFORM is mandatory for security. Fixing this by
enforce it after vdc->get_features().

Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-bus.c