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

Function vm_set_tsc_offset

freebsd/amd64/vmm/vmm.c:2896–2908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2894}
2895
2896int
2897vm_set_tsc_offset(struct vm *vm, int vcpuid, uint64_t offset)
2898{
2899 struct vcpu *vcpu;
2900
2901 if (vcpuid < 0 || vcpuid >= VM_MAXCPU)
2902 return (EINVAL);
2903
2904 vcpu = &vm->vcpu[vcpuid];
2905 vcpu->tsc_offset = offset;
2906
2907 return (0);
2908}
2909
2910int
2911vm_restore_time(struct vm *vm)

Callers 2

svm_set_tsc_offsetFunction · 0.85
vmx_set_tsc_offsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected