intel_iommu: Support IR-only mode without DMA translation
commit8646d9c773d88c3f9a20919a96afa35e6230c1ee
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 14 Mar 2022 14:25:42 +0000 (14 14:25 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 16 May 2022 08:38:39 +0000 (16 04:38 -0400)
tree7e9883f6dc99ebfe2cccd9cde44778dd16954c65
parentdc89f32d92bba795b0665f075b78d8881cf67ab3
intel_iommu: Support IR-only mode without DMA translation

By setting none of the SAGAW bits we can indicate to a guest that DMA
translation isn't supported. Tested by booting Windows 10, as well as
Linux guests with the fix at https://git.kernel.org/torvalds/c/c40aaaac10

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Peter Xu <peterx@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20220314142544.150555-2-dwmw2@infradead.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/intel_iommu.c
include/hw/i386/intel_iommu.h