pci: Add a memory attribute for pre-translated DMA operations
The address_type bit will be set to PCI_AT_TRANSLATED by devices that use cached addresses obtained via ATS. Signed-off-by: Clement Mathieu--Drif <clement.mathieu--drif@eviden.com> Message-Id: <20250628180226.133285-2-clement.mathieu--drif@eviden.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
4bf06bcf07
commit
06895f7948
2 changed files with 12 additions and 0 deletions
|
|
@ -54,6 +54,9 @@ typedef struct MemTxAttrs {
|
|||
*/
|
||||
unsigned int pid:8;
|
||||
|
||||
/* PCI - IOMMU operations, see PCIAddressType */
|
||||
unsigned int address_type:1;
|
||||
|
||||
/*
|
||||
* Bus masters which don't specify any attributes will get this
|
||||
* (via the MEMTXATTRS_UNSPECIFIED constant), so that we can
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue