qemu-riscv
[Top][All Lists]
Advanced

[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: Jason Chien
Subject: Re: [PATCH v4 01/14] exec/memtxattr: add process identifier to the transaction attributes
Date: Wed, 26 Jun 2024 16:10:16 +0800
User-agent: Mozilla Thunderbird

Reviewed-by: Jason Chien <jason.chien@sifive.com>

On 2024/6/25 上午 04:18, Daniel Henrique Barboza 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>
---
  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,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]