Files
kernel_arpi/arch/riscv/include/asm
Sean Christopherson 1402857bf1 RISC-V: Use common riscv_cpuid_to_hartid_mask() for both SMP=y and SMP=n
commit 869c70609248102f3a2e95a39b6233ff6ea2c932 upstream.

Use what is currently the SMP=y version of riscv_cpuid_to_hartid_mask()
for both SMP=y and SMP=n to fix a build failure with KVM=m and SMP=n due
to boot_cpu_hartid not being exported.  This also fixes a second bug
where the SMP=n version assumes the sole CPU in the system is in the
incoming mask, which may not hold true in kvm_riscv_vcpu_sbi_ecall() if
the KVM guest VM has multiple vCPUs (on a SMP=n system).

Fixes: 1ef46c231d ("RISC-V: Implement new SBI v0.2 extensions")
Reported-by: Adam Borowski <kilobyte@angband.pl>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-27 11:02:50 +01:00
..
2021-01-14 15:09:11 -08:00
2021-03-09 20:46:00 -08:00
2021-10-29 08:54:50 -07:00
2021-05-22 22:05:30 -07:00
2021-06-30 20:55:41 -07:00
2021-02-18 23:18:06 -08:00
2021-07-01 11:06:03 -07:00
2021-05-22 10:19:29 -07:00
2021-01-14 15:09:06 -08:00
2021-07-05 20:53:09 -07:00
2021-01-07 19:00:50 -08:00
2021-03-09 18:18:31 -08:00
2021-10-02 13:42:23 -07:00
2021-01-14 15:09:08 -08:00