Skip to content

Commit

Permalink
RISC-V: KVM: Set kvm_riscv_aia_nr_hgei to zero
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anup Patel authored and Anup Patel committed Jun 18, 2023
1 parent cf55201 commit f0607e6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion arch/riscv/kvm/aia.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ int kvm_riscv_aia_alloc_hgei(int cpu, struct kvm_vcpu *owner,

raw_spin_unlock_irqrestore(&hgctrl->lock, flags);

/* TODO: To be updated later by AIA in-kernel irqchip support */
/* TODO: To be updated later by AIA IMSIC HW guest file support */
if (hgei_va)
*hgei_va = NULL;
if (hgei_pa)
Expand Down Expand Up @@ -610,6 +610,14 @@ int kvm_riscv_aia_init(void)
if (kvm_riscv_aia_nr_hgei)
kvm_riscv_aia_nr_hgei--;

/*
* Number of usable HGEI lines should be minimum of per-HART
* IMSIC guest files and number of bits in HGEIE
*
* TODO: To be updated later by AIA IMSIC HW guest file support
*/
kvm_riscv_aia_nr_hgei = 0;

/* Initialize guest external interrupt line management */
rc = aia_hgei_init();
if (rc)
Expand Down

0 comments on commit f0607e6

Please sign in to comment.