VirtualBox

Changeset 66230 in vbox


Ignore:
Timestamp:
Mar 23, 2017 3:00:51 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
114150
Message:

VMM: Nested Hw.virt: Build fix for Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/HMSVMAll.cpp

    r66228 r66230  
    355355                   ||  VmcbNstGst.u64CR0 & X86_CR0_PG);
    356356            bool const fSvm                     = (uValidEfer & MSR_K6_EFER_SVME);
    357             bool const fLongModeSupported       = pVM->cpum.ro.GuestFeatures.fLongMode;
    358             bool const fLongModeActiveOrEnabled = (uValidEfer & (MSR_K6_EFER_LME | MSR_K6_EFER_LMA));
    359             bool const fLongModeEnabled         = (uValidEfer & MSR_K6_EFER_LME);
    360             bool const fPaging                  = (VmcbNstGst.u64CR0 & X86_CR0_PG);
    361             bool const fPae                     = (VmcbNstGst.u64CR4 & X86_CR4_PAE);
    362             bool const fProtMode                = (VmcbNstGst.u64CR0 & X86_CR0_PE);
     357            bool const fLongModeSupported       = RT_BOOL(pVM->cpum.ro.GuestFeatures.fLongMode);
     358            bool const fLongModeActiveOrEnabled = RT_BOOL(uValidEfer & (MSR_K6_EFER_LME | MSR_K6_EFER_LMA));
     359            bool const fLongModeEnabled         = RT_BOOL(uValidEfer & MSR_K6_EFER_LME);
     360            bool const fPaging                  = RT_BOOL(VmcbNstGst.u64CR0 & X86_CR0_PG);
     361            bool const fPae                     = RT_BOOL(VmcbNstGst.u64CR4 & X86_CR4_PAE);
     362            bool const fProtMode                = RT_BOOL(VmcbNstGst.u64CR0 & X86_CR0_PE);
    363363            bool const fLongModeWithPaging      = fLongModeEnabled && fPaging;
    364364            bool const fLongModeConformCS       = pCtx->cs.Attr.n.u1Long && pCtx->cs.Attr.n.u1DefBig;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette