From: Paul Mackerras Date: Thu, 10 Dec 2015 00:40:03 +0000 Subject: Re: [PATCH] KVM: PPC: Fix emulation of H_SET_DABR/X on POWER8 Message-Id: <20151210004003.GC6978@fergus.ozlabs.ibm.com> List-Id: References: <1448007105-15283-1-git-send-email-thuth@redhat.com> In-Reply-To: <1448007105-15283-1-git-send-email-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Thomas Huth Cc: kvm-ppc@vger.kernel.org, lvivier@redhat.com, kvm@vger.kernel.org, dgibson@redhat.com On Fri, Nov 20, 2015 at 09:11:45AM +0100, Thomas Huth wrote: > In the old DABR register, the BT (Breakpoint Translation) bit > is bit number 61. In the new DAWRX register, the WT (Watchpoint > Translation) bit is bit number 59. So to move the DABR-BT bit > into the position of the DAWRX-WT bit, it has to be shifted by > two, not only by one. This fixes hardware watchpoints in gdb of > older guests that only use the H_SET_DABR/X interface instead > of the new H_SET_MODE interface. > > Signed-off-by: Thomas Huth Thanks, applied to my kvm-ppc-next branch, with cc: stable@vger.kernel.org. Paul.