]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RISC-V: KVM: Remove unnecessary HGATP csr_read
authorGuo Ren (Alibaba DAMO Academy) <guoren@kernel.org>
Thu, 21 Aug 2025 14:25:41 +0000 (10:25 -0400)
committerAnup Patel <anup@brainfault.org>
Tue, 16 Sep 2025 05:24:03 +0000 (10:54 +0530)
commit9eac3744db944e887c0a73ce0fb4e5680614dd70
treec2a4e1c883f0a1f4e4cbe14067968e213e722060
parent2b351e3d04be9e1533f26c3464f1e44a5beace30
RISC-V: KVM: Remove unnecessary HGATP csr_read

The HGATP has been set to zero in gstage_mode_detect(), so there
is no need to save the old context. Unify the code convention
with gstage_mode_detect().

Reviewed-by: Fangyu Yu <fangyu.yu@linux.alibaba.com>
Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com>
Signed-off-by: Guo Ren (Alibaba DAMO Academy) <guoren@kernel.org>
Reviewed-by: Nutty Liu <nutty.liu@hotmail.com>
Link: https://lore.kernel.org/r/20250821142542.2472079-3-guoren@kernel.org
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/vmid.c