On Fri, May 29, 2015 at 10:30:21AM +0100, Alex Bennée wrote: > This is a precursor for later patches which will need to do more to > setup debug state before entering the hyp.S switch code. The existing > functionality for setting mdcr_el2 has been moved out of hyp.S and now > uses the value kept in vcpu->arch.mdcr_el2. > > As the assembler used to previously mask and preserve MDCR_EL2.HPMN I've > had to add a mechanism to save the value of mdcr_el2 as a per-cpu > variable during the initialisation code. The kernel never sets this > number so we are assuming the bootcode has set up the correct value > here. > > This also moves the conditional setting of the TDA bit from the hyp code > into the C code which is currently used for the lazy debug register > context switch code. > > Signed-off-by: Alex Bennée <[email protected]> > Reviewed-by: Christoffer Dall <[email protected]> _______________________________________________ kvmarm mailing list [email protected] https://lists.cs.columbia.edu/mailman/listinfo/kvmarm
- [PATCH v5 04/12] KVM: arm: guest debug, add stub KVM_SET_... Alex Bennée
- [PATCH v5 07/12] KVM: arm64: guest debug, add support for... Alex Bennée
- [PATCH v5 02/12] KVM: arm64: fix misleading comments in s... Alex Bennée
- [PATCH v5 03/12] KVM: arm64: guest debug, define API head... Alex Bennée
- Re: [PATCH v5 03/12] KVM: arm64: guest debug, define... Christoffer Dall
- [PATCH v5 09/12] KVM: arm64: introduce vcpu->arch.debu... Alex Bennée
- Re: [PATCH v5 09/12] KVM: arm64: introduce vcpu->... Christoffer Dall
- [PATCH v5 01/12] KVM: add comments for kvm_debug_exit_arc... Alex Bennée
- [PATCH v5 05/12] KVM: arm: introduce kvm_arm_init/setup/c... Alex Bennée
- Re: [PATCH v5 05/12] KVM: arm: introduce kvm_arm_ini... Christoffer Dall
- [PATCH v5 11/12] KVM: arm64: enable KVM_CAP_SET_GUEST_DEB... Alex Bennée
- [PATCH v5 12/12] KVM: arm64: add trace points for guest_d... Alex Bennée
- [PATCH v5 10/12] KVM: arm64: guest debug, HW assisted deb... Alex Bennée
- Re: [PATCH v5 10/12] KVM: arm64: guest debug, HW ass... Will Deacon
- Re: [PATCH v5 10/12] KVM: arm64: guest debug, HW ass... Christoffer Dall
