VirtualBox

Ignore:
Timestamp:
Jul 16, 2008 11:48:19 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33410
Message:

Added setting for nested paging (default on).

File:
1 edited

Legend:

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

    r10427 r10693  
    336336                 "                            [-pae on|off]\n"
    337337                 "                            [-hwvirtex on|off|default]\n"
     338                 "                            [-nestedpaging on|off]\n"
    338339                 "                            [-monitorcount <number>]\n"
    339340                 "                            [-bioslogofadein on|off]\n"
     
    982983            RTPrintf("Hardw. virt.ext: %s\n", hwVirtExEnabled == TSBool_True ? "on" : "off");
    983984    }
     985    BOOL HWVirtExNestedPagingEnabled;
     986    machine->COMGETTER(HWVirtExNestedPagingEnabled)(&HWVirtExNestedPagingEnabled);
     987    if (details == VMINFO_MACHINEREADABLE)
     988        RTPrintf("nestedpaging=\"%s\"\n", HWVirtExNestedPagingEnabled ? "on" : "off");
     989    else
     990        RTPrintf("Nested Paging:   %s\n", HWVirtExNestedPagingEnabled ? "on" : "off");
    984991
    985992    MachineState_T machineState;
     
    37493756    char *acpi = NULL;
    37503757    char *hwvirtex = NULL;
     3758    char *nestedpaging = NULL;
    37513759    char *pae = NULL;
    37523760    char *ioapic = NULL;
     
    38743882            hwvirtex = argv[i];
    38753883        }
     3884        else if (strcmp(argv[i], "-nestedpaging") == 0)
     3885        {
     3886            if (argc <= i + 1)
     3887                return errorArgument("Missing argument to '%s'", argv[i]);
     3888            i++;
     3889            nestedpaging = argv[i];
     3890        }
    38763891        else if (strcmp(argv[i], "-pae") == 0)
    38773892        {
     
    44964511            {
    44974512                errorArgument("Invalid -hwvirtex argument '%s'", hwvirtex);
     4513                rc = E_FAIL;
     4514                break;
     4515            }
     4516        }
     4517        if (nestedpaging)
     4518        {
     4519            if (strcmp(nestedpaging, "on") == 0)
     4520            {
     4521                CHECK_ERROR(machine, COMSETTER(HWVirtExNestedPagingEnabled)(true));
     4522            }
     4523            else if (strcmp(nestedpaging, "off") == 0)
     4524            {
     4525                CHECK_ERROR(machine, COMSETTER(HWVirtExNestedPagingEnabled)(false));
     4526            }
     4527            else
     4528            {
     4529                errorArgument("Invalid -nestedpaging argument '%s'", ioapic);
    44984530                rc = E_FAIL;
    44994531                break;
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