]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S PR: Move kvmppc_save_tm/kvmppc_restore_tm to separate file
authorSimon Guo <wei.guo.simon@gmail.com>
Wed, 23 May 2018 07:01:47 +0000 (15:01 +0800)
committerPaul Mackerras <paulus@ozlabs.org>
Thu, 31 May 2018 01:35:12 +0000 (11:35 +1000)
commita9321a2284b8aa951c775dc5dbb46e2f0c21bc31
tree5f61519a22bed62b22b29a994b5ce1fd674b7b35
parent0f11e3671240ddf18d9b59871dd92affcb57c348
KVM: PPC: Book3S PR: Move kvmppc_save_tm/kvmppc_restore_tm to separate file

It is a simple patch just for moving kvmppc_save_tm/kvmppc_restore_tm()
functionalities to tm.S. There is no logic change. The reconstruct of
those APIs will be done in later patches to improve readability.

It is for preparation of reusing those APIs on both HV/PR PPC KVM.

Some slight change during move the functions includes:
- surrounds some HV KVM specific code with CONFIG_KVM_BOOK3S_HV_POSSIBLE
for compilation.
- use _GLOBAL() to define kvmppc_save_tm/kvmppc_restore_tm()

[paulus@ozlabs.org - rebased on top of f0e8ed29c1c9 ("KVM: PPC: Book3S HV:
 Factor fake-suspend handling out of kvmppc_save/restore_tm", 2018-05-30)]

Signed-off-by: Simon Guo <wei.guo.simon@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/Makefile
arch/powerpc/kvm/book3s_hv_rmhandlers.S
arch/powerpc/kvm/tm.S [new file with mode: 0644]