[RFC PATCH 1/6] RISC-V: Add more elements to irqbypass vcpu_info

From: fangyu . yu
Date: Mon Aug 11 2025 - 02:11:39 EST


From: Fangyu Yu <fangyu.yu@xxxxxxxxxxxxxxxxx>

To support MRIF mode, we need to add more elements to
let the iommu driver get the ppn of MRIF.

Signed-off-by: Fangyu Yu <fangyu.yu@xxxxxxxxxxxxxxxxx>
---
arch/riscv/include/asm/irq.h | 3 +++
1 file changed, 3 insertions(+)

diff --git a/arch/riscv/include/asm/irq.h b/arch/riscv/include/asm/irq.h
index 8588667cbb5f..6293ac00e051 100644
--- a/arch/riscv/include/asm/irq.h
+++ b/arch/riscv/include/asm/irq.h
@@ -30,6 +30,9 @@ struct riscv_iommu_vcpu_info {
u32 group_index_shift;
u64 gpa;
u64 hpa;
+ u32 host_irq;
+ bool mrif;
+ struct msi_msg *host_msg;
};

#ifdef CONFIG_ACPI
--
2.49.0