Lines Matching refs:arch
51 vcpu->arch.guest_debug_preserved.mdscr_el1 = val; in save_guest_debug_regs()
54 vcpu->arch.guest_debug_preserved.mdscr_el1); in save_guest_debug_regs()
59 u64 val = vcpu->arch.guest_debug_preserved.mdscr_el1; in restore_guest_debug_regs()
88 vcpu->arch.debug_ptr = &vcpu->arch.vcpu_debug_state; in kvm_arm_reset_debug_ptr()
114 bool trap_debug = !(vcpu->arch.flags & KVM_ARM64_DEBUG_DIRTY); in kvm_arm_setup_debug()
123 vcpu->arch.mdcr_el2 = __this_cpu_read(mdcr_el2) & MDCR_EL2_HPMN_MASK; in kvm_arm_setup_debug()
124 vcpu->arch.mdcr_el2 |= (MDCR_EL2_TPM | in kvm_arm_setup_debug()
133 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDE; in kvm_arm_setup_debug()
186 vcpu->arch.debug_ptr = &vcpu->arch.external_debug_state; in kvm_arm_setup_debug()
187 vcpu->arch.flags |= KVM_ARM64_DEBUG_DIRTY; in kvm_arm_setup_debug()
191 &vcpu->arch.debug_ptr->dbg_bcr[0], in kvm_arm_setup_debug()
192 &vcpu->arch.debug_ptr->dbg_bvr[0]); in kvm_arm_setup_debug()
195 &vcpu->arch.debug_ptr->dbg_wcr[0], in kvm_arm_setup_debug()
196 &vcpu->arch.debug_ptr->dbg_wvr[0]); in kvm_arm_setup_debug()
201 vcpu->arch.debug_ptr != &vcpu->arch.vcpu_debug_state); in kvm_arm_setup_debug()
205 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDA; in kvm_arm_setup_debug()
209 vcpu->arch.flags |= KVM_ARM64_DEBUG_DIRTY; in kvm_arm_setup_debug()
211 trace_kvm_arm_set_dreg32("MDCR_EL2", vcpu->arch.mdcr_el2); in kvm_arm_setup_debug()
230 &vcpu->arch.debug_ptr->dbg_bcr[0], in kvm_arm_clear_debug()
231 &vcpu->arch.debug_ptr->dbg_bvr[0]); in kvm_arm_clear_debug()
234 &vcpu->arch.debug_ptr->dbg_wcr[0], in kvm_arm_clear_debug()
235 &vcpu->arch.debug_ptr->dbg_wvr[0]); in kvm_arm_clear_debug()
255 run->debug.arch.hsr = ESR_ELx_EC_SOFTSTP_LOW << ESR_ELx_EC_SHIFT; in kvm_arm_handle_step_debug()