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

Function vmcs_getany

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

Source from the content-addressed store, hash-verified

434
435#ifdef BHYVE_SNAPSHOT
436int
437vmcs_getany(struct vmcs *vmcs, int running, int ident, uint64_t *val)
438{
439 int error;
440
441 if (!running)
442 VMPTRLD(vmcs);
443
444 error = vmread(ident, val);
445
446 if (!running)
447 VMCLEAR(vmcs);
448
449 return (error);
450}
451
452int
453vmcs_setany(struct vmcs *vmcs, int running, int ident, uint64_t val)

Callers 1

vmcs_snapshot_anyFunction · 0.85

Calls 3

VMPTRLDFunction · 0.85
vmreadFunction · 0.85
VMCLEARFunction · 0.85

Tested by

no test coverage detected