VirtualBox

Changeset 67055 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 24, 2017 9:10:19 AM (8 years ago)
Author:
vboxsync
Message:

ConsoleImpl2: Prevent launching VMs with invalid APIC combinations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r66349 r67055  
    10761076                LogRel(("WARNING! 64-bit guest type selected but the host CPU does NOT support HW virtualization.\n"));
    10771077                fIsGuest64Bit = FALSE;
     1078            }
     1079        }
     1080
     1081        /* Sanitize valid/useful APIC combinations, see @bugref{8868}. */
     1082        if (!fEnableAPIC)
     1083        {
     1084            if (fIsGuest64Bit)
     1085                return VMR3SetError(pUVM, VERR_INVALID_PARAMETER, RT_SRC_POS, N_("Cannot disable the APIC for a 64-bit guest."));
     1086            if (cCpus > 1)
     1087                return VMR3SetError(pUVM, VERR_INVALID_PARAMETER, RT_SRC_POS, N_("Cannot disable the APIC for an SMP guest."));
     1088            if (fIOAPIC)
     1089            {
     1090                return VMR3SetError(pUVM, VERR_INVALID_PARAMETER, RT_SRC_POS,
     1091                                    N_("Cannot disable the APIC when the I/O APIC is present."));
    10781092            }
    10791093        }
Note: See TracChangeset for help on using the changeset viewer.

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