Changeset 74632 in vbox for trunk/include/VBox/vmm
- Timestamp:
- Oct 6, 2018 3:14:32 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/cpum.h
r74539 r74632 1889 1889 { 1890 1890 RT_NOREF(pVCpu); 1891 if (pCtx->hwvirt.enmHwvirt != CPUMHWVIRT_VMX) 1892 return false; 1893 if (!pCtx->hwvirt.vmx.fInVmxNonRootMode) 1894 return false; 1891 Assert(pCtx->hwvirt.enmHwvirt == CPUMHWVIRT_VMX); 1892 Assert(pCtx->hwvirt.vmx.fInVmxNonRootMode); 1895 1893 Assert(pCtx->hwvirt.vmx.CTX_SUFF(pVmcs)); 1896 1894 return RT_BOOL(pCtx->hwvirt.vmx.CTX_SUFF(pVmcs)->u32PinCtls & uPinCtl); … … 1912 1910 { 1913 1911 RT_NOREF(pVCpu); 1914 if (pCtx->hwvirt.enmHwvirt != CPUMHWVIRT_VMX) 1915 return false; 1916 if (!pCtx->hwvirt.vmx.fInVmxNonRootMode) 1917 return false; 1912 Assert(pCtx->hwvirt.enmHwvirt == CPUMHWVIRT_VMX); 1913 Assert(pCtx->hwvirt.vmx.fInVmxNonRootMode); 1918 1914 Assert(pCtx->hwvirt.vmx.CTX_SUFF(pVmcs)); 1919 1915 return RT_BOOL(pCtx->hwvirt.vmx.CTX_SUFF(pVmcs)->u32ProcCtls & uProcCtl); … … 1937 1933 { 1938 1934 RT_NOREF(pVCpu); 1939 if (pCtx->hwvirt.enmHwvirt != CPUMHWVIRT_VMX) 1940 return false; 1941 if (!pCtx->hwvirt.vmx.fInVmxNonRootMode) 1942 return false; 1935 Assert(pCtx->hwvirt.enmHwvirt == CPUMHWVIRT_VMX); 1936 Assert(pCtx->hwvirt.vmx.fInVmxNonRootMode); 1943 1937 Assert(pCtx->hwvirt.vmx.CTX_SUFF(pVmcs)); 1944 1938 return RT_BOOL(pCtx->hwvirt.vmx.CTX_SUFF(pVmcs)->u32ProcCtls2 & uProcCtl2);
Note:
See TracChangeset
for help on using the changeset viewer.