Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752207AbbFDLHK (ORCPT ); Thu, 4 Jun 2015 07:07:10 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:34845 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753043AbbFDLHE (ORCPT ); Thu, 4 Jun 2015 07:07:04 -0400 Date: Thu, 4 Jun 2015 13:07:40 +0200 From: Christoffer Dall To: Alex =?iso-8859-1?Q?Benn=E9e?= Cc: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, marc.zyngier@arm.com, peter.maydell@linaro.org, agraf@suse.de, drjones@redhat.com, pbonzini@redhat.com, zhichao.huang@linaro.org, jan.kiszka@siemens.com, dahi@linux.vnet.ibm.com, r65777@freescale.com, bp@suse.de, Gleb Natapov , Russell King , Catalin Marinas , Will Deacon , Ard Biesheuvel , Lorenzo Pieralisi , Andre Przywara , Richard Weinberger , open list Subject: Re: [PATCH v5 05/12] KVM: arm: introduce kvm_arm_init/setup/clear_debug Message-ID: <20150604110740.GH7657@cbox> References: <1432891828-4816-1-git-send-email-alex.bennee@linaro.org> <1432891828-4816-6-git-send-email-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1432891828-4816-6-git-send-email-alex.bennee@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1152 Lines: 24 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 > Reviewed-by: Christoffer Dall -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/