Changeset 20259 in vbox
- Timestamp:
- Jun 4, 2009 10:09:05 AM (16 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxApplianceEditorWgt.cpp
r19149 r20259 332 332 mType == KVirtualSystemDescriptionType_License || 333 333 mType == KVirtualSystemDescriptionType_OS || 334 mType == KVirtualSystemDescriptionType_CPU || 334 335 mType == KVirtualSystemDescriptionType_Memory || 335 336 mType == KVirtualSystemDescriptionType_SoundCard || -
trunk/src/VBox/Main/ApplianceImpl.cpp
r20220 r20259 1935 1935 } 1936 1936 1937 /* CPU count (ignored for now) */ 1938 // EntriesList vsdeCPU = vsd->findByType (VirtualSystemDescriptionType_CPU); 1937 /* CPU count */ 1938 std::list<VirtualSystemDescriptionEntry*> vsdeCPU = vsdescThis->findByType (VirtualSystemDescriptionType_CPU); 1939 const Utf8Str &cpuVBox = vsdeCPU.front()->strVbox; 1940 ULONG tmpCount = (ULONG)RTStrToUInt64(cpuVBox.c_str()); 1941 rc = pNewMachine->COMSETTER(CPUCount)(tmpCount); 1942 if (FAILED(rc)) throw rc; 1943 bool fEnableIOApic = false; 1944 /* We need HWVirt & IO-APIC if more than one CPU is requested */ 1945 if (tmpCount > 1) 1946 { 1947 rc = pNewMachine->COMSETTER(HWVirtExEnabled)(TRUE); 1948 if (FAILED(rc)) throw rc; 1949 1950 fEnableIOApic = true; 1951 } 1939 1952 1940 1953 /* RAM */ … … 1966 1979 Utf8Str strFamilyId(bstrFamilyId); 1967 1980 if (strFamilyId == "Windows") 1981 fEnableIOApic = true; 1982 1983 /* If IP-APIC should be enabled could be have different reasons. 1984 See CPU count & the Win test above. Here we enable it if it was 1985 previously requested. */ 1986 if (fEnableIOApic) 1968 1987 { 1969 1988 ComPtr<IBIOSSettings> pBIOSSettings; … … 3116 3135 strDescription = "Number of virtual CPUs"; 3117 3136 type = OVFResourceType_Processor; // 3 3118 lVirtualQuantity = 1; 3137 desc.strVbox.toInt(uTemp); 3138 lVirtualQuantity = uTemp; 3139 strCaption = Utf8StrFmt("%d virtual CPU", lVirtualQuantity); // without this ovftool won't eat the item 3119 3140 } 3120 3141 break;
Note:
See TracChangeset
for help on using the changeset viewer.