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

Function vmcs_setany

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

Source from the content-addressed store, hash-verified

450}
451
452int
453vmcs_setany(struct vmcs *vmcs, int running, int ident, uint64_t val)
454{
455 int error;
456
457 if (!running)
458 VMPTRLD(vmcs);
459
460 error = vmwrite(ident, val);
461
462 if (!running)
463 VMCLEAR(vmcs);
464
465 return (error);
466}
467
468int
469vmcs_snapshot_reg(struct vmcs *vmcs, int running, int ident,

Callers 1

vmcs_snapshot_anyFunction · 0.85

Calls 3

VMPTRLDFunction · 0.85
vmwriteFunction · 0.85
VMCLEARFunction · 0.85

Tested by

no test coverage detected