diff options
| author | Jason Wang | 2022-10-28 08:14:34 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2022-11-07 20:08:17 +0100 |
| commit | da8d439c8048f685e0333ae468b7520b82925e75 (patch) | |
| tree | c1eea1f132efe47af5d7afa0f675c41d46c4061e /include/hw/loader.h | |
| parent | intel-iommu: don't warn guest errors when getting rid2pasid entry (diff) | |
| download | qemu-da8d439c8048f685e0333ae468b7520b82925e75.tar.gz qemu-da8d439c8048f685e0333ae468b7520b82925e75.tar.xz qemu-da8d439c8048f685e0333ae468b7520b82925e75.zip | |
intel-iommu: drop VTDBus
We introduce VTDBus structure as an intermediate step for searching
the address space. This works well with SID based matching/lookup. But
when we want to support SID plus PASID based address space lookup,
this intermediate steps turns out to be a burden. So the patch simply
drops the VTDBus structure and use the PCIBus and devfn as the key for
the g_hash_table(). This simplifies the codes and the future PASID
extension.
To prevent being slower for past vtd_find_as_from_bus_num() callers, a
vtd_as cache indexed by the bus number is introduced to store the last
recent search result of a vtd_as belongs to a specific bus.
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20221028061436.30093-3-jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Diffstat (limited to 'include/hw/loader.h')
0 files changed, 0 insertions, 0 deletions
