Lines Matching refs:arch
40 vcpu->arch.guest_debug_preserved.mdscr_el1 = val; in save_guest_debug_regs()
43 vcpu->arch.guest_debug_preserved.mdscr_el1); in save_guest_debug_regs()
48 u64 val = vcpu->arch.guest_debug_preserved.mdscr_el1; in restore_guest_debug_regs()
90 vcpu->arch.mdcr_el2 = __this_cpu_read(mdcr_el2) & MDCR_EL2_HPMN_MASK; in kvm_arm_setup_mdcr_el2()
91 vcpu->arch.mdcr_el2 |= (MDCR_EL2_TPM | in kvm_arm_setup_mdcr_el2()
101 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDE; in kvm_arm_setup_mdcr_el2()
110 !(vcpu->arch.flags & KVM_ARM64_DEBUG_DIRTY)) in kvm_arm_setup_mdcr_el2()
111 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDA; in kvm_arm_setup_mdcr_el2()
113 trace_kvm_arm_set_dreg32("MDCR_EL2", vcpu->arch.mdcr_el2); in kvm_arm_setup_mdcr_el2()
136 vcpu->arch.debug_ptr = &vcpu->arch.vcpu_debug_state; in kvm_arm_reset_debug_ptr()
157 unsigned long mdscr, orig_mdcr_el2 = vcpu->arch.mdcr_el2; in kvm_arm_setup_debug()
216 vcpu->arch.debug_ptr = &vcpu->arch.external_debug_state; in kvm_arm_setup_debug()
217 vcpu->arch.flags |= KVM_ARM64_DEBUG_DIRTY; in kvm_arm_setup_debug()
220 &vcpu->arch.debug_ptr->dbg_bcr[0], in kvm_arm_setup_debug()
221 &vcpu->arch.debug_ptr->dbg_bvr[0]); in kvm_arm_setup_debug()
224 &vcpu->arch.debug_ptr->dbg_wcr[0], in kvm_arm_setup_debug()
225 &vcpu->arch.debug_ptr->dbg_wvr[0]); in kvm_arm_setup_debug()
230 vcpu->arch.debug_ptr != &vcpu->arch.vcpu_debug_state); in kvm_arm_setup_debug()
234 vcpu->arch.flags |= KVM_ARM64_DEBUG_DIRTY; in kvm_arm_setup_debug()
237 if (has_vhe() && orig_mdcr_el2 != vcpu->arch.mdcr_el2) in kvm_arm_setup_debug()
238 write_sysreg(vcpu->arch.mdcr_el2, mdcr_el2); in kvm_arm_setup_debug()
258 &vcpu->arch.debug_ptr->dbg_bcr[0], in kvm_arm_clear_debug()
259 &vcpu->arch.debug_ptr->dbg_bvr[0]); in kvm_arm_clear_debug()
262 &vcpu->arch.debug_ptr->dbg_wcr[0], in kvm_arm_clear_debug()
263 &vcpu->arch.debug_ptr->dbg_wvr[0]); in kvm_arm_clear_debug()
283 vcpu->arch.flags |= KVM_ARM64_DEBUG_STATE_SAVE_SPE; in kvm_arch_vcpu_load_debug_state_flags()
288 vcpu->arch.flags |= KVM_ARM64_DEBUG_STATE_SAVE_TRBE; in kvm_arch_vcpu_load_debug_state_flags()
293 vcpu->arch.flags &= ~(KVM_ARM64_DEBUG_STATE_SAVE_SPE | in kvm_arch_vcpu_put_debug_state_flags()