KVM: PPC: Book3S HV: Add transactional memory support
commite4e38121507a27d2ccc4b28d9e7fc4818a12c44c
authorMichael Neuling <mikey@neuling.org>
Mon, 24 Mar 2014 23:47:02 +0000 (25 10:47 +1100)
committerPaul Mackerras <paulus@samba.org>
Sat, 29 Mar 2014 08:58:02 +0000 (29 19:58 +1100)
treedc4779cee60b960a59bbd246d6a68faac292fc2a
parent7505258c5fcb0a1cc3c76a47b4cf9506d21d10e6
KVM: PPC: Book3S HV: Add transactional memory support

This adds saving of the transactional memory (TM) checkpointed state
on guest entry and exit.  We only do this if we see that the guest has
an active transaction.

It also adds emulation of the TM state changes when delivering IRQs
into the guest.  According to the architecture, if we are
transactional when an IRQ occurs, the TM state is changed to
suspended, otherwise it's left unchanged.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Acked-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/include/asm/reg.h
arch/powerpc/include/asm/tm.h
arch/powerpc/kvm/book3s_64_mmu_hv.c
arch/powerpc/kvm/book3s_hv_rmhandlers.S