[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 01/14] exec/memtxattr: add process identifier to the trans
From: |
Alistair Francis |
Subject: |
Re: [PATCH v4 01/14] exec/memtxattr: add process identifier to the transaction attributes |
Date: |
Wed, 26 Jun 2024 10:56:26 +1000 |
On Tue, Jun 25, 2024 at 6:20 AM Daniel Henrique Barboza
<dbarboza@ventanamicro.com> wrote:
>
> From: Tomasz Jeznach <tjeznach@rivosinc.com>
>
> Extend memory transaction attributes with process identifier to allow
> per-request address translation logic to use requester_id / process_id
> to identify memory mapping (e.g. enabling IOMMU w/ PASID translations).
>
> Signed-off-by: Tomasz Jeznach <tjeznach@rivosinc.com>
> Reviewed-by: Frank Chang <frank.chang@sifive.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Alistair
> ---
> include/exec/memattrs.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/include/exec/memattrs.h b/include/exec/memattrs.h
> index 14cdd8d582..46d0725416 100644
> --- a/include/exec/memattrs.h
> +++ b/include/exec/memattrs.h
> @@ -52,6 +52,11 @@ typedef struct MemTxAttrs {
> unsigned int memory:1;
> /* Requester ID (for MSI for example) */
> unsigned int requester_id:16;
> +
> + /*
> + * PCI PASID support: Limited to 8 bits process identifier.
> + */
> + unsigned int pasid:8;
> } MemTxAttrs;
>
> /* Bus masters which don't specify any attributes will get this,
> --
> 2.45.2
>
>
- [PATCH v4 00/14] riscv: QEMU RISC-V IOMMU Support, Daniel Henrique Barboza, 2024/06/24
- [PATCH v4 01/14] exec/memtxattr: add process identifier to the transaction attributes, Daniel Henrique Barboza, 2024/06/24
- [PATCH v4 02/14] hw/riscv: add riscv-iommu-bits.h, Daniel Henrique Barboza, 2024/06/24
- [PATCH v4 03/14] hw/riscv: add RISC-V IOMMU base emulation, Daniel Henrique Barboza, 2024/06/24
- [PATCH v4 04/14] pci-ids.rst: add Red Hat pci-id for RISC-V IOMMU device, Daniel Henrique Barboza, 2024/06/24
- [PATCH v4 05/14] hw/riscv: add riscv-iommu-pci reference device, Daniel Henrique Barboza, 2024/06/24
- [PATCH v4 06/14] hw/riscv/virt.c: support for RISC-V IOMMU PCIDevice hotplug, Daniel Henrique Barboza, 2024/06/24
- [PATCH v4 07/14] test/qtest: add riscv-iommu-pci tests, Daniel Henrique Barboza, 2024/06/24