Messages in this thread Patch in this message | | | From | Elliot Berman <> | Date | Fri, 15 Dec 2023 16:20:59 -0800 | Subject | [PATCH RFC v15 18/30] virt: gunyah: Add IO handlers |
| |
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 <elder@linaro.org> Co-developed-by: Prakruthi Deepak Heragu <quic_pheragu@quicinc.com> Signed-off-by: Prakruthi Deepak Heragu <quic_pheragu@quicinc.com> Signed-off-by: Elliot Berman <quic_eberman@quicinc.com> --- 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
| |