Lines Matching full:cause

258 				 u32 cause)  in kvm_vz_irq_deliver_cb()  argument
287 u32 cause) in kvm_vz_irq_clear_cb() argument
295 * Call to kvm_write_c0_guest_compare() clears Cause.TI in in kvm_vz_irq_clear_cb()
297 * Cause.IP[IPTI] if GuestCtl2 virtual interrupt register not in kvm_vz_irq_clear_cb()
361 * @cause: CP0_Cause register to restore.
367 u32 cause) in _kvm_vz_restore_stimer() argument
376 write_gc0_cause(cause); in _kvm_vz_restore_stimer()
383 * @cause: CP0_Cause register to restore.
385 * Restore hard timer Guest.Count & Guest.Cause taking care to preserve the
389 u32 compare, u32 cause) in _kvm_vz_restore_htimer() argument
406 write_gc0_cause(cause); in _kvm_vz_restore_htimer()
428 u32 cause, compare; in kvm_vz_restore_timer() local
431 cause = kvm_read_sw_gc0_cause(cop0); in kvm_vz_restore_timer()
434 _kvm_vz_restore_stimer(vcpu, compare, cause); in kvm_vz_restore_timer()
464 * @cause: Pointer to write cause value to.
473 u32 cause, compare, before_count, end_count; in _kvm_vz_save_htimer() local
487 cause = read_gc0_cause(); in _kvm_vz_save_htimer()
488 *out_cause = cause; in _kvm_vz_save_htimer()
523 u32 gctl0, compare, cause; in kvm_vz_save_timer() local
531 _kvm_vz_save_htimer(vcpu, &compare, &cause); in kvm_vz_save_timer()
534 cause = read_gc0_cause(); in kvm_vz_save_timer()
538 kvm_write_sw_gc0_cause(cop0, cause); in kvm_vz_save_timer()
551 u32 gctl0, compare, cause; in kvm_vz_lose_htimer() local
560 _kvm_vz_save_htimer(vcpu, &compare, &cause); in kvm_vz_lose_htimer()
563 _kvm_vz_restore_stimer(vcpu, compare, cause); in kvm_vz_lose_htimer()
822 u32 cause = vcpu->arch.host_cp0_cause; in kvm_trap_vz_no_handler() local
823 u32 exccode = (cause & CAUSEF_EXCCODE) >> CAUSEB_EXCCODE; in kvm_trap_vz_no_handler()
830 if (cause & CAUSEF_BD) in kvm_trap_vz_no_handler()
878 u32 *opc, u32 cause, in kvm_vz_gpsi_cop0() argument
892 er = update_pc(vcpu, cause); in kvm_vz_gpsi_cop0()
1077 u32 *opc, u32 cause, in kvm_vz_gpsi_cache() argument
1091 er = update_pc(vcpu, cause); in kvm_vz_gpsi_cache()
1146 u32 *opc, u32 cause, in kvm_vz_gpsi_lwc2() argument
1159 er = update_pc(vcpu, cause); in kvm_vz_gpsi_lwc2()
1214 static enum emulation_result kvm_trap_vz_handle_gpsi(u32 cause, u32 *opc, in kvm_trap_vz_handle_gpsi() argument
1226 if (cause & CAUSEF_BD) in kvm_trap_vz_handle_gpsi()
1234 er = kvm_vz_gpsi_cop0(inst, opc, cause, vcpu); in kvm_trap_vz_handle_gpsi()
1239 er = kvm_vz_gpsi_cache(inst, opc, cause, vcpu); in kvm_trap_vz_handle_gpsi()
1244 er = kvm_vz_gpsi_lwc2(inst, opc, cause, vcpu); in kvm_trap_vz_handle_gpsi()
1252 er = kvm_vz_gpsi_cache(inst, opc, cause, vcpu); in kvm_trap_vz_handle_gpsi()
1277 er = update_pc(vcpu, cause); in kvm_trap_vz_handle_gpsi()
1296 static enum emulation_result kvm_trap_vz_handle_gsfc(u32 cause, u32 *opc, in kvm_trap_vz_handle_gsfc() argument
1307 if (cause & CAUSEF_BD) in kvm_trap_vz_handle_gsfc()
1412 er = update_pc(vcpu, cause); in kvm_trap_vz_handle_gsfc()
1422 static enum emulation_result kvm_trap_vz_handle_ghfc(u32 cause, u32 *opc, in kvm_trap_vz_handle_ghfc() argument
1434 static enum emulation_result kvm_trap_vz_handle_hc(u32 cause, u32 *opc, in kvm_trap_vz_handle_hc() argument
1442 if (cause & CAUSEF_BD) in kvm_trap_vz_handle_hc()
1453 er = update_pc(vcpu, cause); in kvm_trap_vz_handle_hc()
1465 u32 cause, in kvm_trap_vz_no_handler_guest_exit() argument
1474 if (cause & CAUSEF_BD) in kvm_trap_vz_no_handler_guest_exit()
1487 u32 cause = vcpu->arch.host_cp0_cause; in kvm_trap_vz_handle_guest_exit() local
1497 er = kvm_trap_vz_handle_gpsi(cause, opc, vcpu); in kvm_trap_vz_handle_guest_exit()
1501 er = kvm_trap_vz_handle_gsfc(cause, opc, vcpu); in kvm_trap_vz_handle_guest_exit()
1505 er = kvm_trap_vz_handle_hc(cause, opc, vcpu); in kvm_trap_vz_handle_guest_exit()
1509 er = kvm_trap_vz_no_handler_guest_exit(gexccode, cause, opc, in kvm_trap_vz_handle_guest_exit()
1514 er = kvm_trap_vz_no_handler_guest_exit(gexccode, cause, opc, in kvm_trap_vz_handle_guest_exit()
1519 er = kvm_trap_vz_handle_ghfc(cause, opc, vcpu); in kvm_trap_vz_handle_guest_exit()
1523 er = kvm_trap_vz_no_handler_guest_exit(gexccode, cause, opc, in kvm_trap_vz_handle_guest_exit()
1528 er = kvm_trap_vz_no_handler_guest_exit(gexccode, cause, opc, in kvm_trap_vz_handle_guest_exit()
1554 u32 cause = vcpu->arch.host_cp0_cause; in kvm_trap_vz_handle_cop_unusable() local
1558 if (((cause & CAUSEF_CE) >> CAUSEB_CE) == 1) { in kvm_trap_vz_handle_cop_unusable()
1623 u32 cause = vcpu->arch.host_cp0_cause; in kvm_trap_vz_handle_tlb_ld_miss() local
1637 if (cause & CAUSEF_BD) in kvm_trap_vz_handle_tlb_ld_miss()
1646 er = kvm_mips_emulate_load(inst, cause, vcpu); in kvm_trap_vz_handle_tlb_ld_miss()
1670 u32 cause = vcpu->arch.host_cp0_cause; in kvm_trap_vz_handle_tlb_st_miss() local
1684 if (cause & CAUSEF_BD) in kvm_trap_vz_handle_tlb_st_miss()
1693 er = kvm_mips_emulate_store(inst, cause, vcpu); in kvm_trap_vz_handle_tlb_st_miss()
2589 * Restore timer state regardless, as e.g. Cause.TI can change over time in kvm_vz_vcpu_load()