OSDN Git Service

KVM: PPC: Book3S PR: Add emulation for treclaim.
authorSimon Guo <wei.guo.simon@gmail.com>
Wed, 23 May 2018 07:02:03 +0000 (15:02 +0800)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 1 Jun 2018 00:30:19 +0000 (10:30 +1000)
commit03c81682a90b3fc3434d3e33f3f4c7f1f39d65cd
treef8c267432418099f9f79cbe8650b122041f87b5b
parent19c585eb45e360db43790c6724a3ea929ea03de3
KVM: PPC: Book3S PR: Add emulation for treclaim.

This patch adds support for "treclaim." emulation when PR KVM guest
executes treclaim. and traps to host.

We will firstly do treclaim. and save TM checkpoint. Then it is
necessary to update vcpu current reg content with checkpointed vals.
When rfid into guest again, those vcpu current reg content (now the
checkpoint vals) will be loaded into regs.

Signed-off-by: Simon Guo <wei.guo.simon@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_emulate.c