]> 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)
commit570b35179f636363b1ac5727014304240cd536c7
treef8c267432418099f9f79cbe8650b122041f87b5b
parent4f251368bd32b62daea37b36e8145766f0851d1a
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