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

Function inout_str_index

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

Source from the content-addressed store, hash-verified

1955}
1956
1957static uint64_t
1958inout_str_index(struct vmx *vmx, int vcpuid, int in)
1959{
1960 uint64_t val;
1961 int error;
1962 enum vm_reg_name reg;
1963
1964 reg = in ? VM_REG_GUEST_RDI : VM_REG_GUEST_RSI;
1965 error = vmx_getreg(vmx, vcpuid, reg, &val);
1966 KASSERT(error == 0, ("%s: vmx_getreg error %d", __func__, error));
1967 return (val);
1968}
1969
1970static uint64_t
1971inout_str_count(struct vmx *vmx, int vcpuid, int rep)

Callers 1

vmx_exit_processFunction · 0.85

Calls 1

vmx_getregFunction · 0.85

Tested by

no test coverage detected