diff options
author | Bibo Mao <maobibo@loongson.cn> | 2024-03-06 04:12:13 +0300 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2024-03-06 04:12:13 +0300 |
commit | b99f783106ea5b2f8c9d74f4d3b1e2f77af9ec6e (patch) | |
tree | 45f81627e8a05a75ba091d696e4cbf15b5852be4 /arch/loongarch/kvm/switch.S | |
parent | f66228053e429bd926505c447d3af2d3d610ed92 (diff) | |
download | linux-b99f783106ea5b2f8c9d74f4d3b1e2f77af9ec6e.tar.xz |
LoongArch: KVM: Remove unnecessary CSR register saving during enter guest
Some CSR registers like CRMD/PRMD are saved during enter VM mode now.
However they are not restored for actual use, so saving for these CSR
registers can be removed.
Reviewed-by: Tianrui Zhao <zhaotianrui@loongson.cn>
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/kvm/switch.S')
-rw-r--r-- | arch/loongarch/kvm/switch.S | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/loongarch/kvm/switch.S b/arch/loongarch/kvm/switch.S index ba976509bfe8..3634431db18a 100644 --- a/arch/loongarch/kvm/switch.S +++ b/arch/loongarch/kvm/switch.S @@ -213,12 +213,6 @@ SYM_FUNC_START(kvm_enter_guest) /* Save host GPRs */ kvm_save_host_gpr a2 - /* Save host CRMD, PRMD to stack */ - csrrd a3, LOONGARCH_CSR_CRMD - st.d a3, a2, PT_CRMD - csrrd a3, LOONGARCH_CSR_PRMD - st.d a3, a2, PT_PRMD - addi.d a2, a1, KVM_VCPU_ARCH st.d sp, a2, KVM_ARCH_HSP st.d tp, a2, KVM_ARCH_HTP |