virtio-iommu: Record whether a probe request has been issued
commit09b4c3d6a2f098e64cc25aa63f388ea943990279
authorEric Auger <eric.auger@redhat.com>
Thu, 19 Oct 2023 13:45:15 +0000 (19 15:45 +0200)
committerCédric Le Goater <clg@redhat.com>
Fri, 3 Nov 2023 08:20:31 +0000 (3 09:20 +0100)
treed9185268de206be3f218a60e59ab88d0cd772ae8
parentb439595a08d79120325de4684698bb7b6516aa8a
virtio-iommu: Record whether a probe request has been issued

Add an IOMMUDevice 'probe_done' flag to record that the driver
already issued a probe request on that device.

This will be useful to double check host reserved regions aren't
notified after the probe and hence are not taken into account
by the driver.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Suggested-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: "Michael S. Tsirkin" <mst@redhat.com>
Tested-by: Yanghang Liu <yanghliu@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/virtio/virtio-iommu.c
include/hw/virtio/virtio-iommu.h