intel_iommu: Only allow interrupt remapping to be enabled if it's supported
commit175f3a59863d7263597011ae86bc57108539ba35
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 14 Mar 2022 14:25:43 +0000 (14 14:25 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 16 May 2022 08:38:40 +0000 (16 04:38 -0400)
treed79d2fd4b1a4725579fcbce9f37c2fd891d171f3
parent8646d9c773d88c3f9a20919a96afa35e6230c1ee
intel_iommu: Only allow interrupt remapping to be enabled if it's supported

We should probably check if we were meant to be exposing IR, before
letting the guest turn the IRE bit on.

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-3-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