Home
last modified time | relevance | path

Searched refs:cop0 (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.10/arch/mips/kvm/
Demulate.c314 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_count_disabled() local
317 (kvm_read_c0_guest_cause(cop0) & CAUSEF_DC); in kvm_mips_count_disabled()
386 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_read_count_running() local
393 compare = kvm_read_c0_guest_compare(cop0); in kvm_mips_read_count_running()
446 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_read_count() local
450 return kvm_read_c0_guest_count(cop0); in kvm_mips_read_count()
504 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_resume_hrtimer() local
510 compare = kvm_read_c0_guest_compare(cop0); in kvm_mips_resume_hrtimer()
605 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_write_count() local
614 kvm_write_c0_guest_count(cop0, count); in kvm_mips_write_count()
[all …]
Dtrap_emul.c61 kvm_read_c0_guest_status(vcpu->arch.cop0)); in kvm_trap_emul_no_handler()
69 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_trap_emul_handle_cop_unusable() local
78 (kvm_read_c0_guest_status(cop0) & ST0_CU1) == 0) { in kvm_trap_emul_handle_cop_unusable()
187 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_trap_emul_handle_tlb_mod() local
203 (kvm_read_c0_guest_entryhi(cop0) & KVM_ENTRYHI_ASID); in kvm_trap_emul_handle_tlb_mod()
464 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_trap_emul_handle_msa_disabled() local
471 (kvm_read_c0_guest_status(cop0) & (ST0_CU1 | ST0_FR)) == ST0_CU1) { in kvm_trap_emul_handle_msa_disabled()
477 } else if (!(kvm_read_c0_guest_config5(cop0) & MIPS_CONF5_MSAEN)) { in kvm_trap_emul_handle_msa_disabled()
605 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_trap_emul_vcpu_setup() local
618 kvm_write_c0_guest_prid(cop0, 0x00019300); in kvm_trap_emul_vcpu_setup()
[all …]
Dvz.c427 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_vz_restore_timer() local
430 compare = kvm_read_sw_gc0_compare(cop0); in kvm_vz_restore_timer()
431 cause = kvm_read_sw_gc0_cause(cop0); in kvm_vz_restore_timer()
522 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_vz_save_timer() local
538 kvm_write_sw_gc0_cause(cop0, cause); in kvm_vz_save_timer()
539 kvm_write_sw_gc0_compare(cop0, compare); in kvm_vz_save_timer()
868 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_write_maari() local
872 kvm_write_sw_gc0_maari(cop0, ARRAY_SIZE(vcpu->arch.maar) - 1); in kvm_write_maari()
874 kvm_write_sw_gc0_maari(cop0, val); in kvm_write_maari()
881 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_vz_gpsi_cop0() local
[all …]
Dinterrupt.c41 kvm_set_c0_guest_cause(vcpu->arch.cop0, (C_IRQ5 | C_TI)); in kvm_mips_queue_timer_int_cb()
50 kvm_clear_c0_guest_cause(vcpu->arch.cop0, (C_IRQ5 | C_TI)); in kvm_mips_dequeue_timer_int_cb()
64 kvm_set_c0_guest_cause(vcpu->arch.cop0, 1 << (intr + 8)); in kvm_mips_queue_io_int_cb()
73 kvm_clear_c0_guest_cause(vcpu->arch.cop0, 1 << (-intr + 8)); in kvm_mips_dequeue_io_int_cb()
85 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_irq_deliver_cb() local
91 if ((kvm_read_c0_guest_status(cop0) & ST0_IE) in kvm_mips_irq_deliver_cb()
92 && (!(kvm_read_c0_guest_status(cop0) & (ST0_EXL | ST0_ERL))) in kvm_mips_irq_deliver_cb()
93 && (kvm_read_c0_guest_status(cop0) & ie)) { in kvm_mips_irq_deliver_cb()
100 if ((kvm_read_c0_guest_status(cop0) & ST0_EXL) == 0) { in kvm_mips_irq_deliver_cb()
102 kvm_write_c0_guest_epc(cop0, arch->pc); in kvm_mips_irq_deliver_cb()
[all …]
Dmips.c667 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_get_reg() local
697 if (kvm_read_c0_guest_status(cop0) & ST0_FR) in kvm_mips_get_reg()
707 if (idx & 1 && !(kvm_read_c0_guest_status(cop0) & ST0_FR)) in kvm_mips_get_reg()
727 if (!(kvm_read_c0_guest_status(cop0) & ST0_FR)) in kvm_mips_get_reg()
779 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_set_reg() local
831 if (kvm_read_c0_guest_status(cop0) & ST0_FR) in kvm_mips_set_reg()
841 if (idx & 1 && !(kvm_read_c0_guest_status(cop0) & ST0_FR)) in kvm_mips_set_reg()
1114 kvm_read_c0_guest_cause(vcpu->arch.cop0) & C_TI; in kvm_cpu_has_pending_timer()
1120 struct mips_coproc *cop0; in kvm_arch_vcpu_dump_regs() local
1138 cop0 = vcpu->arch.cop0; in kvm_arch_vcpu_dump_regs()
[all …]
Ddyntrans.c114 offsetof(struct kvm_mips_commpage, cop0.reg[rd][sel]); in kvm_mips_trans_mfc0()
116 if (sizeof(vcpu->arch.cop0->reg[0][0]) == 8) in kvm_mips_trans_mfc0()
136 offsetof(struct kvm_mips_commpage, cop0.reg[rd][sel]); in kvm_mips_trans_mtc0()
138 if (sizeof(vcpu->arch.cop0->reg[0][0]) == 8) in kvm_mips_trans_mtc0()
Dcommpage.c31 vcpu->arch.cop0 = &page->cop0; in kvm_mips_commpage_init()
Dstats.c57 if (vcpu->arch.cop0->stat[i][j]) in kvm_mips_dump_stats()
59 vcpu->arch.cop0->stat[i][j]); in kvm_mips_dump_stats()
Dtrace.h325 __entry->epc = kvm_read_c0_guest_epc(vcpu->arch.cop0);
327 __entry->badvaddr = kvm_read_c0_guest_badvaddr(vcpu->arch.cop0);
328 __entry->status = kvm_read_c0_guest_status(vcpu->arch.cop0);
329 __entry->cause = kvm_read_c0_guest_cause(vcpu->arch.cop0);
Dcommpage.h17 struct mips_coproc cop0; member
Dtlb.c90 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_dump_guest_tlbs() local
95 kvm_info("Guest EntryHi: %#lx\n", kvm_read_c0_guest_entryhi(cop0)); in kvm_mips_dump_guest_tlbs()
Dmmu.c1175 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_trap_emul_gva_fault() local
1186 (kvm_read_c0_guest_entryhi(cop0) & KVM_ENTRYHI_ASID)); in kvm_trap_emul_gva_fault()
Dentry.c372 UASM_i_LW(&p, T0, offsetof(struct kvm_vcpu_arch, cop0), K1); in kvm_mips_build_enter_guest()
/Linux-v5.10/arch/mips/include/asm/
Dkvm_host.h108 #define KVM_GUEST_KERNEL_MODE(vcpu) ((kvm_read_c0_guest_status(vcpu->arch.cop0) & (ST0_EXL | ST0_ER…
109 ((kvm_read_c0_guest_status(vcpu->arch.cop0) & KSU_USER) == 0))
372 struct mips_coproc *cop0; member
503 static inline __KVMT##type kvm_read_sw_gc0_##name(struct mips_coproc *cop0) \
505 return cop0->reg[(_reg)][(sel)]; \
507 static inline void kvm_write_sw_gc0_##name(struct mips_coproc *cop0, \
510 cop0->reg[(_reg)][(sel)] = val; \
515 static inline void kvm_set_sw_gc0_##name(struct mips_coproc *cop0, \
518 cop0->reg[(_reg)][(sel)] |= val; \
520 static inline void kvm_clear_sw_gc0_##name(struct mips_coproc *cop0, \
[all …]