Commit e41b1355 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin

virtio_balloon: disable VIOMMU support

virtio balloon bypasses the DMA API entirely so does not support the
VIOMMU right now.  It's not clear we need that support, for now let's
just make sure we don't pretend to support it.

Cc: Wei Wang <>
Fixes: 1a937693 ("virtio: new feature to detect IOMMU device quirk")
Signed-off-by: default avatarMichael S. Tsirkin <>
Acked-by: default avatarJason Wang <>
parent 32c1431e
......@@ -663,6 +663,12 @@ static int virtballoon_restore(struct virtio_device *vdev)
static int virtballoon_validate(struct virtio_device *vdev)
__virtio_clear_bit(vdev, VIRTIO_F_IOMMU_PLATFORM);
return 0;
static unsigned int features[] = {
......@@ -675,6 +681,7 @@ static struct virtio_driver virtio_balloon_driver = { = KBUILD_MODNAME,
.driver.owner = THIS_MODULE,
.id_table = id_table,
.validate = virtballoon_validate,
.probe = virtballoon_probe,
.remove = virtballoon_remove,
.config_changed = virtballoon_changed,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment