]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Add transactional memory support
authorMichael Neuling <mikey@neuling.org>
Mon, 24 Mar 2014 23:47:02 +0000 (10:47 +1100)
committerPaul Mackerras <paulus@samba.org>
Sat, 29 Mar 2014 08:58:02 +0000 (19:58 +1100)
commit81380b83c8bfd6470b6404a3bf47849a695b2f34
treedc4779cee60b960a59bbd246d6a68faac292fc2a
parent6d61c43072e8ef7933439ea26f7434d8db4466dd
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