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

Function vmx_cpl

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

* From section "Guest Register State" in the Intel SDM: CPL = SS.DPL */

Source from the content-addressed store, hash-verified

1910 * From section "Guest Register State" in the Intel SDM: CPL = SS.DPL
1911 */
1912static int
1913vmx_cpl(void)
1914{
1915 uint32_t ssar;
1916
1917 ssar = vmcs_read(VMCS_GUEST_SS_ACCESS_RIGHTS);
1918 return ((ssar >> 5) & 0x3);
1919}
1920
1921static enum vm_cpu_mode
1922vmx_cpu_mode(void)

Callers 1

vmx_paging_infoFunction · 0.85

Calls 1

vmcs_readFunction · 0.85

Tested by

no test coverage detected