VirtualBox

Changeset 46973 in vbox for trunk


Ignore:
Timestamp:
Jul 4, 2013 9:46:17 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86981
Message:

VMM/HMVMXR0: Fail more gracefully when trying to run 64-bit guests on Darwin 32-bit/PAE kernels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r46942 r46973  
    20232023    pVM->hm.s.vmx.enmFlushVpid = VMX_FLUSH_VPID_NONE;
    20242024
     2025#ifdef VBOX_WITH_HYBRID_32BIT_KERNEL
     2026    /*
     2027     * This is for the darwin 32-bit/PAE kernels trying to execute 64-bit guests. We don't bother with
     2028     * the 32<->64 switcher in this case. This is a rare, legacy use-case with barely any test coverage.
     2029     */
     2030    if (   pVM->hm.s.fAllow64BitGuests
     2031        && !HMVMX_IS_64BIT_HOST_MODE())
     2032    {
     2033        LogRel(("VMXR0SetupVM: Unsupported guest and host paging mode combination.\n"));
     2034        return VERR_PGM_UNSUPPORTED_HOST_PAGING_MODE;
     2035    }
     2036#endif
     2037
    20252038    /* Setup the tagged-TLB flush handlers. */
    20262039    int rc = hmR0VmxSetupTaggedTlb(pVM);
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