Thread (31 messages) 31 messages, 1 author, 2023-12-16
STALE946d REVIEWED: 1 (0M)
Revisions (11)
  1. v6 [diff vs current]
  2. v7 [diff vs current]
  3. v8 [diff vs current]
  4. v9 [diff vs current]
  5. v10 [diff vs current]
  6. v11 [diff vs current]
  7. v12 [diff vs current]
  8. v13 [diff vs current]
  9. v14 [diff vs current]
  10. v15 current
  11. v17 [diff vs current]

[PATCH RFC v15 18/30] virt: gunyah: Add IO handlers

From: Elliot Berman <hidden>
Date: 2023-12-16 00:21:23
Also in: linux-arm-kernel, linux-arm-msm, linux-doc, lkml
Subsystem: the rest · Maintainer: Linus Torvalds

Add framework for VM functions to handle stage-2 write faults from Gunyah
guest virtual machines. IO handlers have a range of addresses which they
apply to. Optionally, they may apply to only when the value written
matches the IO handler's value.

Reviewed-by: Alex Elder <redacted>
Co-developed-by: Prakruthi Deepak Heragu <redacted>
Signed-off-by: Prakruthi Deepak Heragu <redacted>
Signed-off-by: Elliot Berman <redacted>
---
 drivers/virt/gunyah/vm_mgr.h | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/drivers/virt/gunyah/vm_mgr.h b/drivers/virt/gunyah/vm_mgr.h
index d2f6ac212169..5d1ebce678ad 100644
--- a/drivers/virt/gunyah/vm_mgr.h
+++ b/drivers/virt/gunyah/vm_mgr.h
@@ -74,4 +74,6 @@ int gunyah_vm_provide_folio(struct gunyah_vm *ghvm, struct folio *folio,
 int gunyah_vm_reclaim_folio(struct gunyah_vm *ghvm, u64 gfn);
 void gunyah_vm_reclaim_memory(struct gunyah_vm *ghvm);
 
+int gunyah_vm_mmio_write(struct gunyah_vm *ghvm, u64 addr, u32 len, u64 data);
+
 #endif
-- 
2.43.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help