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()
77 vcpu->arch.debug_ptr = &vcpu->arch.vcpu_debug_state; in kvm_arm_reset_debug_ptr()
103 bool trap_debug = !(vcpu->arch.flags & KVM_ARM64_DEBUG_DIRTY); in kvm_arm_setup_debug()
112 vcpu->arch.mdcr_el2 = __this_cpu_read(mdcr_el2) & MDCR_EL2_HPMN_MASK; in kvm_arm_setup_debug()
113 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()
175 vcpu->arch.debug_ptr = &vcpu->arch.external_debug_state; in kvm_arm_setup_debug()
176 vcpu->arch.flags |= KVM_ARM64_DEBUG_DIRTY; in kvm_arm_setup_debug()
180 &vcpu->arch.debug_ptr->dbg_bcr[0], in kvm_arm_setup_debug()
181 &vcpu->arch.debug_ptr->dbg_bvr[0]); in kvm_arm_setup_debug()
184 &vcpu->arch.debug_ptr->dbg_wcr[0], in kvm_arm_setup_debug()
185 &vcpu->arch.debug_ptr->dbg_wvr[0]); in kvm_arm_setup_debug()
190 vcpu->arch.debug_ptr != &vcpu->arch.vcpu_debug_state); in kvm_arm_setup_debug()
194 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDA; in kvm_arm_setup_debug()
198 vcpu->arch.flags |= KVM_ARM64_DEBUG_DIRTY; in kvm_arm_setup_debug()
200 trace_kvm_arm_set_dreg32("MDCR_EL2", vcpu->arch.mdcr_el2); in kvm_arm_setup_debug()
219 &vcpu->arch.debug_ptr->dbg_bcr[0], in kvm_arm_clear_debug()
220 &vcpu->arch.debug_ptr->dbg_bvr[0]); in kvm_arm_clear_debug()
223 &vcpu->arch.debug_ptr->dbg_wcr[0], in kvm_arm_clear_debug()
224 &vcpu->arch.debug_ptr->dbg_wvr[0]); in kvm_arm_clear_debug()