MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vmwrite

Function vmwrite

freebsd/amd64/vmm/intel/vmx_cpufunc.h:119–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119static __inline int
120vmwrite(uint64_t reg, uint64_t val)
121{
122 int error;
123
124 __asm __volatile("vmwrite %[val], %[reg];"
125 VMX_SET_ERROR_CODE
126 : [error] "=r" (error)
127 : [val] "r" (val), [reg] "r" (reg)
128 : "memory");
129
130 return (error);
131}
132
133static __inline int
134vmread(uint64_t r, uint64_t *addr)

Callers 9

vmcs_writeFunction · 0.85
vmx_initFunction · 0.85
vmx_set_tsc_offsetFunction · 0.85
vmx_setcapFunction · 0.85
vmcs_setregFunction · 0.85
vmcs_setdescFunction · 0.85
vmcs_set_msr_saveFunction · 0.85
vmcs_initFunction · 0.85
vmcs_setanyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected