diff options
author | Paul Mackerras <paulus@ozlabs.org> | 2018-06-07 10:06:21 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2018-06-13 01:45:28 +0200 |
commit | a50623fb57002207b9b2636e1d3bd5cf17a3e74f (patch) | |
tree | b1b4b959bc8f66300d0636ba0ff6f753e6a1f7d4 /arch/x86/um/setjmp_64.S | |
parent | KVM: PPC: Book3S PR: Fix MSR setting when delivering interrupts (diff) | |
download | linux-a50623fb57002207b9b2636e1d3bd5cf17a3e74f.tar.xz linux-a50623fb57002207b9b2636e1d3bd5cf17a3e74f.zip |
KVM: PPC: Book3S PR: Fix failure status setting in treclaim. emulation
The treclaim. emulation needs to record failure status in the TEXASR
register if the transaction had not previously failed. However, the
current code first does kvmppc_save_tm_pr() (which does a treclaim.
itself) and then checks the failure summary bit in TEXASR after that.
Since treclaim. itself causes transaction failure, the FS bit is
always set, so we were never updating TEXASR with the failure cause
supplied by the guest as the RA parameter to the treclaim. instruction.
This caused the tm-unavailable test in tools/testing/selftests/powerpc/tm
to fail.
To fix this, we need to read TEXASR before calling kvmppc_save_tm_pr(),
and base the final value of TEXASR on that value.
Fixes: 03c81682a90b ("KVM: PPC: Book3S PR: Add emulation for treclaim.")
Reviewed-by: Simon Guo <wei.guo.simon@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch/x86/um/setjmp_64.S')
0 files changed, 0 insertions, 0 deletions