Skip to content

Commit d8cc4fe

Browse files
bibo-maochenhuacai
authored andcommitted
LoongArch: KVM: Remove duplicated cache attribute setting
Cache attribute comes from GPA->HPA secondary mmu page table and is configured when kvm is enabled. It is the same for all VMs, so remove duplicated cache attribute setting on vCPU context switch. Signed-off-by: Bibo Mao <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent bdb1325 commit d8cc4fe

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

arch/loongarch/kvm/vcpu.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,9 +1548,6 @@ static int _kvm_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
15481548

15491549
/* Restore timer state regardless */
15501550
kvm_restore_timer(vcpu);
1551-
1552-
/* Control guest page CCA attribute */
1553-
change_csr_gcfg(CSR_GCFG_MATC_MASK, CSR_GCFG_MATC_ROOT);
15541551
kvm_make_request(KVM_REQ_STEAL_UPDATE, vcpu);
15551552

15561553
/* Restore hardware PMU CSRs */

0 commit comments

Comments
 (0)