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

Function vmclear

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

returns 0 on success and non-zero on failure */

Source from the content-addressed store, hash-verified

73
74/* returns 0 on success and non-zero on failure */
75static __inline int
76vmclear(struct vmcs *vmcs)
77{
78 int error;
79 uint64_t addr;
80
81 addr = vtophys(vmcs);
82 __asm __volatile("vmclear %[addr];"
83 VMX_SET_ERROR_CODE
84 : [error] "=r" (error)
85 : [addr] "m" (*(uint64_t *)&addr)
86 : "memory");
87 return (error);
88}
89
90static __inline void
91vmxoff(void)

Callers 2

VMCLEARFunction · 0.85
vmx_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected