OSDN Git Service

KVM: PPC: Book3S PR: Pass through MSR TM and TS bits to shadow_msr
authorSimon Guo <wei.guo.simon@gmail.com>
Wed, 23 May 2018 07:01:52 +0000 (15:01 +0800)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 1 Jun 2018 00:29:28 +0000 (10:29 +1000)
commit901938add3bd598bf641672a85e644ac07e77e9a
tree070cdecfbc7ec19bc92be5ca8c735212351fa4a4
parent25ddda07b6e55a12065631e20f7f1e198230502f
KVM: PPC: Book3S PR: Pass through MSR TM and TS bits to shadow_msr

PowerPC TM functionality needs MSR TM/TS bits support in hardware level.
Guest TM functionality can not be emulated with "fake" MSR (msr in magic
page) TS bits.

This patch syncs TM/TS bits in shadow_msr with the MSR value in magic
page, so that the MSR TS value which guest sees is consistent with actual
MSR bits running in guest.

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