summaryrefslogtreecommitdiff
path: root/arch/x86/video
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@ozlabs.org>2017-06-16 01:53:19 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-07 01:59:41 (GMT)
commitc39c3aeb2b417f0f12ab729f9631d9f90cd830f3 (patch)
treec64e40391a0568d6b79bb3614234d61b226623ae /arch/x86/video
parente5cd34d10459e20a78514efcd7a45cfc370743c2 (diff)
downloadlinux-c39c3aeb2b417f0f12ab729f9631d9f90cd830f3.tar.xz
KVM: PPC: Book3S HV: Save/restore host values of debug registers
commit 7ceaa6dcd8c6f59588428cec37f3c8093dd1011f upstream. At present, HV KVM on POWER8 and POWER9 machines loses any instruction or data breakpoint set in the host whenever a guest is run. Instruction breakpoints are currently only used by xmon, but ptrace and the perf_event subsystem can set data breakpoints as well as xmon. To fix this, we save the host values of the debug registers (CIABR, DAWR and DAWRX) before entering the guest and restore them on exit. To provide space to save them in the stack frame, we expand the stack frame allocated by kvmppc_hv_entry() from 112 to 144 bytes. [paulus@ozlabs.org - Adjusted stack offsets since we aren't saving POWER9-specific registers.] Fixes: b005255e12a3 ("KVM: PPC: Book3S HV: Context-switch new POWER8 SPRs", 2014-01-08) Signed-off-by: Paul Mackerras <paulus@ozlabs.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/video')
0 files changed, 0 insertions, 0 deletions