Lines Matching refs:arch
40 vcpu->arch.guest_debug_preserved.mdscr_el1 = val;
43 vcpu->arch.guest_debug_preserved.mdscr_el1);
48 u64 val = vcpu->arch.guest_debug_preserved.mdscr_el1;
89 vcpu->arch.mdcr_el2 = __this_cpu_read(mdcr_el2) & MDCR_EL2_HPMN_MASK;
90 vcpu->arch.mdcr_el2 |= (MDCR_EL2_TPM |
100 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDE;
109 !(vcpu->arch.flags & KVM_ARM64_DEBUG_DIRTY))
110 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDA;
112 trace_kvm_arm_set_dreg32("MDCR_EL2", vcpu->arch.mdcr_el2);
135 vcpu->arch.debug_ptr = &vcpu->arch.vcpu_debug_state;
148 * flag on vcpu->arch.flags). Since the guest must not interfere
156 unsigned long mdscr, orig_mdcr_el2 = vcpu->arch.mdcr_el2;
215 vcpu->arch.debug_ptr = &vcpu->arch.external_debug_state;
216 vcpu->arch.flags |= KVM_ARM64_DEBUG_DIRTY;
219 &vcpu->arch.debug_ptr->dbg_bcr[0],
220 &vcpu->arch.debug_ptr->dbg_bvr[0]);
223 &vcpu->arch.debug_ptr->dbg_wcr[0],
224 &vcpu->arch.debug_ptr->dbg_wvr[0]);
229 vcpu->arch.debug_ptr != &vcpu->arch.vcpu_debug_state);
233 vcpu->arch.flags |= KVM_ARM64_DEBUG_DIRTY;
236 if (has_vhe() && orig_mdcr_el2 != vcpu->arch.mdcr_el2)
237 write_sysreg(vcpu->arch.mdcr_el2, mdcr_el2);
257 &vcpu->arch.debug_ptr->dbg_bcr[0],
258 &vcpu->arch.debug_ptr->dbg_bvr[0]);
261 &vcpu->arch.debug_ptr->dbg_wcr[0],
262 &vcpu->arch.debug_ptr->dbg_wvr[0]);