]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: KVM: Fix incorrect KVM_MAX_VCPUS value
authorAnup Patel <anup.patel@wdc.com>
Wed, 17 Nov 2021 05:00:29 +0000 (10:30 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 22 Nov 2021 05:06:19 +0000 (10:36 +0530)
commit9c0fc64bdec418e92ec67e7d4967fb1e507d8f84
treeed58b2c2b5742184d495c766a15c4c880e1f03ed
parent32b8aac762b961bdb29b53ba6c66ee48e84ea071
RISC-V: KVM: Fix incorrect KVM_MAX_VCPUS value

The KVM_MAX_VCPUS value is supposed to be aligned with number of
VMID bits in the hgatp CSR but the current KVM_MAX_VCPUS value
is aligned with number of ASID bits in the satp CSR.

Fixes: 38d21e5b436a ("RISC-V: Add initial skeletal KVM support")
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
arch/riscv/include/asm/kvm_host.h