VirtualBox

Changeset 23750 in vbox for trunk/src


Ignore:
Timestamp:
Oct 14, 2009 9:26:48 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53476
Message:

Introduced the Synthetic CPU attribute and a get/set method for CPU properties.

Location:
trunk/src/VBox
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r23733 r23750  
    228228        RTPrintf("Number of CPUs:  %u\n", numCpus);
    229229
     230    BOOL fSyntheticCpu;
     231    machine->GetCpuProperty(CpuPropertyType_Synthetic, &fSyntheticCpu);
     232    if (details == VMINFO_MACHINEREADABLE)
     233        RTPrintf("synthcpu=\"%s\"\n", fSyntheticCpu ? "on" : "off");
     234    else
     235        RTPrintf("Synthetic Cpu:   %s\n", fSyntheticCpu ? "on" : "off");
     236
    230237    ComPtr <IBIOSSettings> biosSettings;
    231238    machine->COMGETTER(BIOSSettings)(biosSettings.asOutParam());
     
    330337
    331338    BOOL PAEEnabled;
    332     machine->COMGETTER(PAEEnabled)(&PAEEnabled);
     339    machine->GetCpuProperty(CpuPropertyType_PAE, &PAEEnabled);
    333340    if (details == VMINFO_MACHINEREADABLE)
    334341        RTPrintf("pae=\"%s\"\n", PAEEnabled ? "on" : "off");
     
    358365
    359366    BOOL HWVirtExNestedPagingEnabled;
    360     machine->GetHWVirtExProperty(HWVirtExPropertyType_NestedPagingEnabled, &HWVirtExNestedPagingEnabled);
     367    machine->GetHWVirtExProperty(HWVirtExPropertyType_NestedPaging, &HWVirtExNestedPagingEnabled);
    361368    if (details == VMINFO_MACHINEREADABLE)
    362369        RTPrintf("nestedpaging=\"%s\"\n", HWVirtExNestedPagingEnabled ? "on" : "off");
     
    365372
    366373    BOOL HWVirtExVPIDEnabled;
    367     machine->GetHWVirtExProperty(HWVirtExPropertyType_VPIDEnabled, &HWVirtExVPIDEnabled);
     374    machine->GetHWVirtExProperty(HWVirtExPropertyType_VPID, &HWVirtExVPIDEnabled);
    368375    if (details == VMINFO_MACHINEREADABLE)
    369376        RTPrintf("vtxvpid=\"%s\"\n", HWVirtExVPIDEnabled ? "on" : "off");
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r23738 r23750  
    6565    MODIFYVMIOAPIC,
    6666    MODIFYVMPAE,
     67    MODIFYVMSYNTHCPU,
    6768    MODIFYVMHWVIRTEX,
    6869    MODIFYVMHWVIRTEXEXCLUSIVE,
     
    137138    { "--ioapic",                  MODIFYVMIOAPIC,                  RTGETOPT_REQ_STRING },
    138139    { "--pae",                     MODIFYVMPAE,                     RTGETOPT_REQ_STRING },
     140    { "--synthcpu",                MODIFYVMSYNTHCPU,                RTGETOPT_REQ_STRING },
    139141    { "--hwvirtex",                MODIFYVMHWVIRTEX,                RTGETOPT_REQ_STRING },
    140142    { "--hwvirtexexcl",            MODIFYVMHWVIRTEXEXCLUSIVE,       RTGETOPT_REQ_STRING },
     
    363365                    if (!strcmp(pValueUnion.psz, "on"))
    364366                    {
    365                         CHECK_ERROR (machine, COMSETTER(PAEEnabled)(true));
     367                        CHECK_ERROR (machine, SetCpuProperty(CpuPropertyType_PAE, true));
    366368                    }
    367369                    else if (!strcmp(pValueUnion.psz, "off"))
    368370                    {
    369                         CHECK_ERROR (machine, COMSETTER(PAEEnabled)(false));
     371                        CHECK_ERROR (machine, SetCpuProperty(CpuPropertyType_PAE, false));
    370372                    }
    371373                    else
     
    378380            }
    379381
     382            case MODIFYVMSYNTHCPU:
     383            {
     384                if (pValueUnion.psz)
     385                {
     386                    if (!strcmp(pValueUnion.psz, "on"))
     387                    {
     388                        CHECK_ERROR (machine, SetCpuProperty(CpuPropertyType_Synthetic, true));
     389                    }
     390                    else if (!strcmp(pValueUnion.psz, "off"))
     391                    {
     392                        CHECK_ERROR (machine, SetCpuProperty(CpuPropertyType_Synthetic, false));
     393                    }
     394                    else
     395                    {
     396                        errorArgument("Invalid --synthcpu argument '%s'", pValueUnion.psz);
     397                        rc = E_FAIL;
     398                    }
     399                }
     400                break;
     401            }
     402
    380403            case MODIFYVMHWVIRTEX:
    381404            {
     
    426449                    if (!strcmp(pValueUnion.psz, "on"))
    427450                    {
    428                         CHECK_ERROR (machine, SetHWVirtExProperty(HWVirtExPropertyType_NestedPagingEnabled, TRUE));
     451                        CHECK_ERROR (machine, SetHWVirtExProperty(HWVirtExPropertyType_NestedPaging, TRUE));
    429452                    }
    430453                    else if (!strcmp(pValueUnion.psz, "off"))
    431454                    {
    432                         CHECK_ERROR (machine, SetHWVirtExProperty(HWVirtExPropertyType_NestedPagingEnabled, FALSE));
     455                        CHECK_ERROR (machine, SetHWVirtExProperty(HWVirtExPropertyType_NestedPaging, FALSE));
    433456                    }
    434457                    else
     
    447470                    if (!strcmp(pValueUnion.psz, "on"))
    448471                    {
    449                         CHECK_ERROR (machine, SetHWVirtExProperty(HWVirtExPropertyType_VPIDEnabled, TRUE));
     472                        CHECK_ERROR (machine, SetHWVirtExProperty(HWVirtExPropertyType_VPID, TRUE));
    450473                    }
    451474                    else if (!strcmp(pValueUnion.psz, "off"))
    452475                    {
    453                         CHECK_ERROR (machine, SetHWVirtExProperty(HWVirtExPropertyType_VPIDEnabled, FALSE));
     476                        CHECK_ERROR (machine, SetHWVirtExProperty(HWVirtExPropertyType_VPID, FALSE));
    454477                    }
    455478                    else
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r23733 r23750  
    16171617
    16181618        /* PAE/NX */
    1619         QString pae = aMachine.GetPAEEnabled()
     1619        QString pae = aMachine.GetCpuProperty(KCpuPropertyType_PAE)
    16201620            ? tr ("Enabled", "details report (PAE/NX)")
    16211621            : tr ("Disabled", "details report (PAE/NX)");
     
    16281628
    16291629        /* Nested Paging */
    1630         QString nested = aMachine.GetHWVirtExProperty(KHWVirtExPropertyType_NestedPagingEnabled)
     1630        QString nested = aMachine.GetHWVirtExProperty(KHWVirtExPropertyType_NestedPaging)
    16311631            ? tr ("Enabled", "details report (Nested Paging)")
    16321632            : tr ("Disabled", "details report (Nested Paging)");
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsSystem.cpp

    r23733 r23750  
    174174                         .GetProcessorFeature (KProcessorFeature_PAE);
    175175    mCbPae->setEnabled (fPAESupported);
    176     mCbPae->setChecked (aMachine.GetPAEEnabled());
     176    mCbPae->setChecked (aMachine.GetCpuProperty(KCpuPropertyType_PAE));
    177177
    178178    /* VT-x/AMD-V */
     
    183183    mCbNestedPaging->setEnabled (fVTxAMDVSupported &&
    184184                                 aMachine.GetHWVirtExProperty(KHWVirtExPropertyType_Enabled));
    185     mCbNestedPaging->setChecked (aMachine.GetHWVirtExProperty(KHWVirtExPropertyType_NestedPagingEnabled));
     185    mCbNestedPaging->setChecked (aMachine.GetHWVirtExProperty(KHWVirtExPropertyType_NestedPaging));
    186186
    187187    if (mValidator)
     
    228228
    229229    /* PAE/NX */
    230     mMachine.SetPAEEnabled (mCbPae->isChecked());
     230    mMachine.SetCpuProperty(KCpuPropertyType_PAE, mCbPae->isChecked());
    231231
    232232    /* VT-x/AMD-V */
     
    235235
    236236    /* Nested Paging */
    237     mMachine.SetHWVirtExProperty(KHWVirtExPropertyType_NestedPagingEnabled, mCbNestedPaging->isChecked());
     237    mMachine.SetHWVirtExProperty(KHWVirtExPropertyType_NestedPaging, mCbNestedPaging->isChecked());
    238238}
    239239
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r23733 r23750  
    328328    /* HWVirtEx exclusive mode */
    329329    BOOL fHWVirtExExclusive = true;
    330     hrc = pMachine->GetHWVirtExProperty(HWVirtExPropertyType_Exclusive, &fHWVirtExExclusive);                   H();
     330    hrc = pMachine->GetHWVirtExProperty(HWVirtExPropertyType_Exclusive, &fHWVirtExExclusive);  H();
    331331    rc = CFGMR3InsertInteger(pHWVirtExt, "Exclusive", fHWVirtExExclusive);                     RC_CHECK();
    332332
    333333    /* Nested paging (VT-x/AMD-V) */
    334334    BOOL fEnableNestedPaging = false;
    335     hrc = pMachine->GetHWVirtExProperty(HWVirtExPropertyType_NestedPagingEnabled, &fEnableNestedPaging);   H();
     335    hrc = pMachine->GetHWVirtExProperty(HWVirtExPropertyType_NestedPaging, &fEnableNestedPaging);   H();
    336336    rc = CFGMR3InsertInteger(pHWVirtExt, "EnableNestedPaging", fEnableNestedPaging);     RC_CHECK();
    337337
    338338    /* VPID (VT-x) */
    339339    BOOL fEnableVPID = false;
    340     hrc = pMachine->GetHWVirtExProperty(HWVirtExPropertyType_VPIDEnabled, &fEnableVPID);                   H();
     340    hrc = pMachine->GetHWVirtExProperty(HWVirtExPropertyType_VPID, &fEnableVPID);        H();
    341341    rc = CFGMR3InsertInteger(pHWVirtExt, "EnableVPID", fEnableVPID);                     RC_CHECK();
    342342
    343343    /* Physical Address Extension (PAE) */
    344344    BOOL fEnablePAE = false;
    345     hrc = pMachine->COMGETTER(PAEEnabled)(&fEnablePAE);                             H();
     345    hrc = pMachine->GetCpuProperty(CpuPropertyType_PAE, &fEnablePAE);               H();
    346346    rc = CFGMR3InsertInteger(pRoot, "EnablePAE", fEnablePAE);                       RC_CHECK();
     347
     348    /* Synthetic CPU */
     349    BOOL fSyntheticCpu = false;
     350    hrc = pMachine->GetCpuProperty(CpuPropertyType_Synthetic, &fSyntheticCpu);      H();
     351    rc = CFGMR3InsertInteger(pRoot, "SyntheticCpu", fSyntheticCpu);                 RC_CHECK();
    347352
    348353    BOOL fPXEDebug;
  • trunk/src/VBox/Main/MachineImpl.cpp

    r23733 r23750  
    187187    mHWVirtExExclusive = true;
    188188    mPAEEnabled = false;
     189    mSyntheticCpu = false;
    189190    mPropertyServiceActive = false;
    190191
     
    225226        mHWVirtExExclusive != that.mHWVirtExExclusive ||
    226227        mPAEEnabled != that.mPAEEnabled ||
     228        mSyntheticCpu != that.mSyntheticCpu ||
    227229        mCPUCount != that.mCPUCount ||
    228230        mClipboardMode != that.mClipboardMode)
     
    12971299}
    12981300
    1299 STDMETHODIMP Machine::GetHWVirtExProperty(HWVirtExPropertyType_T property, BOOL *aVal)
     1301STDMETHODIMP Machine::GetCpuProperty(CpuPropertyType_T property, BOOL *aVal)
    13001302{
    13011303    if (!aVal)
     
    13041306    AutoCaller autoCaller(this);
    13051307    CheckComRCReturnRC(autoCaller.rc());
     1308
     1309    AutoReadLock alock(this);
     1310
     1311    switch(property)
     1312    {
     1313    case CpuPropertyType_PAE:
     1314        *aVal = mHWData->mPAEEnabled;
     1315        break;
     1316
     1317    case CpuPropertyType_Synthetic:
     1318        *aVal = mHWData->mSyntheticCpu;
     1319        break;
     1320
     1321    default:
     1322        return E_INVALIDARG;
     1323    }
     1324    return S_OK;
     1325}
     1326
     1327STDMETHODIMP Machine::SetCpuProperty(CpuPropertyType_T property, BOOL aVal)
     1328{
     1329    if (!aVal)
     1330        return E_POINTER;
     1331
     1332    AutoCaller autoCaller(this);
     1333    CheckComRCReturnRC(autoCaller.rc());
     1334
     1335    AutoWriteLock alock(this);
     1336
     1337    HRESULT rc = checkStateDependency(MutableStateDep);
     1338    CheckComRCReturnRC(rc);
     1339
     1340    switch(property)
     1341    {
     1342    case CpuPropertyType_PAE:
     1343        mHWData->mPAEEnabled = !!aVal;
     1344        break;
     1345
     1346    case CpuPropertyType_Synthetic:
     1347        mHWData->mSyntheticCpu = !!aVal;
     1348        break;
     1349
     1350    default:
     1351        return E_INVALIDARG;
     1352    }
     1353    return S_OK;
     1354}
     1355
     1356STDMETHODIMP Machine::GetHWVirtExProperty(HWVirtExPropertyType_T property, BOOL *aVal)
     1357{
     1358    if (!aVal)
     1359        return E_POINTER;
     1360
     1361    AutoCaller autoCaller(this);
     1362    CheckComRCReturnRC(autoCaller.rc());
     1363
     1364    AutoReadLock alock(this);
    13061365
    13071366    switch(property)
     
    13151374        break;
    13161375
    1317     case HWVirtExPropertyType_VPIDEnabled:
     1376    case HWVirtExPropertyType_VPID:
    13181377        *aVal = mHWData->mHWVirtExVPIDEnabled;
    13191378        break;
    13201379
    1321     case HWVirtExPropertyType_NestedPagingEnabled:
     1380    case HWVirtExPropertyType_NestedPaging:
    13221381        *aVal = mHWData->mHWVirtExNestedPagingEnabled;
    13231382        break;
     
    13431402    case HWVirtExPropertyType_Enabled:
    13441403        mHWData.backup();
    1345         mHWData->mHWVirtExEnabled = aVal;
     1404        mHWData->mHWVirtExEnabled = !!aVal;
    13461405        break;
    13471406
    13481407    case HWVirtExPropertyType_Exclusive:
    13491408        mHWData.backup();
    1350         mHWData->mHWVirtExExclusive = aVal;
     1409        mHWData->mHWVirtExExclusive = !!aVal;
    13511410        break;
    13521411
    1353     case HWVirtExPropertyType_VPIDEnabled:
     1412    case HWVirtExPropertyType_VPID:
    13541413        mHWData.backup();
    1355         mHWData->mHWVirtExVPIDEnabled = aVal;
     1414        mHWData->mHWVirtExVPIDEnabled = !!aVal;
    13561415        break;
    13571416
    1358     case HWVirtExPropertyType_NestedPagingEnabled:
     1417    case HWVirtExPropertyType_NestedPaging:
    13591418        mHWData.backup();
    1360         mHWData->mHWVirtExNestedPagingEnabled = aVal;
     1419        mHWData->mHWVirtExNestedPagingEnabled = !!aVal;
    13611420        break;
    13621421
     
    13641423        return E_INVALIDARG;
    13651424    }
    1366     return S_OK;
    1367 }
    1368 
    1369 STDMETHODIMP Machine::COMGETTER(PAEEnabled)(BOOL *enabled)
    1370 {
    1371     if (!enabled)
    1372         return E_POINTER;
    1373 
    1374     AutoCaller autoCaller(this);
    1375     CheckComRCReturnRC(autoCaller.rc());
    1376 
    1377     AutoReadLock alock(this);
    1378 
    1379     *enabled = mHWData->mPAEEnabled;
    1380 
    1381     return S_OK;
    1382 }
    1383 
    1384 STDMETHODIMP Machine::COMSETTER(PAEEnabled)(BOOL enable)
    1385 {
    1386     AutoCaller autoCaller(this);
    1387     CheckComRCReturnRC(autoCaller.rc());
    1388 
    1389     AutoWriteLock alock(this);
    1390 
    1391     HRESULT rc = checkStateDependency(MutableStateDep);
    1392     CheckComRCReturnRC(rc);
    1393 
    1394     /** @todo check validity! */
    1395 
    1396     mHWData.backup();
    1397     mHWData->mPAEEnabled = enable;
    1398 
    13991425    return S_OK;
    14001426}
     
    51725198        mHWData->mHWVirtExVPIDEnabled         = data.fVPID;
    51735199        mHWData->mPAEEnabled                  = data.fPAE;
     5200        mHWData->mSyntheticCpu                = data.fSyntheticCpu;
    51745201
    51755202        mHWData->mCPUCount = data.cCPUs;
     
    61206147        data.fVPID                  = !!mHWData->mHWVirtExVPIDEnabled;
    61216148        data.fPAE                   = !!mHWData->mPAEEnabled;
     6149        data.fSyntheticCpu          = !!mHWData->mSyntheticCpu;
    61226150
    61236151        data.cCPUs = mHWData->mCPUCount;
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r23733 r23750  
    758758
    759759  <enum
     760    name="CpuPropertyType"
     761    uuid="af7bb668-eeb1-4404-b77f-a114b30c92d6"
     762  >
     763    <desc>
     764      Virtual CPU property type. This enumeration represents possible values of the
     765      IMachine get- and setCpuProperty methods.
     766    </desc>
     767    <const name="Null"                  value="0">
     768      <desc>Null value (never used by the API).</desc>
     769    </const>
     770    <const name="PAE"                   value="1">
     771      <desc>
     772        This setting determines whether VirtualBox will expose the Physical Address
     773        Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
     774        is not available, it will not be reported.
     775      </desc>
     776    </const>
     777    <const name="Synthetic"             value="2">
     778      <desc>
     779        This setting determines whether VirtualBox will expose a synthetic CPU to the guest to allow
     780        live migration between host systems that differ significantly.
     781      </desc>
     782    </const>
     783  </enum>
     784 
     785 
     786  <enum
    760787    name="HWVirtExPropertyType"
    761     uuid="843794f2-f392-46a7-8ff4-a0857a9b4b32"
     788    uuid="ce81dfdd-d2b8-4a90-bbea-40ee8b7ffcee"
    762789  >
    763790    <desc>
     
    765792      IMachine get- and setHWVirtExProperty methods.
    766793    </desc>
    767     <const name="Null"                  value="0">
     794    <const name="Null"                value="0">
    768795      <desc>Null value (never used by the API).</desc>
    769796    </const>
     
    780807      </desc>
    781808    </const>
    782     <const name="VPIDEnabled"         value="3">
     809    <const name="VPID"                value="3">
    783810      <desc>
    784811        VT-x VPID boolean property. Note that in case this extension is not available,
     
    786813      </desc>
    787814    </const>
    788     <const name="NestedPagingEnabled" value="4">
     815    <const name="NestedPaging"        value="4">
    789816      <desc>
    790817        Nested Paging boolean property. Note that in case this extension is not available,
     
    40454072  <interface
    40464073     name="IMachine" extends="$unknown"
    4047      uuid="ff5155a9-da1e-4225-8829-2f9f105d4db2"
     4074     uuid="e8e1c6a9-679e-4a73-a1e5-d9a81027fbda"
    40484075     wsmap="managed"
    40494076     >
     
    42734300    </attribute>
    42744301
    4275     <attribute name="PAEEnabled" type="boolean" default="false">
    4276       <desc>
    4277         This setting determines whether VirtualBox will expose the Physical Address
    4278         Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
    4279         is not available, it will not be reported.
    4280       </desc>
    4281     </attribute>
    4282 
    42834302    <attribute name="snapshotFolder" type="wstring">
    42844303      <desc>
     
    50115030      <param name="value" type="wstring" dir="in">
    50125031        <desc>Value to assign to the key.</desc>
     5032      </param>
     5033    </method>
     5034
     5035    <method name="getCpuProperty" const="yes">
     5036      <desc>
     5037        Returns the virtual CPU boolean value of the specified property.
     5038
     5039        <result name="E_INVALIDARG">
     5040          Invalid property.
     5041        </result>
     5042
     5043      </desc>
     5044      <param name="property" type="CpuPropertyType" dir="in">
     5045        <desc>
     5046          Property type to query.
     5047        </desc>
     5048      </param>
     5049      <param name="value" type="boolean" dir="return">
     5050        <desc>
     5051          Property value.
     5052        </desc>
     5053      </param>
     5054    </method>
     5055
     5056    <method name="setCpuProperty">
     5057      <desc>
     5058        Sets the virtual CPU boolean value of the specified property.
     5059
     5060        <result name="E_INVALIDARG">
     5061          Invalid property.
     5062        </result>
     5063
     5064      </desc>
     5065      <param name="property" type="CpuPropertyType" dir="in">
     5066        <desc>
     5067          Property type to query.
     5068        </desc>
     5069      </param>
     5070      <param name="value" type="boolean" dir="in">
     5071        <desc>
     5072          Property value.
     5073        </desc>
    50135074      </param>
    50145075    </method>
  • trunk/src/VBox/Main/include/MachineImpl.h

    r23733 r23750  
    291291        BOOL           mAccelerate2DVideoEnabled;
    292292        BOOL           mPAEEnabled;
     293        BOOL           mSyntheticCpu;
    293294        ULONG          mCPUCount;
    294295        BOOL           mAccelerate3DEnabled;
     
    535536    STDMETHOD(COMSETTER(Accelerate2DVideoEnabled))(BOOL enabled);
    536537    STDMETHOD(COMGETTER(BIOSSettings))(IBIOSSettings **biosSettings);
    537     STDMETHOD(COMGETTER(PAEEnabled))(BOOL *enabled);
    538     STDMETHOD(COMSETTER(PAEEnabled))(BOOL enabled);
    539538    STDMETHOD(COMGETTER(SnapshotFolder))(BSTR *aSavedStateFolder);
    540539    STDMETHOD(COMSETTER(SnapshotFolder))(IN_BSTR aSavedStateFolder);
     
    584583    STDMETHOD(GetExtraData)(IN_BSTR aKey, BSTR *aValue);
    585584    STDMETHOD(SetExtraData)(IN_BSTR aKey, IN_BSTR aValue);
     585    STDMETHOD(GetCpuProperty)(CpuPropertyType_T property, BOOL *aVal);
     586    STDMETHOD(SetCpuProperty)(CpuPropertyType_T property, BOOL aVal);
    586587    STDMETHOD(GetHWVirtExProperty)(HWVirtExPropertyType_T property, BOOL *aVal);
    587588    STDMETHOD(SetHWVirtExProperty)(HWVirtExPropertyType_T property, BOOL aVal);
  • trunk/src/VBox/Main/xml/Settings.cpp

    r23727 r23750  
    12101210          fVPID(false),
    12111211          fPAE(false),
     1212          fSyntheticCpu(false),
    12121213          cCPUs(1),
    12131214          ulMemorySizeMB((uint32_t)-1),
     
    14721473            if ((pelmCPUChild = pelmHwChild->findChildElement("PAE")))
    14731474                pelmCPUChild->getAttributeValue("enabled", hw.fPAE);
     1475            if ((pelmCPUChild = pelmHwChild->findChildElement("SyntheticCpu")))
     1476                pelmCPUChild->getAttributeValue("enabled", hw.fSyntheticCpu);           
    14741477        }
    14751478        else if (pelmHwChild->nameEquals("Memory"))
     
    23202323    if (hw.fPAE)
    23212324        pelmCPU->createChild("PAE")->setAttribute("enabled", hw.fPAE);
     2325    if (hw.fSyntheticCpu)
     2326        pelmCPU->createChild("SyntheticCpu")->setAttribute("enabled", hw.fSyntheticCpu);
    23222327    pelmCPU->setAttribute("count", hw.cCPUs);
    23232328
  • trunk/src/VBox/Main/xml/VirtualBox-settings-common.xsd

    r23727 r23750  
    446446</xsd:complexType>
    447447
     448<xsd:complexType name="TSyntheticCpuType">
     449  <xsd:attribute name="enabled" type="xsd:boolean"/>
     450</xsd:complexType>
     451
    448452<xsd:complexType name="TPAEType">
    449453  <xsd:attribute name="enabled" type="xsd:boolean"/>
     
    463467    <xsd:element name="HardwareVirtExVPID" type="THWVirtExVPIDType" minOccurs="0"/>
    464468    <xsd:element name="PAE" type="TPAEType" minOccurs="0"/>
     469    <xsd:element name="SyntheticCpu" type="TSyntheticCpuType" minOccurs="0"/>
    465470  </xsd:sequence>
    466471  <xsd:attribute name="count" type="TCPUCount" default="1"/>
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