[RFC,v2,12/28] memory: Add arch_id in IOTLBEntry
diff mbox series

Message ID 20180921081819.9203-13-eric.auger@redhat.com
State New
Headers show
Series
  • vSMMUv3/pSMMUv3 2 stage VFIO integration
Related show

Commit Message

Auger Eric Sept. 21, 2018, 8:18 a.m. UTC
TLB entries are usually tagged with some ids such as the asid
or pasid. When propagating an invalidation command from the
guest to the host, we need to pass this id.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
---
 include/exec/memory.h | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/include/exec/memory.h b/include/exec/memory.h
index d4486d4e6b..93150e1450 100644
--- a/include/exec/memory.h
+++ b/include/exec/memory.h
@@ -75,6 +75,7 @@  struct IOMMUTLBEntry {
     hwaddr           translated_addr;
     hwaddr           addr_mask;  /* 0xfff = 4k translation */
     IOMMUAccessFlags perm;
+    uint32_t         arch_id; /* architecture specific ID tagging the TLB */
 };
 
 typedef struct IOMMUConfig {