mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-07 14:32:23 +00:00
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>
This commit is contained in:
parent
f66228053e
commit
b99f783106
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user