From: Thomas Huth <thuth@redhat.com>
To: kvm-ppc@vger.kernel.org, Paul Mackerras <paulus@samba.org>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH] KVM: PPC: Fix emulation of H_SET_DABR/X on POWER8
Date: Mon, 07 Dec 2015 12:01:53 +0000 [thread overview]
Message-ID: <56657531.3040607@redhat.com> (raw)
In-Reply-To: <1448007105-15283-1-git-send-email-thuth@redhat.com>
On 20/11/15 09:11, 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 <thuth@redhat.com>
> ---
> arch/powerpc/kvm/book3s_hv_rmhandlers.S | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/powerpc/kvm/book3s_hv_rmhandlers.S b/arch/powerpc/kvm/book3s_hv_rmhandlers.S
> index b98889e..3983b87 100644
> --- a/arch/powerpc/kvm/book3s_hv_rmhandlers.S
> +++ b/arch/powerpc/kvm/book3s_hv_rmhandlers.S
> @@ -2143,7 +2143,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_ARCH_207S)
>
> /* Emulate H_SET_DABR/X on P8 for the sake of compat mode guests */
> 2: rlwimi r5, r4, 5, DAWRX_DR | DAWRX_DW
> - rlwimi r5, r4, 1, DAWRX_WT
> + rlwimi r5, r4, 2, DAWRX_WT
> clrrdi r4, r4, 3
> std r4, VCPU_DAWR(r3)
> std r5, VCPU_DAWRX(r3)
Ping?
WARNING: multiple messages have this Message-ID (diff)
From: Thomas Huth <thuth@redhat.com>
To: kvm-ppc@vger.kernel.org, Paul Mackerras <paulus@samba.org>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH] KVM: PPC: Fix emulation of H_SET_DABR/X on POWER8
Date: Mon, 7 Dec 2015 13:01:53 +0100 [thread overview]
Message-ID: <56657531.3040607@redhat.com> (raw)
In-Reply-To: <1448007105-15283-1-git-send-email-thuth@redhat.com>
On 20/11/15 09:11, 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 <thuth@redhat.com>
> ---
> arch/powerpc/kvm/book3s_hv_rmhandlers.S | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/powerpc/kvm/book3s_hv_rmhandlers.S b/arch/powerpc/kvm/book3s_hv_rmhandlers.S
> index b98889e..3983b87 100644
> --- a/arch/powerpc/kvm/book3s_hv_rmhandlers.S
> +++ b/arch/powerpc/kvm/book3s_hv_rmhandlers.S
> @@ -2143,7 +2143,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_ARCH_207S)
>
> /* Emulate H_SET_DABR/X on P8 for the sake of compat mode guests */
> 2: rlwimi r5, r4, 5, DAWRX_DR | DAWRX_DW
> - rlwimi r5, r4, 1, DAWRX_WT
> + rlwimi r5, r4, 2, DAWRX_WT
> clrrdi r4, r4, 3
> std r4, VCPU_DAWR(r3)
> std r5, VCPU_DAWRX(r3)
Ping?
next prev parent reply other threads:[~2015-12-07 12:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-20 8:11 [PATCH] KVM: PPC: Fix emulation of H_SET_DABR/X on POWER8 Thomas Huth
2015-11-20 8:11 ` Thomas Huth
2015-11-20 15:42 ` Laurent Vivier
2015-11-20 15:42 ` Laurent Vivier
2015-11-23 1:35 ` David Gibson
2015-11-23 1:35 ` David Gibson
2015-12-07 12:01 ` Thomas Huth [this message]
2015-12-07 12:01 ` Thomas Huth
2015-12-10 0:40 ` Paul Mackerras
2015-12-10 0:40 ` Paul Mackerras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56657531.3040607@redhat.com \
--to=thuth@redhat.com \
--cc=kvm-ppc@vger.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.