Lines Matching refs:badvaddr

49 	unsigned long badvaddr = vcpu->arch.host_cp0_badvaddr;  in kvm_trap_emul_no_handler()  local
60 exccode, opc, inst, badvaddr, in kvm_trap_emul_no_handler()
189 unsigned long badvaddr = vcpu->arch.host_cp0_badvaddr; in kvm_trap_emul_handle_tlb_mod() local
195 if (KVM_GUEST_KSEGX(badvaddr) < KVM_GUEST_KSEG0 in kvm_trap_emul_handle_tlb_mod()
196 || KVM_GUEST_KSEGX(badvaddr) == KVM_GUEST_KSEG23) { in kvm_trap_emul_handle_tlb_mod()
202 entryhi = (badvaddr & VPN2_MASK) | in kvm_trap_emul_handle_tlb_mod()
215 if (unlikely(!TLB_IS_VALID(*tlb, badvaddr))) { in kvm_trap_emul_handle_tlb_mod()
224 if (!TLB_IS_DIRTY(*tlb, badvaddr)) { in kvm_trap_emul_handle_tlb_mod()
229 if (kvm_mips_handle_mapped_seg_tlb_fault(vcpu, tlb, badvaddr, in kvm_trap_emul_handle_tlb_mod()
234 } else if (KVM_GUEST_KSEGX(badvaddr) == KVM_GUEST_KSEG0) { in kvm_trap_emul_handle_tlb_mod()
235 if (kvm_mips_handle_kseg0_tlb_fault(badvaddr, vcpu, true) < 0) in kvm_trap_emul_handle_tlb_mod()
249 unsigned long badvaddr = vcpu->arch.host_cp0_badvaddr; in kvm_trap_emul_handle_tlb_miss() local
254 if (((badvaddr & PAGE_MASK) == KVM_GUEST_COMMPAGE_ADDR) in kvm_trap_emul_handle_tlb_miss()
256 if (kvm_mips_handle_commpage_tlb_fault(badvaddr, vcpu) < 0) { in kvm_trap_emul_handle_tlb_miss()
260 } else if (KVM_GUEST_KSEGX(badvaddr) < KVM_GUEST_KSEG0 in kvm_trap_emul_handle_tlb_miss()
261 || KVM_GUEST_KSEGX(badvaddr) == KVM_GUEST_KSEG23) { in kvm_trap_emul_handle_tlb_miss()
263 store ? "ST" : "LD", cause, opc, badvaddr); in kvm_trap_emul_handle_tlb_miss()
282 } else if (KVM_GUEST_KSEGX(badvaddr) == KVM_GUEST_KSEG0) { in kvm_trap_emul_handle_tlb_miss()
287 if (kvm_mips_handle_kseg0_tlb_fault(badvaddr, vcpu, store) < 0) in kvm_trap_emul_handle_tlb_miss()
290 && (KSEGX(badvaddr) == CKSEG0 || KSEGX(badvaddr) == CKSEG1)) { in kvm_trap_emul_handle_tlb_miss()
298 store ? "ST" : "LD", cause, opc, badvaddr); in kvm_trap_emul_handle_tlb_miss()
320 unsigned long badvaddr = vcpu->arch.host_cp0_badvaddr; in kvm_trap_emul_handle_addr_err_st() local
325 && (KSEGX(badvaddr) == CKSEG0 || KSEGX(badvaddr) == CKSEG1)) { in kvm_trap_emul_handle_addr_err_st()
329 cause, opc, badvaddr); in kvm_trap_emul_handle_addr_err_st()
339 unsigned long badvaddr = vcpu->arch.host_cp0_badvaddr; in kvm_trap_emul_handle_addr_err_ld() local
343 if (KSEGX(badvaddr) == CKSEG0 || KSEGX(badvaddr) == CKSEG1) { in kvm_trap_emul_handle_addr_err_ld()
347 cause, opc, badvaddr); in kvm_trap_emul_handle_addr_err_ld()