From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoffer Dall Subject: Re: [PATCH 4/7] KVM: arm64: guest debug, add SW break point support Date: Sat, 29 Nov 2014 17:21:46 +0100 Message-ID: <20141129162146.GG23653@cbox> References: <1416931805-23223-1-git-send-email-alex.bennee@linaro.org> <1416931805-23223-5-git-send-email-alex.bennee@linaro.org> <20141126160720.GD3245@hawk.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Alex =?iso-8859-1?Q?Benn=E9e?= , 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, Lorenzo Pieralisi , Russell King , Jonathan Corbet , Gleb Natapov , jan.kiszka@siemens.com, "open list:DOCUMENTATION" , Will Deacon , open list , dahi@linux.vnet.ibm.com, Catalin Marinas , r65777@freescale.com, pbonzini@redhat.com, bp@suse.de To: Andrew Jones Return-path: Received: from mail-lb0-f180.google.com ([209.85.217.180]:34035 "EHLO mail-lb0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751695AbaK2QVI (ORCPT ); Sat, 29 Nov 2014 11:21:08 -0500 Received: by mail-lb0-f180.google.com with SMTP id l4so6604115lbv.39 for ; Sat, 29 Nov 2014 08:21:06 -0800 (PST) Content-Disposition: inline In-Reply-To: <20141126160720.GD3245@hawk.usersys.redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Nov 26, 2014 at 05:07:20PM +0100, Andrew Jones wrote: > On Tue, Nov 25, 2014 at 04:10:02PM +0000, Alex Benn=E9e wrote: > > This adds support for SW breakpoints inserted by userspace. > >=20 > > First we need to trap all BKPT exceptions in the hypervisor (ELS). = This > > in controlled through the MDCR_EL2 register. I've added a new field= to > > the vcpu structure to hold this value. There should be scope to > > rationlise this with the VCPU_DEBUG_FLAGS/KVM_ARM64_DEBUG_DIRTY_SHI= =46T > > manipulation in later patches. >=20 > I think we should start using the new mdcr_el2 field everywhere we pl= an > to within the same series that it is introduced. Otherwise it's hard > to tell if we need an mdcr_el2 field, or if a more generic field woul= d > suffice. We can always translate bits of a more generic field to > mdcr_el2 bits when necessary, but not the reverse. >=20 Agreed, this is getting messy already with this patch. -Christoffer