Changeset 25825 in vbox for trunk/src/VBox/Devices/PC
- Timestamp:
- Jan 14, 2010 10:39:12 AM (15 years ago)
- Location:
- trunk/src/VBox/Devices/PC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp
r25817 r25825 144 144 unsigned char *pbAmlCode = NULL; 145 145 size_t cbAmlCode = 0; 146 bool fCpuHot plug = false;147 int rc = CFGMR3QueryBoolDef(pDevIns->pCfgHandle, "CpuHotplug", &fCpuHot plug, false);146 bool fCpuHotPlug = false; 147 int rc = CFGMR3QueryBoolDef(pDevIns->pCfgHandle, "CpuHotplug", &fCpuHotPlug, false); /** @todo r=bird: Rename to CpuHotPlug. */ 148 148 if (RT_FAILURE(rc)) 149 149 return PDMDEV_SET_ERROR(pDevIns, rc, 150 150 N_("Configuration error: Failed to read \"CpuHotplug\"")); 151 151 152 if (fCpuHot plug)152 if (fCpuHotPlug) 153 153 { 154 154 pbAmlCode = AmlCodeCpuHotplug; -
trunk/src/VBox/Devices/PC/DevACPI.cpp
r25820 r25825 238 238 uint32_t cbMADT; 239 239 /** Array of flags of attached CPUs */ 240 bool afCpuAttached[ 32]; /* Maximum we support atm*/240 bool afCpuAttached[VMM_MAX_CPU_COUNT]; /**< @todo use VMCPUSET. */ 241 241 /** Mask of locked CPUs (used by the guest) */ 242 uint32_t uCpusLocked; 243 /** Flag whether CPU hot plugging is enabled */244 bool fCpuHot plug;242 uint32_t uCpusLocked; /**< @todo use VMCPUSET. */ 243 /** Flag whether CPU hot plugging is enabled */ 244 bool fCpuHotPlug; 245 245 /** Aligning IBase. */ 246 246 bool afAlignment[4]; … … 731 731 732 732 /* We have to force physical APIC mode or Linux can't use more than 8 CPUs */ 733 if (s->fCpuHot plug)733 if (s->fCpuHotPlug) 734 734 fadt.u32Flags |= RT_H2LE_U32(FADT_FL_FORCE_APIC_PHYS_DEST_MODE); 735 735 … … 2095 2095 /* 2096 2096 * Lock the CPU because we don't know if the guest will use it or not. 2097 * Prevents ejection while the CPU is still used 2097 * Prevents ejection while the CPU is still used 2098 2098 */ 2099 2099 s->uCpusLocked |= RT_BIT(iLUN); … … 2195 2195 "ShowRtc\0" 2196 2196 "ShowCpu\0" 2197 "CpuHotplug\0" 2197 "CpuHotplug\0" /** @todo r=bird: Rename to CpuHotPlug. */ 2198 2198 )) 2199 2199 return PDMDEV_SET_ERROR(pDevIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES, … … 2242 2242 N_("Configuration error: Failed to read \"ShowCpu\"")); 2243 2243 2244 /* query whether we are allow CPU hot plugging */2245 rc = CFGMR3QueryBoolDef(pCfgHandle, "CpuHotplug", &s->fCpuHot plug, false);2244 /* query whether we are allow CPU hot plugging */ 2245 rc = CFGMR3QueryBoolDef(pCfgHandle, "CpuHotplug", &s->fCpuHotPlug, false); /** @todo r=bird: Rename to CpuHotPlug. */ 2246 2246 if (RT_FAILURE(rc)) 2247 2247 return PDMDEV_SET_ERROR(pDevIns, rc, … … 2281 2281 for (unsigned i = 1; i < s->cCpus; i++) 2282 2282 { 2283 if (s->fCpuHot plug)2283 if (s->fCpuHotPlug) 2284 2284 { 2285 2285 PPDMIBASE IBaseTmp; … … 2302 2302 else 2303 2303 { 2304 /* CPU is always attached if hot plug is not enabled. */2304 /* CPU is always attached if hot-plug is not enabled. */ 2305 2305 s->afCpuAttached[i] = true; 2306 2306 s->uCpusLocked |= RT_BIT(i);
Note:
See TracChangeset
for help on using the changeset viewer.