VirtualBox

Changeset 70712 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Jan 23, 2018 4:18:22 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120455
Message:

Main,VBoxManage: Added CPUPropertyType_HWVirt. Translates to --nested-hw-virt in VBoxManage/modifyvm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r70606 r70712  
    27802780    fIBPBOnVMExit(false),
    27812781    fIBPBOnVMEntry(false),
     2782    fNestedHWVirt(false),
    27822783    enmLongMode(HC_ARCH_BITS == 64 ? Hardware::LongMode_Enabled : Hardware::LongMode_Disabled),
    27832784    cCPUs(1),
     
    29352936            && fIBPBOnVMExit             == h.fIBPBOnVMExit
    29362937            && fIBPBOnVMEntry            == h.fIBPBOnVMEntry
     2938            && fNestedHWVirt             == h.fNestedHWVirt
    29372939            && cCPUs                     == h.cCPUs
    29382940            && fCpuHotPlug               == h.fCpuHotPlug
     
    39433945                pelmCPUChild->getAttributeValue("vmentry", hw.fIBPBOnVMEntry);
    39443946            }
     3947            pelmCPUChild = pelmHwChild->findChildElement("NestedHWVirt");
     3948            if (pelmCPUChild)
     3949                pelmCPUChild->getAttributeValue("enabled", hw.fNestedHWVirt);
    39453950
    39463951            if ((pelmCPUChild = pelmHwChild->findChildElement("CpuIdTree")))
     
    52785283        }
    52795284    }
     5285    if (m->sv >= SettingsVersion_v1_17 && hw.fNestedHWVirt)
     5286        pelmCPU->createChild("NestedHWVirt")->setAttribute("enabled", hw.fNestedHWVirt);
     5287
    52805288    if (m->sv >= SettingsVersion_v1_14 && hw.enmLongMode != Hardware::LongMode_Legacy)
    52815289    {
     
    69396947void MachineConfigFile::bumpSettingsVersionIfNeeded()
    69406948{
     6949    if (m->sv < SettingsVersion_v1_17)
     6950    {
     6951        // VirtualBox 6.0 adds nested hardware virtualization.
     6952        if (hardwareMachine.fNestedHWVirt)
     6953        {
     6954            m->sv = SettingsVersion_v1_17;
     6955            return;
     6956        }
     6957    }
     6958
    69416959    if (m->sv < SettingsVersion_v1_16)
    69426960    {
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