VirtualBox

Changeset 87523 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 1, 2021 10:51:13 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142548
Message:

VMM/CPUM/HM: No else after return.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r87349 r87523  
    20892089            return rc;
    20902090        }
    2091         else
    2092         {
    2093             LogRel(("CPUM: Querying hardware-virtualization capability succeeded but did not find VT-x or AMD-V\n"));
    2094             return VERR_INTERNAL_ERROR_5;
    2095         }
    2096     }
    2097     else
    2098         LogRel(("CPUM: No hardware-virtualization capability detected\n"));
    2099 
     2091
     2092        LogRel(("CPUM: Querying hardware-virtualization capability succeeded but did not find VT-x or AMD-V\n"));
     2093        return VERR_INTERNAL_ERROR_5;
     2094    }
     2095    LogRel(("CPUM: No hardware-virtualization capability detected\n"));
    21002096    return VINF_SUCCESS;
    21012097}
  • trunk/src/VBox/VMM/include/HMInternal.h

    r87522 r87523  
    434434    bool                        fNestedPagingCfg;
    435435    /** Set when we've finalized the VMX / SVM initialization in ring-3
    436      *  (hmR3InitFinalizeR0Intel / hmR3InitFinalizeR0Amd). */
     436     * (hmR3InitFinalizeR0Intel / hmR3InitFinalizeR0Amd). */
    437437    bool                        fInitialized;
    438438    /** Set if large pages are enabled (requires nested paging).
     
    441441    bool                        fLargePages;
    442442    /** Set if we can support 64-bit guests or not.
    443      *  Config value that is copied to HMR0PERVM::fAllow64BitGuests on setup. */
     443     * Config value that is copied to HMR0PERVM::fAllow64BitGuests on setup. */
    444444    bool                        fAllow64BitGuestsCfg;
    445445    /** Set when we initialize VT-x or AMD-V once for all CPUs. */
     
    458458     * @todo Not really used by HM, move to APIC where it's actually used.  */
    459459    bool                        fPostedIntrs;
     460
    460461    /** @name Processed into HMR0PERVCPU::fWorldSwitcher by ring-0 on VM init.
    461462     * @{ */
     
    476477    bool                        fSpecCtrlByHost;
    477478    /** @} */
     479
    478480    /** Alignment padding. */
    479481    bool                        afPaddingMinus1[3];
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