mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 14:21:47 +00:00
KVM: PPC: Book3S PR: Turn on FP/VSX/VMX MSR bits in kvmppc_save_tm()
kvmppc_save_tm() invokes store_fp_state/store_vr_state(). So it is mandatory to turn on FP/VSX/VMX MSR bits for its execution, just like what kvmppc_restore_tm() did. Previously HV KVM has turned the bits on outside of function kvmppc_save_tm(). Now we include this bit change in kvmppc_save_tm() so that the logic is cleaner. And PR KVM can reuse it later. Signed-off-by: Simon Guo <wei.guo.simon@gmail.com> Reviewed-by: Paul Mackerras <paulus@ozlabs.org> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
This commit is contained in:
parent
6f597c6b63
commit
7f386af7bd
@ -41,6 +41,8 @@ _GLOBAL(kvmppc_save_tm)
|
||||
mfmsr r8
|
||||
li r0, 1
|
||||
rldimi r8, r0, MSR_TM_LG, 63-MSR_TM_LG
|
||||
ori r8, r8, MSR_FP
|
||||
oris r8, r8, (MSR_VEC | MSR_VSX)@h
|
||||
mtmsrd r8
|
||||
|
||||
rldicl. r4, r4, 64 - MSR_TS_S_LG, 62
|
||||
|
Loading…
Reference in New Issue
Block a user