aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/tm.h
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2014-03-25 10:47:02 +1100
committerPaul Mackerras <paulus@samba.org>2014-03-29 19:58:02 +1100
commite4e38121507a27d2ccc4b28d9e7fc4818a12c44c (patch)
treedc4779cee60b960a59bbd246d6a68faac292fc2a /arch/powerpc/include/asm/tm.h
parentKVM: PPC: Book3S HV: Fix KVM hang with CONFIG_KVM_XICS=n (diff)
downloadlinux-dev-e4e38121507a27d2ccc4b28d9e7fc4818a12c44c.tar.xz
linux-dev-e4e38121507a27d2ccc4b28d9e7fc4818a12c44c.zip
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>
Diffstat (limited to 'arch/powerpc/include/asm/tm.h')
-rw-r--r--arch/powerpc/include/asm/tm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/tm.h b/arch/powerpc/include/asm/tm.h
index 9dfbc34bdbf5..386a3efd3497 100644
--- a/arch/powerpc/include/asm/tm.h
+++ b/arch/powerpc/include/asm/tm.h
@@ -7,6 +7,8 @@
#include <uapi/asm/tm.h>
+#ifndef __ASSEMBLY__
+
#ifdef CONFIG_PPC_TRANSACTIONAL_MEM
extern void do_load_up_transact_fpu(struct thread_struct *thread);
extern void do_load_up_transact_altivec(struct thread_struct *thread);
@@ -20,3 +22,5 @@ extern void tm_recheckpoint(struct thread_struct *thread,
extern void tm_abort(uint8_t cause);
extern void tm_save_sprs(struct thread_struct *thread);
extern void tm_restore_sprs(struct thread_struct *thread);
+
+#endif /* __ASSEMBLY__ */