diff options
| author | Guo Ren (Alibaba DAMO Academy) <guoren@kernel.org> | 2026-05-25 15:19:44 +0530 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2026-05-26 09:05:10 +0530 |
| commit | 59ebc16276c51fa3c462e5a0d21280249755502d (patch) | |
| tree | 313d084600a3bf239d1fd03a5eac302a58957037 /include/linux | |
| parent | 5eb6d68fe24dc856df173700958e90ac0f990333 (diff) | |
irqchip/riscv-imsic: Add nr_guest_files in per-HART local config
Add nr_guest_files in per-HART local config to represent the number of
guest files available on a particular HART whereas the nr_guest_files
in the global config represents the number of guest files available
across all HARTs.
This allows KVM RISC-V to use nr_guest_files from per-HART local
config for asymmetric big.Little systems.
Signed-off-by: Guo Ren (Alibaba DAMO Academy) <guoren@kernel.org>
Acked-by: Thomas Gleixner <tglx@kernel.org>
Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260525094945.3721783-2-anup.patel@oss.qualcomm.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/irqchip/riscv-imsic.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/irqchip/riscv-imsic.h b/include/linux/irqchip/riscv-imsic.h index 4b348836de7a..61af3a5bea09 100644 --- a/include/linux/irqchip/riscv-imsic.h +++ b/include/linux/irqchip/riscv-imsic.h @@ -40,6 +40,9 @@ struct imsic_local_config { phys_addr_t msi_pa; void __iomem *msi_va; + + /* Number of guest interrupt files per-HART */ + u32 nr_guest_files; }; struct imsic_global_config { @@ -68,7 +71,7 @@ struct imsic_global_config { /* Number of guest interrupt identities */ u32 nr_guest_ids; - /* Number of guest interrupt files per core */ + /* Number of guest interrupt files across all HARTs */ u32 nr_guest_files; /* Per-CPU IMSIC addresses */ |
