Lines Matching refs:arch
49 vcpu->arch.guest_debug_preserved.mdscr_el1 = vcpu_sys_reg(vcpu, MDSCR_EL1); in save_guest_debug_regs()
52 vcpu->arch.guest_debug_preserved.mdscr_el1); in save_guest_debug_regs()
57 vcpu_sys_reg(vcpu, MDSCR_EL1) = vcpu->arch.guest_debug_preserved.mdscr_el1; in restore_guest_debug_regs()
84 vcpu->arch.debug_ptr = &vcpu->arch.vcpu_debug_state; in kvm_arm_reset_debug_ptr()
109 bool trap_debug = !(vcpu->arch.debug_flags & KVM_ARM64_DEBUG_DIRTY); in kvm_arm_setup_debug()
113 vcpu->arch.mdcr_el2 = __this_cpu_read(mdcr_el2) & MDCR_EL2_HPMN_MASK; in kvm_arm_setup_debug()
114 vcpu->arch.mdcr_el2 |= (MDCR_EL2_TPM | in kvm_arm_setup_debug()
122 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDE; in kvm_arm_setup_debug()
169 vcpu->arch.debug_ptr = &vcpu->arch.external_debug_state; in kvm_arm_setup_debug()
170 vcpu->arch.debug_flags |= KVM_ARM64_DEBUG_DIRTY; in kvm_arm_setup_debug()
174 &vcpu->arch.debug_ptr->dbg_bcr[0], in kvm_arm_setup_debug()
175 &vcpu->arch.debug_ptr->dbg_bvr[0]); in kvm_arm_setup_debug()
178 &vcpu->arch.debug_ptr->dbg_wcr[0], in kvm_arm_setup_debug()
179 &vcpu->arch.debug_ptr->dbg_wvr[0]); in kvm_arm_setup_debug()
184 vcpu->arch.debug_ptr != &vcpu->arch.vcpu_debug_state); in kvm_arm_setup_debug()
188 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDA; in kvm_arm_setup_debug()
190 trace_kvm_arm_set_dreg32("MDCR_EL2", vcpu->arch.mdcr_el2); in kvm_arm_setup_debug()
209 &vcpu->arch.debug_ptr->dbg_bcr[0], in kvm_arm_clear_debug()
210 &vcpu->arch.debug_ptr->dbg_bvr[0]); in kvm_arm_clear_debug()
213 &vcpu->arch.debug_ptr->dbg_wcr[0], in kvm_arm_clear_debug()
214 &vcpu->arch.debug_ptr->dbg_wvr[0]); in kvm_arm_clear_debug()