OSDN Git Service

virtio-gpu: disallow vIOMMU
authorPeter Xu <peterx@redhat.com>
Wed, 31 Jan 2018 04:04:01 +0000 (12:04 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 2 Feb 2018 07:53:22 +0000 (08:53 +0100)
commit34e304e97576a9e17680c868c00ff524a981007b
tree31bc30eb7ef4f43b1382cc9d1162fd653e60f742
parentb05631954d6dfe93340d516660397e2c1a2a5dd6
virtio-gpu: disallow vIOMMU

virtio-gpu has special code path that bypassed vIOMMU protection.  So
for now let's disable iommu_platform for the device until we fully
support that (if needed).

After the patch, both virtio-vga and virtio-gpu won't allow to boot with
iommu_platform parameter set.

CC: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-id: 20180131040401.3550-1-peterx@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/virtio-gpu-pci.c
hw/display/virtio-gpu.c