]> 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)
commit70942343c7055a5c51d7df431311d221874ccd1b
treedc4779cee60b960a59bbd246d6a68faac292fc2a
parent0f7eaa5ebd12c45be768e13d3a40adc11db4fed4
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