OSDN Git Service

virtio-iommu: Implement RESV_MEM probe request
authorEric Auger <eric.auger@redhat.com>
Fri, 3 Jul 2020 15:59:42 +0000 (16:59 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 3 Jul 2020 15:59:42 +0000 (16:59 +0100)
commit1733eebb9e75b77120b462814f8f9b03ae918a7a
tree50bf38a34874938c8841f9ecdd1b28bb139e21c2
parentf78069253ccf25c64e19e9889b98e499336f6c6e
virtio-iommu: Implement RESV_MEM probe request

This patch implements the PROBE request. At the moment,
only THE RESV_MEM property is handled. The first goal is
to report iommu wide reserved regions such as the MSI regions
set by the machine code. On x86 this will be the IOAPIC MSI
region, [0xFEE00000 - 0xFEEFFFFF], on ARM this may be the ITS
doorbell.

In the future we may introduce per device reserved regions.
This will be useful when protecting host assigned devices
which may expose their own reserved regions

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 20200629070404.10969-3-eric.auger@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/virtio/trace-events
hw/virtio/virtio-iommu.c
include/hw/virtio/virtio-iommu.h