mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
pcie: Add a simple PCIe ACS (Access Control Services) helper function
Implementing an ACS capability on downstream ports and multifunction endpoints indicates isolation and IOMMU visibility to a finer granularity. This creates smaller IOMMU groups in the guest and thus more flexibility in assigning endpoints to guest userspace or an L2 guest. Signed-off-by: Knut Omang <knut.omang@oracle.com> Message-Id: <07489975121696f5573b0a92baaf3486ef51e35d.1550768238.git-series.knut.omang@oracle.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
parent
a1fe0b8f27
commit
db891a9ba3
3 changed files with 48 additions and 0 deletions
|
@ -175,4 +175,8 @@ typedef enum PCIExpLinkWidth {
|
|||
PCI_ERR_COR_INTERNAL | \
|
||||
PCI_ERR_COR_HL_OVERFLOW)
|
||||
|
||||
/* ACS */
|
||||
#define PCI_ACS_VER 0x1
|
||||
#define PCI_ACS_SIZEOF 8
|
||||
|
||||
#endif /* QEMU_PCIE_REGS_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue