- Timestamp:
- May 20, 2016 1:46:42 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r61053 r61100 823 823 APICMode_T apicMode; 824 824 hrc = biosSettings->COMGETTER(APICMode)(&apicMode); H(); 825 uint32_t u APIC;825 uint32_t uFwAPIC; 826 826 switch (apicMode) 827 827 { 828 828 case APICMode_Disabled: 829 u APIC = 0;829 uFwAPIC = 0; 830 830 break; 831 831 case APICMode_APIC: 832 u APIC = 1;832 uFwAPIC = 1; 833 833 break; 834 834 case APICMode_X2APIC: 835 u APIC = 2;835 uFwAPIC = 2; 836 836 break; 837 837 default: 838 838 AssertMsgFailed(("Invalid APICMode=%d\n", apicMode)); 839 u APIC = 1;839 uFwAPIC = 1; 840 840 break; 841 841 } … … 1031 1031 fEnableX2APIC = false; 1032 1032 } 1033 1034 /* Adjust firmware APIC handling to stay within the VCPU limits. */ 1035 if (uFwAPIC == 2 && !fEnableX2APIC) 1036 { 1037 if (fEnableAPIC) 1038 uFwAPIC = 1; 1039 else 1040 uFwAPIC = 0; 1041 LogRel(("Limiting the firmware APIC level from x2APIC to %s\n", fEnableAPIC ? "APIC" : "Disabled")); 1042 } 1043 else if (uFwAPIC == 1 && !fEnableAPIC) 1044 { 1045 uFwAPIC = 0; 1046 LogRel(("Limiting the firmware APIC level from APIC to Disabled\n")); 1047 } 1033 1048 1034 1049 /* … … 1668 1683 InsertConfigString(pBiosCfg, "FloppyDevice", "i82078"); 1669 1684 InsertConfigInteger(pBiosCfg, "IOAPIC", fIOAPIC); 1670 InsertConfigInteger(pBiosCfg, "APIC", u APIC);1685 InsertConfigInteger(pBiosCfg, "APIC", uFwAPIC); 1671 1686 BOOL fPXEDebug; 1672 1687 hrc = biosSettings->COMGETTER(PXEDebugEnabled)(&fPXEDebug); H(); … … 1773 1788 InsertConfigString(pCfg, "DeviceProps", deviceProps); 1774 1789 InsertConfigInteger(pCfg, "IOAPIC", fIOAPIC); 1775 InsertConfigInteger(pCfg, "APIC", u APIC);1790 InsertConfigInteger(pCfg, "APIC", uFwAPIC); 1776 1791 InsertConfigBytes(pCfg, "UUID", &HardwareUuid,sizeof(HardwareUuid)); 1777 1792 InsertConfigInteger(pCfg, "64BitEntry", f64BitEntry); /* boolean */
Note:
See TracChangeset
for help on using the changeset viewer.