]> git.proxmox.com Git - mirror_qemu.git/commit
memory/iommu: Add get_attr()
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Tue, 6 Feb 2018 18:08:24 +0000 (11:08 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 6 Feb 2018 18:08:24 +0000 (11:08 -0700)
commitf1334de60b2a43102d2d47918463e6a2cdcfcdeb
tree0665c22f5aade5bc536cc1ad38e7c7d6c760a84d
parent20e0d439a6ded635ec89f6135c08cd5541c68962
memory/iommu: Add get_attr()

This adds get_attr() to IOMMUMemoryRegionClass, like
iommu_ops::domain_get_attr in the Linux kernel.

This defines the first attribute - IOMMU_ATTR_SPAPR_TCE_FD - which
will be used between the pSeries machine and VFIO-PCI.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
include/exec/memory.h
memory.c