aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/book3s_64_mmu.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2015-11-20 09:11:45 +0100
committerPaul Mackerras <paulus@samba.org>2015-12-09 16:05:01 +1100
commit760a7364f27d974d100118d88190e574626e18a6 (patch)
tree0467ed6b66ed1b5a33ac00eb19cb6e08903e36d9 /arch/powerpc/kvm/book3s_64_mmu.c
parentKVM: PPC: Book3S HV: Handle unexpected traps in guest entry/exit code better (diff)
downloadlinux-dev-760a7364f27d974d100118d88190e574626e18a6.tar.xz
linux-dev-760a7364f27d974d100118d88190e574626e18a6.zip
KVM: PPC: Fix emulation of H_SET_DABR/X on POWER8
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. Cc: stable@vger.kernel.org # v3.14+ Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kvm/book3s_64_mmu.c')
0 files changed, 0 insertions, 0 deletions