diff options
author | Fangyu Yu <fangyu.yu@linux.alibaba.com> | 2025-08-21 10:25:40 -0400 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2025-09-16 10:54:01 +0530 |
commit | 2b351e3d04be9e1533f26c3464f1e44a5beace30 (patch) | |
tree | bc5ce8d8d6a1ed8fb65263b3ac4699c88b35ee1b /tools/docs/lib/parse_data_structs.py | |
parent | dbe3d1d1609e171bd26de077abba6ae142de86af (diff) |
RISC-V: KVM: Write hgatp register with valid mode bits
According to the RISC-V Privileged Architecture Spec, when MODE=Bare
is selected,software must write zero to the remaining fields of hgatp.
We have detected the valid mode supported by the HW before, So using a
valid mode to detect how many vmid bits are supported.
Fixes: fd7bb4a251df ("RISC-V: KVM: Implement VMID allocator")
Reviewed-by: Nutty Liu <nutty.liu@hotmail.com>
Reviewed-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Reviewed-by: Guo Ren (Alibaba DAMO Academy) <guoren@kernel.org>
Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com>
Signed-off-by: Guo Ren (Alibaba DAMO Academy) <guoren@kernel.org>
Link: https://lore.kernel.org/r/20250821142542.2472079-2-guoren@kernel.org
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'tools/docs/lib/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions