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

Function vmx_shadow_reg

freebsd/amd64/vmm/intel/vmx.c:3317–3336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3315}
3316
3317static int
3318vmx_shadow_reg(int reg)
3319{
3320 int shreg;
3321
3322 shreg = -1;
3323
3324 switch (reg) {
3325 case VM_REG_GUEST_CR0:
3326 shreg = VMCS_CR0_SHADOW;
3327 break;
3328 case VM_REG_GUEST_CR4:
3329 shreg = VMCS_CR4_SHADOW;
3330 break;
3331 default:
3332 break;
3333 }
3334
3335 return (shreg);
3336}
3337
3338static int
3339vmx_getreg(void *arg, int vcpu, int reg, uint64_t *retval)

Callers 1

vmx_setregFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected