Skip to content

Commit f0607e6

Browse files
committed
RISC-V: KVM: Set kvm_riscv_aia_nr_hgei to zero
We hard-code the kvm_riscv_aia_nr_hgei to zero until IMSIC HW guest file support is added in KVM RISC-V. Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Atish Patra <atishp@rivosinc.com> Signed-off-by: Anup Patel <anup@brainfault.org>
1 parent cf55201 commit f0607e6

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

arch/riscv/kvm/aia.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ int kvm_riscv_aia_alloc_hgei(int cpu, struct kvm_vcpu *owner,
408408

409409
raw_spin_unlock_irqrestore(&hgctrl->lock, flags);
410410

411-
/* TODO: To be updated later by AIA in-kernel irqchip support */
411+
/* TODO: To be updated later by AIA IMSIC HW guest file support */
412412
if (hgei_va)
413413
*hgei_va = NULL;
414414
if (hgei_pa)
@@ -610,6 +610,14 @@ int kvm_riscv_aia_init(void)
610610
if (kvm_riscv_aia_nr_hgei)
611611
kvm_riscv_aia_nr_hgei--;
612612

613+
/*
614+
* Number of usable HGEI lines should be minimum of per-HART
615+
* IMSIC guest files and number of bits in HGEIE
616+
*
617+
* TODO: To be updated later by AIA IMSIC HW guest file support
618+
*/
619+
kvm_riscv_aia_nr_hgei = 0;
620+
613621
/* Initialize guest external interrupt line management */
614622
rc = aia_hgei_init();
615623
if (rc)

0 commit comments

Comments
 (0)