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

Function wrmsr

freebsd/amd64/include/cpufunc.h:397–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397static __inline void
398wrmsr(u_int msr, uint64_t newval)
399{
400 uint32_t low, high;
401
402 low = newval;
403 high = newval >> 32;
404 __asm __volatile("wrmsr" : : "a" (low), "d" (high), "c" (msr));
405}
406
407static __inline void
408load_cr0(u_long data)

Callers 15

svm_msr_guest_exitFunction · 0.50
svm_disableFunction · 0.50
svm_enableFunction · 0.50
svm_dr_enter_guestFunction · 0.50
svm_dr_leave_guestFunction · 0.50
vmx_msr_guest_enterFunction · 0.50
vmx_msr_guest_exitFunction · 0.50
vmx_enableFunction · 0.50
vmx_dr_enter_guestFunction · 0.50
vmx_dr_leave_guestFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected