]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit07aed47324c97a458a1eb1c7511c7b23a7e30c92
treef8c267432418099f9f79cbe8650b122041f87b5b
parentb975c8611bd7240c5d577cc7be810605ce1ff54f
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