/openbmc/linux/arch/s390/kvm/ |
H A D | priv.c | 34 vcpu->stat.instruction_ri++; in handle_ri() 39 kvm_s390_retry_instr(vcpu); in handle_ri() 48 return handle_ri(vcpu); in kvm_s390_handle_aa() 66 vcpu->arch.gs_enabled = 1; in handle_gs() 78 return handle_gs(vcpu); in kvm_s390_handle_e3() 444 wait_event(vcpu->kvm->arch.ipte_wq, !ipte_lock_held(vcpu->kvm)); in handle_ipte_interlock() 464 return kvm_s390_inject_prog_irq(vcpu, &vcpu->arch.pgm); in handle_test_block() 495 inti = kvm_s390_get_io_int(vcpu->kvm, vcpu->arch.sie_block->gcr[6], 0); in handle_tpi() 574 vcpu->run->s390_tsch.ipb = vcpu->arch.sie_block->ipb; in handle_tsch() 1049 vcpu->run->s.regs.gprs[reg1] |= vcpu->arch.sie_block->gpsw.mask >> 32; in handle_epsw() [all …]
|
H A D | intercept.c | 216 if (!IS_TE_ENABLED(vcpu) || !IS_ITDB_VALID(vcpu)) in handle_itdb() 229 #define per_event(vcpu) (vcpu->arch.sie_block->iprcc & PGM_PER) argument 233 if (!guestdbg_enabled(vcpu) || !per_event(vcpu)) in should_handle_per_event() 269 trace_kvm_s390_intercept_prog(vcpu, vcpu->arch.sie_block->iprcc); in handle_prog() 278 rc = handle_itdb(vcpu); in handle_prog() 366 rc = guest_translate_address_with_key(vcpu, vcpu->run->s.regs.gprs[reg2], in handle_mvpg_pei() 375 rc = guest_translate_address_with_key(vcpu, vcpu->run->s.regs.gprs[reg1], in handle_mvpg_pei() 390 vcpu->stat.exit_pei++; in handle_partial_execution() 468 trace_kvm_s390_handle_operexc(vcpu, vcpu->arch.sie_block->ipa, in handle_operexc() 474 if (vcpu->arch.sie_block->ipa == 0 && vcpu->kvm->arch.user_instr0) in handle_operexc() [all …]
|
H A D | diag.c | 25 start = vcpu->run->s.regs.gprs[(vcpu->arch.sie_block->ipa & 0xf0) >> 4]; in diag_release_pages() 26 end = vcpu->run->s.regs.gprs[vcpu->arch.sie_block->ipa & 0xf] + PAGE_SIZE; in diag_release_pages() 76 vcpu->run->s.regs.gprs[rx]); in __diag_page_ref_service() 80 rc = read_guest_real(vcpu, vcpu->run->s.regs.gprs[rx], &parm, sizeof(parm)); in __diag_page_ref_service() 149 kvm_vcpu_on_spin(vcpu, true); in __diag_time_slice_end() 172 tid = vcpu->run->s.regs.gprs[(vcpu->arch.sie_block->ipa & 0xf0) >> 4]; in __diag_time_slice_end_directed() 176 if (tid == vcpu->vcpu_id) in __diag_time_slice_end_directed() 194 VCPU_EVENT(vcpu, 5, in __diag_time_slice_end_directed() 197 vcpu->stat.diag_9c_forward++; in __diag_time_slice_end_directed() 208 vcpu->stat.diag_9c_ignored++; in __diag_time_slice_end_directed() [all …]
|
H A D | guestdbg.c | 132 vcpu->arch.guestdbg.cr0 = vcpu->arch.sie_block->gcr[0]; in kvm_s390_backup_guest_per_regs() 133 vcpu->arch.guestdbg.cr9 = vcpu->arch.sie_block->gcr[9]; in kvm_s390_backup_guest_per_regs() 134 vcpu->arch.guestdbg.cr10 = vcpu->arch.sie_block->gcr[10]; in kvm_s390_backup_guest_per_regs() 135 vcpu->arch.guestdbg.cr11 = vcpu->arch.sie_block->gcr[11]; in kvm_s390_backup_guest_per_regs() 140 vcpu->arch.sie_block->gcr[0] = vcpu->arch.guestdbg.cr0; in kvm_s390_restore_guest_per_regs() 141 vcpu->arch.sie_block->gcr[9] = vcpu->arch.guestdbg.cr9; in kvm_s390_restore_guest_per_regs() 142 vcpu->arch.sie_block->gcr[10] = vcpu->arch.guestdbg.cr10; in kvm_s390_restore_guest_per_regs() 143 vcpu->arch.sie_block->gcr[11] = vcpu->arch.guestdbg.cr11; in kvm_s390_restore_guest_per_regs() 590 if (debug_exit_required(vcpu, vcpu->arch.sie_block->perc, in kvm_s390_handle_per_event() 614 (pssec(vcpu) || hssec(vcpu))) in kvm_s390_handle_per_event() [all …]
|
H A D | kvm-s390.h | 24 #define IS_TE_ENABLED(vcpu) ((vcpu->arch.sie_block->ecb & ECB_TE)) argument 26 #define IS_ITDB_VALID(vcpu) \ argument 83 return test_bit(vcpu->vcpu_idx, vcpu->kvm->arch.idle_mask); in is_vcpu_idle() 105 VCPU_EVENT(vcpu, 3, "set prefix of cpu %03u to 0x%x", vcpu->vcpu_id, in kvm_s390_set_prefix() 290 return vcpu->arch.pv.handle; in kvm_s390_pv_cpu_get_handle() 346 kvm_s390_rewind_psw(vcpu, kvm_s390_get_ilen(vcpu)); in kvm_s390_retry_instr() 401 struct kvm_vcpu *vcpu; in kvm_s390_vcpu_block_all() local 405 kvm_s390_vcpu_block(vcpu); in kvm_s390_vcpu_block_all() 411 struct kvm_vcpu *vcpu; in kvm_s390_vcpu_unblock_all() local 414 kvm_s390_vcpu_unblock(vcpu); in kvm_s390_vcpu_unblock_all() [all …]
|
/openbmc/linux/arch/arm64/include/asm/ |
H A D | kvm_emulate.h | 99 if (vcpu_el1_is_32bit(vcpu)) in vcpu_reset_hcr() 102 if (kvm_has_mte(vcpu->kvm)) in vcpu_reset_hcr() 139 return vcpu->arch.vsesr_el2; in vcpu_get_vsesr() 144 vcpu->arch.vsesr_el2 = vsesr; in vcpu_set_vsesr() 164 if (vcpu_mode_is_32bit(vcpu)) in kvm_condition_valid() 394 return kvm_vcpu_trap_is_iabt(vcpu) && !kvm_vcpu_abt_iss1tw(vcpu); in kvm_vcpu_trap_is_exec_fault() 487 if (vcpu_mode_priv(vcpu)) in kvm_vcpu_is_be() 497 if (kvm_vcpu_is_be(vcpu)) { in vcpu_data_guest_to_host() 528 if (kvm_vcpu_is_be(vcpu)) { in vcpu_data_host_to_guest() 594 if (!vcpu_has_sve(vcpu) || in kvm_get_reset_cptr_el2() [all …]
|
/openbmc/linux/arch/arm64/kvm/ |
H A D | debug.c | 111 if (vcpu->guest_debug) in kvm_arm_setup_mdcr_el2() 140 kvm_arm_setup_mdcr_el2(vcpu); in kvm_arm_vcpu_init_debug() 150 vcpu->arch.debug_ptr = &vcpu->arch.vcpu_debug_state; in kvm_arm_reset_debug_ptr() 173 trace_kvm_arm_setup_debug(vcpu, vcpu->guest_debug); in kvm_arm_setup_debug() 175 kvm_arm_setup_mdcr_el2(vcpu); in kvm_arm_setup_debug() 178 if (vcpu->guest_debug || kvm_vcpu_os_lock_enabled(vcpu)) { in kvm_arm_setup_debug() 180 save_guest_debug_regs(vcpu); in kvm_arm_setup_debug() 240 vcpu->arch.debug_ptr = &vcpu->arch.external_debug_state; in kvm_arm_setup_debug() 266 BUG_ON(!vcpu->guest_debug && in kvm_arm_setup_debug() 267 vcpu->arch.debug_ptr != &vcpu->arch.vcpu_debug_state); in kvm_arm_setup_debug() [all …]
|
H A D | inject_fault.c | 21 if (likely(!vcpu_has_nv(vcpu))) { in pend_sync_exception() 42 if (vcpu_el2_tge_is_set(vcpu)) in pend_sync_exception() 63 pend_sync_exception(vcpu); in inject_abt64() 99 pend_sync_exception(vcpu); in inject_undef64() 168 if (vcpu_el1_is_32bit(vcpu)) in kvm_inject_dabt() 184 if (vcpu_el1_is_32bit(vcpu)) in kvm_inject_pabt() 198 kvm_inject_pabt(vcpu, addr); in kvm_inject_size_fault() 227 if (vcpu_el1_is_32bit(vcpu)) in kvm_inject_undefined() 228 inject_undef32(vcpu); in kvm_inject_undefined() 230 inject_undef64(vcpu); in kvm_inject_undefined() [all …]
|
H A D | reset.c | 135 if (!vcpu_has_sve(vcpu)) in kvm_arm_vcpu_finalize() 149 if (vcpu_has_sve(vcpu) && !kvm_arm_vcpu_sve_finalized(vcpu)) in kvm_arm_vcpu_is_finalized() 160 kvm_unshare_hyp(vcpu, vcpu + 1); in kvm_arm_vcpu_destroy() 164 kfree(vcpu->arch.ccsidr); in kvm_arm_vcpu_destroy() 169 if (vcpu_has_sve(vcpu)) in kvm_vcpu_reset_sve() 170 memset(vcpu->arch.sve_state, 0, vcpu_sve_state_size(vcpu)); in kvm_vcpu_reset_sve() 228 if (vcpu_has_nv(vcpu) && vcpu_has_feature(vcpu, KVM_ARM_VCPU_SVE)) { in kvm_reset_vcpu() 264 memset(vcpu_gp_regs(vcpu), 0, sizeof(*vcpu_gp_regs(vcpu))); in kvm_reset_vcpu() 265 memset(&vcpu->arch.ctxt.fp_regs, 0, sizeof(vcpu->arch.ctxt.fp_regs)); in kvm_reset_vcpu() 285 vcpu_set_thumb(vcpu); in kvm_reset_vcpu() [all …]
|
H A D | handle_exit.c | 34 kvm_inject_vabt(vcpu); in kvm_handle_guest_serror() 39 trace_kvm_hvc_arm64(*vcpu_pc(vcpu), vcpu_get_reg(vcpu, 0), in handle_hvc() 48 kvm_inject_nested_sync(vcpu, kvm_vcpu_get_esr(vcpu)); in handle_hvc() 68 kvm_incr_pc(vcpu); in handle_smc() 131 val = vcpu_get_reg(vcpu, kvm_vcpu_sys_get_rt(vcpu)); in kvm_handle_wfx() 142 kvm_vcpu_on_spin(vcpu, vcpu_mode_priv(vcpu)); in kvm_handle_wfx() 147 kvm_vcpu_wfi(vcpu); in kvm_handle_wfx() 150 kvm_incr_pc(vcpu); in kvm_handle_wfx() 239 kvm_inject_nested_sync(vcpu, kvm_vcpu_get_esr(vcpu)); in kvm_handle_eret() 251 kvm_inject_nested_sync(vcpu, kvm_vcpu_get_esr(vcpu)); in handle_svc() [all …]
|
H A D | psci.c | 49 kvm_vcpu_wfi(vcpu); in kvm_psci_vcpu_suspend() 64 struct kvm_vcpu *vcpu = NULL; in kvm_psci_vcpu_on() local 78 if (!vcpu) in kvm_psci_vcpu_on() 114 kvm_vcpu_wake_up(vcpu); in kvm_psci_vcpu_on() 128 struct kvm *kvm = vcpu->kvm; in kvm_psci_vcpu_affinity_info() 185 memset(&vcpu->run->system_event, 0, sizeof(vcpu->run->system_event)); in kvm_prepare_system_event() 226 vcpu_set_reg(vcpu, i, lower_32_bits(vcpu_get_reg(vcpu, i))); in kvm_psci_narrow_to_32bit() 283 kvm_psci_system_off(vcpu); in kvm_psci_0_2_call() 298 kvm_psci_system_reset(vcpu); in kvm_psci_0_2_call() 319 struct kvm *kvm = vcpu->kvm; in kvm_psci_1_x_call() [all …]
|
/openbmc/linux/arch/riscv/kvm/ |
H A D | vcpu.c | 84 memset(vcpu->arch.hfence_queue, 0, sizeof(vcpu->arch.hfence_queue)); in kvm_riscv_reset_vcpu() 196 !vcpu->arch.power_off && !vcpu->arch.pause); in kvm_arch_vcpu_runnable() 525 vcpu->cpu = cpu; in kvm_arch_vcpu_load() 532 vcpu->cpu = -1; in kvm_arch_vcpu_put() 564 (!vcpu->arch.power_off) && (!vcpu->arch.pause), in kvm_riscv_check_vcpu_requests() 568 if (vcpu->arch.power_off || vcpu->arch.pause) { in kvm_riscv_check_vcpu_requests() 620 vcpu->arch.last_exit_cpu = vcpu->cpu; in kvm_riscv_vcpu_enter_exit() 638 ret = kvm_riscv_vcpu_mmio_return(vcpu, vcpu->run); in kvm_arch_vcpu_ioctl_run() 642 ret = kvm_riscv_vcpu_sbi_return(vcpu, vcpu->run); in kvm_arch_vcpu_ioctl_run() 646 ret = kvm_riscv_vcpu_csr_return(vcpu, vcpu->run); in kvm_arch_vcpu_ioctl_run() [all …]
|
/openbmc/linux/arch/powerpc/kvm/ |
H A D | book3s_emulate.c | 92 vcpu->arch.ppr_tm = vcpu->arch.ppr; in kvmppc_copyto_vcpu_tm() 94 vcpu->arch.amr_tm = vcpu->arch.amr; in kvmppc_copyto_vcpu_tm() 96 vcpu->arch.tar_tm = vcpu->arch.tar; in kvmppc_copyto_vcpu_tm() 111 vcpu->arch.ppr = vcpu->arch.ppr_tm; in kvmppc_copyfrom_vcpu_tm() 113 vcpu->arch.amr = vcpu->arch.amr_tm; in kvmppc_copyfrom_vcpu_tm() 115 vcpu->arch.tar = vcpu->arch.tar_tm; in kvmppc_copyfrom_vcpu_tm() 337 vcpu->arch.mmu.mtsrin(vcpu, in kvmppc_core_emulate_op_pr() 342 vcpu->arch.mmu.mtsrin(vcpu, in kvmppc_core_emulate_op_pr() 388 vcpu->arch.mmu.slbmte(vcpu, in kvmppc_core_emulate_op_pr() 396 vcpu->arch.mmu.slbie(vcpu, in kvmppc_core_emulate_op_pr() [all …]
|
H A D | booke_emulate.c | 26 vcpu->arch.regs.nip = vcpu->arch.shared->srr0; in kvmppc_emul_rfi() 27 kvmppc_set_msr(vcpu, vcpu->arch.shared->srr1); in kvmppc_emul_rfi() 32 vcpu->arch.regs.nip = vcpu->arch.dsrr0; in kvmppc_emul_rfdi() 33 kvmppc_set_msr(vcpu, vcpu->arch.dsrr1); in kvmppc_emul_rfdi() 38 vcpu->arch.regs.nip = vcpu->arch.csrr0; in kvmppc_emul_rfci() 39 kvmppc_set_msr(vcpu, vcpu->arch.csrr1); in kvmppc_emul_rfci() 53 kvmppc_emul_rfi(vcpu); in kvmppc_booke_emulate_op() 80 kvmppc_set_gpr(vcpu, rt, vcpu->arch.shared->msr); in kvmppc_booke_emulate_op() 86 kvmppc_set_msr(vcpu, kvmppc_get_gpr(vcpu, rs)); in kvmppc_booke_emulate_op() 90 vcpu->arch.shared->msr = (vcpu->arch.shared->msr & ~MSR_EE) in kvmppc_booke_emulate_op() [all …]
|
H A D | booke.c | 513 set_guest_srr(vcpu, vcpu->arch.regs.nip, in kvmppc_booke_irqprio_deliver() 517 set_guest_csrr(vcpu, vcpu->arch.regs.nip, in kvmppc_booke_irqprio_deliver() 521 set_guest_dsrr(vcpu, vcpu->arch.regs.nip, in kvmppc_booke_irqprio_deliver() 525 set_guest_mcsrr(vcpu, vcpu->arch.regs.nip, in kvmppc_booke_irqprio_deliver() 530 vcpu->arch.regs.nip = vcpu->arch.ivpr | in kvmppc_booke_irqprio_deliver() 805 vcpu->arch.pgdir = vcpu->kvm->mm->pgd; in kvmppc_vcpu_run() 1894 vcpu->arch.dec = vcpu->arch.decar; in kvmppc_decrementer_func() 2140 vcpu->arch.shared->pir = vcpu->vcpu_id; in kvmppc_core_vcpu_create() 2160 vcpu->kvm->arch.kvm_ops->vcpu_free(vcpu); in kvmppc_core_vcpu_create() 2167 vcpu->kvm->arch.kvm_ops->vcpu_free(vcpu); in kvmppc_core_vcpu_free() [all …]
|
H A D | book3s_pr.c | 307 vcpu->arch.purr += get_tb() - vcpu->arch.entry_tb; in kvmppc_copy_from_svcpu() 308 vcpu->arch.spurr += get_tb() - vcpu->arch.entry_tb; in kvmppc_copy_from_svcpu() 411 _kvmppc_restore_tm_pr(vcpu, kvmppc_get_msr(vcpu)); in kvmppc_restore_tm_pr() 742 if (vcpu->arch.mmu.is_dcbz32(vcpu) && in kvmppc_handle_pagefault() 787 else if (vcpu->arch.mmu.is_dcbz32(vcpu) && in kvmppc_handle_pagefault() 1191 } else if (vcpu->arch.mmu.is_dcbz32(vcpu) && in kvmppc_handle_exit_pr() 1337 kvmppc_set_gpr(vcpu, 3, kvmppc_kvm_pv(vcpu)); in kvmppc_handle_exit_pr() 1501 vcpu->arch.mmu.slbmte(vcpu, 0, 0); in kvm_arch_vcpu_ioctl_set_sregs_pr() 1502 vcpu->arch.mmu.slbia(vcpu); in kvm_arch_vcpu_ioctl_set_sregs_pr() 1509 vcpu->arch.mmu.slbmte(vcpu, rs, rb); in kvm_arch_vcpu_ioctl_set_sregs_pr() [all …]
|
H A D | emulate_loadstore.c | 31 kvmppc_core_queue_fpunavail(vcpu, kvmppc_get_msr(vcpu) & SRR1_PREFIXED); in kvmppc_check_fp_disabled() 43 kvmppc_core_queue_vsx_unavail(vcpu, kvmppc_get_msr(vcpu) & SRR1_PREFIXED); in kvmppc_check_vsx_disabled() 55 kvmppc_core_queue_vec_unavail(vcpu, kvmppc_get_msr(vcpu) & SRR1_PREFIXED); in kvmppc_check_altivec_disabled() 86 vcpu->arch.mmio_vsx_offset = 0; in kvmppc_emulate_loadstore() 91 vcpu->arch.mmio_vmx_offset = 0; in kvmppc_emulate_loadstore() 95 vcpu->arch.regs.msr = vcpu->arch.shared->msr; in kvmppc_emulate_loadstore() 148 vcpu->arch.mmio_copy_type = in kvmppc_emulate_loadstore() 246 vcpu->kvm->arch.kvm_ops->giveup_ext(vcpu, in kvmppc_emulate_loadstore() 270 vcpu->kvm->arch.kvm_ops->giveup_ext(vcpu, in kvmppc_emulate_loadstore() 315 vcpu->kvm->arch.kvm_ops->giveup_ext(vcpu, in kvmppc_emulate_loadstore() [all …]
|
H A D | book3s_hv_tm.c | 29 vcpu->arch.tfiar = tfiar; in emulate_tx_failure() 31 vcpu->arch.texasr = (vcpu->arch.texasr & 0x3ffffff) | texasr; in emulate_tx_failure() 56 vcpu->arch.regs.nip -= 4; in kvmhv_p9_tm_emulation() 79 vcpu->arch.cfar = vcpu->arch.regs.nip; in kvmhv_p9_tm_emulation() 80 vcpu->arch.regs.nip = vcpu->arch.shregs.srr0; in kvmhv_p9_tm_emulation() 103 bescr = vcpu->arch.bescr; in kvmhv_p9_tm_emulation() 113 vcpu->arch.cfar = vcpu->arch.regs.nip; in kvmhv_p9_tm_emulation() 114 vcpu->arch.regs.nip = vcpu->arch.ebbrr; in kvmhv_p9_tm_emulation() 156 vcpu->arch.regs.ccr = (vcpu->arch.regs.ccr & 0x0fffffff) | in kvmhv_p9_tm_emulation() 203 vcpu->arch.regs.ccr = (vcpu->arch.regs.ccr & 0x0fffffff) | in kvmhv_p9_tm_emulation() [all …]
|
H A D | book3s.c | 538 ret = vcpu->kvm->arch.kvm_ops->get_sregs(vcpu, sregs); in kvm_arch_vcpu_ioctl_get_sregs() 550 ret = vcpu->kvm->arch.kvm_ops->set_sregs(vcpu, sregs); in kvm_arch_vcpu_ioctl_set_sregs() 660 if (!vcpu->arch.icp && !vcpu->arch.xive_vcpu) { in kvmppc_get_one_reg() 745 if (!vcpu->arch.icp && !vcpu->arch.xive_vcpu) { in kvmppc_set_one_reg() 796 vcpu->kvm->arch.kvm_ops->vcpu_load(vcpu, cpu); in kvmppc_core_vcpu_load() 801 vcpu->kvm->arch.kvm_ops->vcpu_put(vcpu); in kvmppc_core_vcpu_put() 806 vcpu->kvm->arch.kvm_ops->set_msr(vcpu, msr); in kvmppc_set_msr() 812 return vcpu->kvm->arch.kvm_ops->vcpu_run(vcpu); in kvmppc_vcpu_run() 838 return vcpu->kvm->arch.kvm_ops->vcpu_create(vcpu); in kvmppc_core_vcpu_create() 843 vcpu->kvm->arch.kvm_ops->vcpu_free(vcpu); in kvmppc_core_vcpu_free() [all …]
|
H A D | book3s_paired_singles.c | 152 kvm_cvt_df(&VCPU_FPR(vcpu, rt), &vcpu->arch.qpr[rt]); in kvmppc_sync_qpr() 759 VCPU_FPR(vcpu, ax_rd) = VCPU_FPR(vcpu, ax_rb); in kvmppc_emulate_paired_single() 761 vcpu->arch.qpr[ax_rd] = vcpu->arch.qpr[ax_rb]; in kvmppc_emulate_paired_single() 770 VCPU_FPR(vcpu, ax_rd) = VCPU_FPR(vcpu, ax_rb); in kvmppc_emulate_paired_single() 771 vcpu->arch.qpr[ax_rd] = vcpu->arch.qpr[ax_rb]; in kvmppc_emulate_paired_single() 779 VCPU_FPR(vcpu, ax_rd) = VCPU_FPR(vcpu, ax_rb); in kvmppc_emulate_paired_single() 781 vcpu->arch.qpr[ax_rd] = vcpu->arch.qpr[ax_rb]; in kvmppc_emulate_paired_single() 786 VCPU_FPR(vcpu, ax_rd) = VCPU_FPR(vcpu, ax_rb); in kvmppc_emulate_paired_single() 788 vcpu->arch.qpr[ax_rd] = vcpu->arch.qpr[ax_rb]; in kvmppc_emulate_paired_single() 793 VCPU_FPR(vcpu, ax_rd) = VCPU_FPR(vcpu, ax_ra); in kvmppc_emulate_paired_single() [all …]
|
H A D | book3s_pr_papr.c | 81 kvmppc_set_gpr(vcpu, 3, ret); in kvmppc_h_pr_enter() 114 vcpu->arch.mmu.tlbie(vcpu, rb, rb & 1 ? true : false); in kvmppc_h_pr_remove() 122 kvmppc_set_gpr(vcpu, 3, ret); in kvmppc_h_pr_remove() 202 vcpu->arch.mmu.tlbie(vcpu, rb, rb & 1 ? true : false); in kvmppc_h_pr_bulk_remove() 247 vcpu->arch.mmu.tlbie(vcpu, rb, rb & 1 ? true : false); in kvmppc_h_pr_protect() 269 kvmppc_set_gpr(vcpu, 3, rc); in kvmppc_h_pr_logical_ci_load() 280 kvmppc_set_gpr(vcpu, 3, rc); in kvmppc_h_pr_logical_ci_store() 311 kvmppc_set_gpr(vcpu, 3, rc); in kvmppc_h_pr_put_tce() 327 kvmppc_set_gpr(vcpu, 3, rc); in kvmppc_h_pr_put_tce_indirect() 394 kvmppc_set_msr_fast(vcpu, kvmppc_get_msr(vcpu) | MSR_EE); in kvmppc_h_pr() [all …]
|
/openbmc/linux/arch/mips/kvm/ |
H A D | emulate.c | 248 err = kvm_compute_return_epc(vcpu, vcpu->arch.pc, in update_pc() 1003 vcpu->arch.pc, vcpu->arch.host_cp0_badvaddr, in kvm_mips_emulate_store() 1013 vcpu->arch.pc, vcpu->arch.host_cp0_badvaddr, in kvm_mips_emulate_store() 1022 vcpu->arch.pc, vcpu->arch.host_cp0_badvaddr, in kvm_mips_emulate_store() 1031 vcpu->arch.pc, vcpu->arch.host_cp0_badvaddr, in kvm_mips_emulate_store() 1061 vcpu->arch.pc, vcpu->arch.host_cp0_badvaddr, in kvm_mips_emulate_store() 1091 vcpu->arch.pc, vcpu->arch.host_cp0_badvaddr, in kvm_mips_emulate_store() 1139 vcpu->arch.pc, vcpu->arch.host_cp0_badvaddr, in kvm_mips_emulate_store() 1186 vcpu->arch.pc, vcpu->arch.host_cp0_badvaddr, in kvm_mips_emulate_store() 1290 vcpu->arch.io_pc = vcpu->arch.pc; in kvm_mips_emulate_load() [all …]
|
/openbmc/linux/arch/x86/kvm/ |
H A D | kvm_cache_regs.h | 103 return vcpu->arch.regs[reg]; in kvm_register_read_raw() 112 vcpu->arch.regs[reg] = val; in kvm_register_write_raw() 113 kvm_register_mark_dirty(vcpu, reg); in kvm_register_write_raw() 157 return vcpu->arch.cr0 & mask; in kvm_read_cr0_bits() 179 return vcpu->arch.cr4 & mask; in kvm_read_cr4_bits() 194 return vcpu->arch.cr3; in kvm_read_cr3() 204 return (kvm_rax_read(vcpu) & -1u) in kvm_read_edx_eax() 210 vcpu->arch.hflags |= HF_GUEST_MASK; in enter_guest_mode() 211 vcpu->stat.guest_mode = 1; in enter_guest_mode() 216 vcpu->arch.hflags &= ~HF_GUEST_MASK; in leave_guest_mode() [all …]
|
H A D | x86.h | 129 return vcpu->arch.exception.injected || vcpu->arch.interrupt.injected || in kvm_event_needs_reinjection() 130 vcpu->arch.nmi_injected; in kvm_event_needs_reinjection() 158 if (!is_long_mode(vcpu)) in is_64_bit_mode() 171 return vcpu->arch.guest_state_protected || is_64_bit_mode(vcpu); in is_64_bit_hypercall() 185 return vcpu->arch.walk_mmu == &vcpu->arch.nested_mmu; in mmu_is_nested() 205 return !is_long_mode(vcpu) && is_pae(vcpu) && is_paging(vcpu); in is_pae_paging() 230 vcpu->arch.mmio_gva = mmu_is_nested(vcpu) ? 0 : gva & PAGE_MASK; in vcpu_cache_mmio_info() 238 return vcpu->arch.mmio_gen == kvm_memslots(vcpu->kvm)->generation; in vcpu_match_mmio_gen() 252 vcpu->arch.mmio_gva = 0; in vcpu_clear_mmio_info() 257 if (vcpu_match_mmio_gen(vcpu) && vcpu->arch.mmio_gva && in vcpu_match_mmio_gva() [all …]
|
H A D | x86.c | 997 !load_pdptrs(vcpu, kvm_read_cr3(vcpu))) in kvm_set_cr0() 1034 vcpu->arch.pkru != vcpu->arch.host_pkru && in kvm_load_guest_xsave_state() 1050 if (vcpu->arch.pkru != vcpu->arch.host_pkru) in kvm_load_host_xsave_state() 1123 __kvm_set_xcr(vcpu, kvm_rcx_read(vcpu), kvm_read_edx_eax(vcpu))) { in kvm_emulate_xsetbv() 1206 && !load_pdptrs(vcpu, kvm_read_cr3(vcpu))) in kvm_set_cr4() 1342 vcpu->arch.eff_db[i] = vcpu->arch.db[i]; in kvm_update_dr0123() 8428 ctxt->vcpu = vcpu; in alloc_emulate_ctxt() 10830 vcpu->arch.last_vmentry_cpu = vcpu->cpu; in vcpu_enter_guest() 11560 load_pdptrs(vcpu, kvm_read_cr3(vcpu)); in __set_sregs_common() 11819 vcpu, &vcpu->run->s.regs.events); in store_regs() [all …]
|