KVM: PPC: Book3S PR: Add emulation for tabort. in privileged state
authorSimon Guo <[email protected]>
Wed, 23 May 2018 07:02:05 +0000 (15:02 +0800)
committerPaul Mackerras <[email protected]>
Fri, 1 Jun 2018 00:30:31 +0000 (10:30 +1000)
commit26798f88d58dff1b61abf04becf5055e6f860d4f
treec30fc5909be417cbbfb4f569b64fd0b2e60190cf
parente32c53d1cf0022af180548474f4c29c189d37d93
KVM: PPC: Book3S PR: Add emulation for tabort. in privileged state

Currently privileged-state guest will be run with TM disabled.

Although the privileged-state guest cannot initiate a new transaction,
it can use tabort to terminate its problem state's transaction.
So it is still necessary to emulate tabort. for privileged-state guest.

Tested with:
https://github.com/justdoitqd/publicFiles/blob/master/test_tabort.c

Signed-off-by: Simon Guo <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
arch/powerpc/kvm/book3s_emulate.c