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

Function inout_str_seginfo

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

Source from the content-addressed store, hash-verified

2001}
2002
2003static void
2004inout_str_seginfo(struct vmx *vmx, int vcpuid, uint32_t inst_info, int in,
2005 struct vm_inout_str *vis)
2006{
2007 int error, s;
2008
2009 if (in) {
2010 vis->seg_name = VM_REG_GUEST_ES;
2011 } else {
2012 s = (inst_info >> 15) & 0x7;
2013 vis->seg_name = vm_segment_name(s);
2014 }
2015
2016 error = vmx_getdesc(vmx, vcpuid, vis->seg_name, &vis->seg_desc);
2017 KASSERT(error == 0, ("%s: vmx_getdesc error %d", __func__, error));
2018}
2019
2020static void
2021vmx_paging_info(struct vm_guest_paging *paging)

Callers 1

vmx_exit_processFunction · 0.85

Calls 2

vm_segment_nameFunction · 0.85
vmx_getdescFunction · 0.85

Tested by

no test coverage detected