diff options
Diffstat (limited to 'arch/x86/include/asm/mshyperv.h')
| -rw-r--r-- | arch/x86/include/asm/mshyperv.h | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyperv.h index 63cc96f064dc..581bb54dd464 100644 --- a/arch/x86/include/asm/mshyperv.h +++ b/arch/x86/include/asm/mshyperv.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */  #ifndef _ASM_X86_MSHYPER_H  #define _ASM_X86_MSHYPER_H @@ -179,7 +180,6 @@ static inline u64 hv_do_hypercall(u64 control, void *input, void *output)  	u64 input_address = input ? virt_to_phys(input) : 0;  	u64 output_address = output ? virt_to_phys(output) : 0;  	u64 hv_status; -	register void *__sp asm(_ASM_SP);  #ifdef CONFIG_X86_64  	if (!hv_hypercall_pg) @@ -187,7 +187,7 @@ static inline u64 hv_do_hypercall(u64 control, void *input, void *output)  	__asm__ __volatile__("mov %4, %%r8\n"  			     "call *%5" -			     : "=a" (hv_status), "+r" (__sp), +			     : "=a" (hv_status), ASM_CALL_CONSTRAINT,  			       "+c" (control), "+d" (input_address)  			     :  "r" (output_address), "m" (hv_hypercall_pg)  			     : "cc", "memory", "r8", "r9", "r10", "r11"); @@ -202,7 +202,7 @@ static inline u64 hv_do_hypercall(u64 control, void *input, void *output)  	__asm__ __volatile__("call *%7"  			     : "=A" (hv_status), -			       "+c" (input_address_lo), "+r" (__sp) +			       "+c" (input_address_lo), ASM_CALL_CONSTRAINT  			     : "A" (control),  			       "b" (input_address_hi),  			       "D"(output_address_hi), "S"(output_address_lo), @@ -224,12 +224,11 @@ static inline u64 hv_do_hypercall(u64 control, void *input, void *output)  static inline u64 hv_do_fast_hypercall8(u16 code, u64 input1)  {  	u64 hv_status, control = (u64)code | HV_HYPERCALL_FAST_BIT; -	register void *__sp asm(_ASM_SP);  #ifdef CONFIG_X86_64  	{  		__asm__ __volatile__("call *%4" -				     : "=a" (hv_status), "+r" (__sp), +				     : "=a" (hv_status), ASM_CALL_CONSTRAINT,  				       "+c" (control), "+d" (input1)  				     : "m" (hv_hypercall_pg)  				     : "cc", "r8", "r9", "r10", "r11"); @@ -242,7 +241,7 @@ static inline u64 hv_do_fast_hypercall8(u16 code, u64 input1)  		__asm__ __volatile__ ("call *%5"  				      : "=A"(hv_status),  					"+c"(input1_lo), -					"+r"(__sp) +					ASM_CALL_CONSTRAINT  				      :	"A" (control),  					"b" (input1_hi),  					"m" (hv_hypercall_pg) @@ -291,6 +290,7 @@ static inline u64 hv_do_rep_hypercall(u16 code, u16 rep_count, u16 varhead_size,   * to this information.   */  extern u32 *hv_vp_index; +extern u32 hv_max_vp_index;  /**   * hv_cpu_number_to_vp_number() - Map CPU to VP. |