Commit eeb24de431ac8c80fd13a2c479cd0eb51b70484e

Authored by Anton Blanchard
Committed by Linus Torvalds
1 parent c4005e4f66

[PATCH] ppc64: enforce medium thread priority in hypervisor calls

Calls into the hypervisor do not raise the thread priority.  Ensure we are
running at medium priority upon entry to the hypervisor.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 1 changed file with 8 additions and 0 deletions Side-by-side Diff

arch/ppc64/kernel/pSeries_hvCall.S
... ... @@ -28,6 +28,8 @@
28 28 unsigned long *out3); R10
29 29 */
30 30 _GLOBAL(plpar_hcall)
  31 + HMT_MEDIUM
  32 +
31 33 mfcr r0
32 34  
33 35 std r8,STK_PARM(r8)(r1) /* Save out ptrs */
... ... @@ -53,6 +55,8 @@
53 55  
54 56 /* Simple interface with no output values (other than status) */
55 57 _GLOBAL(plpar_hcall_norets)
  58 + HMT_MEDIUM
  59 +
56 60 mfcr r0
57 61 stw r0,8(r1)
58 62  
... ... @@ -75,6 +79,8 @@
75 79 unsigned long *out1); 120(R1)
76 80 */
77 81 _GLOBAL(plpar_hcall_8arg_2ret)
  82 + HMT_MEDIUM
  83 +
78 84 mfcr r0
79 85 ld r11,STK_PARM(r11)(r1) /* put arg8 in R11 */
80 86 stw r0,8(r1)
... ... @@ -99,6 +105,8 @@
99 105 unsigned long *out4); 112(R1)
100 106 */
101 107 _GLOBAL(plpar_hcall_4out)
  108 + HMT_MEDIUM
  109 +
102 110 mfcr r0
103 111 stw r0,8(r1)
104 112