Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\mshyperv.h Create Date:2022-07-28 08:15:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Rep hypercalls. Callers of this functions are supposed to ensure that* rep_count and varhead_size comply with Hyper-V hypercall definition.

Proto:static inline u64 hv_do_rep_hypercall(u16 code, u16 rep_count, u16 varhead_size, void *input, void *output)

Type:u64

Parameter:

TypeParameterName
u16code
u16rep_count
u16varhead_size
void *input
void *output
184  control = code
188  control |= varhead_size << HV_HYPERCALL_VARHEAD_OFFSET
189  control |= rep_count << HV_HYPERCALL_REP_COMP_OFFSET
191  Do
192  status = hv_do_hypercall(control, input, output)
193  If (status & HV_HYPERCALL_RESULT_MASK) != hypercall status code Then Return status
197  rep_comp = (status & HV_HYPERCALL_REP_COMP_MASK) >> HV_HYPERCALL_REP_COMP_OFFSET
200  control &= ~HV_HYPERCALL_REP_START_MASK
201  control |= rep_comp << HV_HYPERCALL_REP_START_OFFSET
203  h_nmi_watchdog - restart NMI watchdog timeout.* If the architecture supports the NMI watchdog, touch_nmi_watchdog()* may be used to reset the timeout - for code which intentionally* disables interrupts for a long time. This call is stateless.
204  When rep_comp < rep_count cycle
206  Return status