summaryrefslogtreecommitdiff
path: root/arch/powerpc/kvm/trace_book3s.h
diff options
context:
space:
mode:
authorSimon Guo <wei.guo.simon@gmail.com>2018-05-21 08:24:22 +0300
committerPaul Mackerras <paulus@ozlabs.org>2018-05-22 12:51:13 +0300
commit2e6baa46b4ae785e3e954aaf9d2e8a0bb06ad33a (patch)
tree6a232907545e27d9b7fb61839a95a75b74f29c26 /arch/powerpc/kvm/trace_book3s.h
parent7092360399644ad4b12ac573c1996536b9e9b4b6 (diff)
downloadlinux-2e6baa46b4ae785e3e954aaf9d2e8a0bb06ad33a.tar.xz
KVM: PPC: Add giveup_ext() hook to PPC KVM ops
Currently HV will save math regs(FP/VEC/VSX) when trap into host. But PR KVM will only save math regs when qemu task switch out of CPU, or when returning from qemu code. To emulate FP/VEC/VSX mmio load, PR KVM need to make sure that math regs were flushed firstly and then be able to update saved VCPU FPR/VEC/VSX area reasonably. This patch adds giveup_ext() field to KVM ops. Only PR KVM has non-NULL giveup_ext() ops. kvmppc_complete_mmio_load() can invoke that hook (when not NULL) to flush math regs accordingly, before updating saved register vals. Math regs flush is also necessary for STORE, which will be covered in later patch within this patch series. Signed-off-by: Simon Guo <wei.guo.simon@gmail.com> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch/powerpc/kvm/trace_book3s.h')
0 files changed, 0 insertions, 0 deletions