~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/powerpc/include/asm/kvm_booke_hv_asm.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*
  3  * Copyright 2010-2011 Freescale Semiconductor, Inc.
  4  */
  5 
  6 #ifndef ASM_KVM_BOOKE_HV_ASM_H
  7 #define ASM_KVM_BOOKE_HV_ASM_H
  8 
  9 #include <asm/feature-fixups.h>
 10 
 11 #ifdef __ASSEMBLY__
 12 
 13 /*
 14  * All exceptions from guest state must go through KVM
 15  * (except for those which are delivered directly to the guest) --
 16  * there are no exceptions for which we fall through directly to
 17  * the normal host handler.
 18  *
 19  * 32-bit host
 20  * Expected inputs (normal exceptions):
 21  *   SCRATCH0 = saved r10
 22  *   r10 = thread struct
 23  *   r11 = appropriate SRR1 variant (currently used as scratch)
 24  *   r13 = saved CR
 25  *   *(r10 + THREAD_NORMSAVE(0)) = saved r11
 26  *   *(r10 + THREAD_NORMSAVE(2)) = saved r13
 27  *
 28  * Expected inputs (crit/mcheck/debug exceptions):
 29  *   appropriate SCRATCH = saved r8
 30  *   r8 = exception level stack frame
 31  *   r9 = *(r8 + _CCR) = saved CR
 32  *   r11 = appropriate SRR1 variant (currently used as scratch)
 33  *   *(r8 + GPR9) = saved r9
 34  *   *(r8 + GPR10) = saved r10 (r10 not yet clobbered)
 35  *   *(r8 + GPR11) = saved r11
 36  *
 37  * 64-bit host
 38  * Expected inputs (GEN/GDBELL/DBG/CRIT/MC exception types):
 39  *  r10 = saved CR
 40  *  r13 = PACA_POINTER
 41  *  *(r13 + PACA_EX##type + EX_R10) = saved r10
 42  *  *(r13 + PACA_EX##type + EX_R11) = saved r11
 43  *  SPRN_SPRG_##type##_SCRATCH = saved r13
 44  *
 45  * Expected inputs (TLB exception type):
 46  *  r10 = saved CR
 47  *  r12 = extlb pointer
 48  *  r13 = PACA_POINTER
 49  *  *(r12 + EX_TLB_R10) = saved r10
 50  *  *(r12 + EX_TLB_R11) = saved r11
 51  *  *(r12 + EX_TLB_R13) = saved r13
 52  *  SPRN_SPRG_GEN_SCRATCH = saved r12
 53  *
 54  * Only the bolted version of TLB miss exception handlers is supported now.
 55  */
 56 .macro DO_KVM intno srr1
 57 #ifdef CONFIG_KVM_BOOKE_HV
 58 BEGIN_FTR_SECTION
 59         mtocrf  0x80, r11       /* check MSR[GS] without clobbering reg */
 60         bf      3, 1975f
 61         b       kvmppc_handler_\intno\()_\srr1
 62 1975:
 63 END_FTR_SECTION_IFSET(CPU_FTR_EMB_HV)
 64 #endif
 65 .endm
 66 
 67 #endif /*__ASSEMBLY__ */
 68 #endif /* ASM_KVM_BOOKE_HV_ASM_H */
 69 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php