RISC-V: KVM: Drop the _MASK suffix from hgatp.VMID mask defines
authorAnup Patel <apatel@ventanamicro.com>
Mon, 9 Jan 2023 06:25:55 +0000 (11:55 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 21 Apr 2023 12:15:44 +0000 (17:45 +0530)
commite290dbb7f73670e06df7f8ec44c3f502c20707d7
tree8cef484fc7b033591b21f48120d06ff42e8b904a
parent8fe6f7e14c7eeb01c3a1994eba2356400981cb1e
RISC-V: KVM: Drop the _MASK suffix from hgatp.VMID mask defines

The hgatp.VMID mask defines are used before shifting when extracting
VMID value from hgatp CSR value so based on the convention followed
in the other parts of asm/csr.h, the hgatp.VMID mask defines should
not have a _MASK suffix.

While we are here, let's use GENMASK() for hgatp.VMID and hgatp.PPN.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/csr.h
arch/riscv/kvm/mmu.c
arch/riscv/kvm/vmid.c