[RFC PATCH v2 10/18] RISC-V: Define irqbypass vcpu_info

Andrew Jones
2025-09-20T20:39:06Z

The vcpu_info parameter to irq_set_vcpu_affinity() effectively
defines an arch specific IOMMU <=> hypervisor protocol. Provide
a definition for the RISCV IOMMU.

Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
---
arch/riscv/include/asm/irq.h | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/arch/riscv/include/asm/irq.h b/arch/riscv/include/asm/irq.h
index 59c975f750c9..27ff169d1b77 100644
--- a/arch/riscv/include/asm/irq.h
+++ b/arch/riscv/include/asm/irq.h
@@ -25,6 +25,15 @@ struct fwnode_handle *riscv_get_intc_hwnode(void);
int riscv_get_hart_index(struct fwnode_handle *fwnode, u32 logical_index,
u32 *hart_index);

+struct riscv_iommu_ir_vcpu_info {
+ u64 gpa;
+ u64 hpa;
+ u64 msi_addr_mask;
+ u64 msi_addr_pattern;
+ u32 group_index_bits;
+ u32 group_index_shift;
+};
+
#ifdef CONFIG_ACPI

enum riscv_irqchip_type {
--
2.49.0