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

Function vmcs_fix_regval

freebsd/amd64/vmm/intel/vmcs.c:64–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 &no_flush_rsb, 0, "Do not flush RSB upon vmexit");
63
64static uint64_t
65vmcs_fix_regval(uint32_t encoding, uint64_t val)
66{
67
68 switch (encoding) {
69 case VMCS_GUEST_CR0:
70 val = vmx_fix_cr0(val);
71 break;
72 case VMCS_GUEST_CR4:
73 val = vmx_fix_cr4(val);
74 break;
75 default:
76 break;
77 }
78 return (val);
79}
80
81static uint32_t
82vmcs_field_encoding(int ident)

Callers 1

vmcs_setregFunction · 0.85

Calls 2

vmx_fix_cr0Function · 0.85
vmx_fix_cr4Function · 0.85

Tested by

no test coverage detected