Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751978AbaKYRN2 (ORCPT ); Tue, 25 Nov 2014 12:13:28 -0500 Received: from mail-la0-f44.google.com ([209.85.215.44]:51426 "EHLO mail-la0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751828AbaKYRNZ (ORCPT ); Tue, 25 Nov 2014 12:13:25 -0500 MIME-Version: 1.0 In-Reply-To: <5474B6BC.2060309@redhat.com> References: <1416931805-23223-1-git-send-email-alex.bennee@linaro.org> <1416931805-23223-3-git-send-email-alex.bennee@linaro.org> <5474B6BC.2060309@redhat.com> From: Peter Maydell Date: Tue, 25 Nov 2014 17:13:04 +0000 Message-ID: Subject: Re: [PATCH 2/7] KVM: arm: guest debug, define API headers To: Paolo Bonzini Cc: =?UTF-8?B?QWxleCBCZW5uw6ll?= , kvm-devel , arm-mail-list , "kvmarm@lists.cs.columbia.edu" , Christoffer Dall , Marc Zyngier , Alexander Graf , "J. Kiszka" , David Hildenbrand , Bharat Bhushan , bp@suse.de, Catalin Marinas , Will Deacon , open list Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25 November 2014 at 17:05, Paolo Bonzini wrote: > So there is no register that says "this breakpoint has triggered" or > "this watchpoint has triggered"? Nope. You take a debug exception; the syndrome register tells you if it was a bp or a wp, and if it was a wp the fault address register tells you the address being accessed (if it was a bp you know the program counter, obviously). The debugger is expected to be able to figure it out from there, if it cares. -- PMM -- 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/