Lines Matching refs:kern_mm
542 struct mm_struct *kern_mm = &vcpu->arch.guest_kernel_mm; in kvm_trap_emul_vcpu_init() local
549 kern_mm->pgd = pgd_alloc(kern_mm); in kvm_trap_emul_vcpu_init()
550 if (!kern_mm->pgd) in kvm_trap_emul_vcpu_init()
555 pgd_free(kern_mm, kern_mm->pgd); in kvm_trap_emul_vcpu_init()
1049 struct mm_struct *kern_mm = &vcpu->arch.guest_kernel_mm; in kvm_trap_emul_vcpu_load() local
1058 mm = KVM_GUEST_KERNEL_MODE(vcpu) ? kern_mm : user_mm; in kvm_trap_emul_vcpu_load()
1084 struct mm_struct *kern_mm = &vcpu->arch.guest_kernel_mm; in kvm_trap_emul_check_requests() local
1098 kvm_mips_flush_gva_pt(kern_mm->pgd, KMF_GPA | KMF_KERN); in kvm_trap_emul_check_requests()
1101 set_cpu_context(i, kern_mm, 0); in kvm_trap_emul_check_requests()
1107 mm = KVM_GUEST_KERNEL_MODE(vcpu) ? kern_mm : user_mm; in kvm_trap_emul_check_requests()
1185 struct mm_struct *kern_mm = &vcpu->arch.guest_kernel_mm; in kvm_trap_emul_vcpu_reenter() local
1200 mm = kern_mm; in kvm_trap_emul_vcpu_reenter()