/arch/mips/kvm/ |
D | interrupt.c | 41 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() 66 kvm_set_c0_guest_cause(vcpu->arch.cop0, (C_IRQ0)); in kvm_mips_queue_io_int_cb() 72 kvm_set_c0_guest_cause(vcpu->arch.cop0, (C_IRQ1)); in kvm_mips_queue_io_int_cb() 77 kvm_set_c0_guest_cause(vcpu->arch.cop0, (C_IRQ2)); in kvm_mips_queue_io_int_cb() 94 kvm_clear_c0_guest_cause(vcpu->arch.cop0, (C_IRQ0)); in kvm_mips_dequeue_io_int_cb() 99 kvm_clear_c0_guest_cause(vcpu->arch.cop0, (C_IRQ1)); in kvm_mips_dequeue_io_int_cb() 104 kvm_clear_c0_guest_cause(vcpu->arch.cop0, (C_IRQ2)); in kvm_mips_dequeue_io_int_cb() 122 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_irq_deliver_cb() local 126 if ((kvm_read_c0_guest_status(cop0) & ST0_IE) in kvm_mips_irq_deliver_cb() [all …]
|
D | emulate.c | 313 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_count_disabled() local 316 (kvm_read_c0_guest_cause(cop0) & CAUSEF_DC); in kvm_mips_count_disabled() 385 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_read_count_running() local 392 compare = kvm_read_c0_guest_compare(cop0); in kvm_mips_read_count_running() 445 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_read_count() local 449 return kvm_read_c0_guest_count(cop0); in kvm_mips_read_count() 503 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_resume_hrtimer() local 509 compare = kvm_read_c0_guest_compare(cop0); in kvm_mips_resume_hrtimer() 604 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_write_count() local 613 kvm_write_c0_guest_count(cop0, count); in kvm_mips_write_count() [all …]
|
D | trap_emul.c | 61 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 79 (kvm_read_c0_guest_status(cop0) & ST0_CU1) == 0) { in kvm_trap_emul_handle_cop_unusable() 190 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_trap_emul_handle_tlb_mod() local 207 (kvm_read_c0_guest_entryhi(cop0) & KVM_ENTRYHI_ASID); in kvm_trap_emul_handle_tlb_mod() 476 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_trap_emul_handle_msa_disabled() local 484 (kvm_read_c0_guest_status(cop0) & (ST0_CU1 | ST0_FR)) == ST0_CU1) { in kvm_trap_emul_handle_msa_disabled() 490 } else if (!(kvm_read_c0_guest_config5(cop0) & MIPS_CONF5_MSAEN)) { in kvm_trap_emul_handle_msa_disabled() 613 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_trap_emul_vcpu_setup() local 626 kvm_write_c0_guest_prid(cop0, 0x00019300); in kvm_trap_emul_vcpu_setup() [all …]
|
D | vz.c | 450 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_vz_restore_timer() local 453 compare = kvm_read_sw_gc0_compare(cop0); in kvm_vz_restore_timer() 454 cause = kvm_read_sw_gc0_cause(cop0); in kvm_vz_restore_timer() 545 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_vz_save_timer() local 561 kvm_write_sw_gc0_cause(cop0, cause); in kvm_vz_save_timer() 562 kvm_write_sw_gc0_compare(cop0, compare); in kvm_vz_save_timer() 891 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_write_maari() local 895 kvm_write_sw_gc0_maari(cop0, ARRAY_SIZE(vcpu->arch.maar) - 1); in kvm_write_maari() 897 kvm_write_sw_gc0_maari(cop0, val); in kvm_write_maari() 905 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_vz_gpsi_cop0() local [all …]
|
D | commpage.c | 31 vcpu->arch.cop0 = &page->cop0; in kvm_mips_commpage_init()
|
D | stats.c | 57 if (vcpu->arch.cop0->stat[i][j]) in kvm_mips_dump_stats() 59 vcpu->arch.cop0->stat[i][j]); in kvm_mips_dump_stats()
|
D | dyntrans.c | 114 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()
|
D | mips.c | 654 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_get_reg() local 684 if (kvm_read_c0_guest_status(cop0) & ST0_FR) in kvm_mips_get_reg() 694 if (idx & 1 && !(kvm_read_c0_guest_status(cop0) & ST0_FR)) in kvm_mips_get_reg() 714 if (!(kvm_read_c0_guest_status(cop0) & ST0_FR)) in kvm_mips_get_reg() 766 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_set_reg() local 818 if (kvm_read_c0_guest_status(cop0) & ST0_FR) in kvm_mips_set_reg() 828 if (idx & 1 && !(kvm_read_c0_guest_status(cop0) & ST0_FR)) in kvm_mips_set_reg() 1113 kvm_read_c0_guest_cause(vcpu->arch.cop0) & C_TI; in kvm_cpu_has_pending_timer() 1119 struct mips_coproc *cop0; in kvm_arch_vcpu_dump_regs() local 1137 cop0 = vcpu->arch.cop0; in kvm_arch_vcpu_dump_regs() [all …]
|
D | commpage.h | 17 struct mips_coproc cop0; member
|
D | trace.h | 325 __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);
|
D | tlb.c | 90 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()
|
D | mmu.c | 1209 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_trap_emul_gva_fault() local 1220 (kvm_read_c0_guest_entryhi(cop0) & KVM_ENTRYHI_ASID)); in kvm_trap_emul_gva_fault()
|
D | entry.c | 369 UASM_i_LW(&p, T0, offsetof(struct kvm_vcpu_arch, cop0), K1); in kvm_mips_build_enter_guest()
|
/arch/mips/include/asm/ |
D | kvm_host.h | 104 #define KVM_GUEST_KERNEL_MODE(vcpu) ((kvm_read_c0_guest_status(vcpu->arch.cop0) & (ST0_EXL | ST0_ER… 105 ((kvm_read_c0_guest_status(vcpu->arch.cop0) & KSU_USER) == 0)) 341 struct mips_coproc *cop0; member 469 static inline __KVMT##type kvm_read_sw_gc0_##name(struct mips_coproc *cop0) \ 471 return cop0->reg[(_reg)][(sel)]; \ 473 static inline void kvm_write_sw_gc0_##name(struct mips_coproc *cop0, \ 476 cop0->reg[(_reg)][(sel)] = val; \ 481 static inline void kvm_set_sw_gc0_##name(struct mips_coproc *cop0, \ 484 cop0->reg[(_reg)][(sel)] |= val; \ 486 static inline void kvm_clear_sw_gc0_##name(struct mips_coproc *cop0, \ [all …]
|