VirtualBox

Ignore:
Timestamp:
Apr 15, 2008 1:29:51 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29641
Message:

Argh!

File:
1 edited

Legend:

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

    r7987 r7988  
    326326                 "                            [-acpi on|off]\n"
    327327                 "                            [-ioapic on|off]\n"
     328                 "                            [-pae on|off]\n"
    328329                 "                            [-hwvirtex on|off|default]\n"
    329330                 "                            [-monitorcount <number>]\n"
     
    919920    else
    920921        RTPrintf("IOAPIC:          %s\n", ioapicEnabled ? "on" : "off");
     922
     923    BOOL PAEEnabled;
     924    machine->COMGETTER(PAEEnabled)(&PAEEnabled);
     925    if (details == VMINFO_MACHINEREADABLE)
     926        RTPrintf("pae=\"%s\"\n", PAEEnabled ? "on" : "off");
     927    else
     928        RTPrintf("PAE: %s\n", PAEEnabled ? "on" : "off");
    921929
    922930    LONG64 timeOffset;
     
    37143722    char *acpi = NULL;
    37153723    char *hwvirtex = NULL;
     3724    char *pae = NULL;
    37163725    char *ioapic = NULL;
    37173726    int monitorcount = -1;
     
    38503859            hwvirtex = argv[i];
    38513860        }
     3861        else if (strcmp(argv[i], "-pae") == 0)
     3862        {
     3863            if (argc <= i + 1)
     3864            {
     3865                return errorArgument("Missing argument to '%s'", argv[i]);
     3866            }
     3867            i++;
     3868            pae = argv[i];
     3869        }
    38523870        else if (strcmp(argv[i], "-monitorcount") == 0)
    38533871        {
     
    45334551            {
    45344552                errorArgument("Invalid -hwvirtex argument '%s'", hwvirtex);
     4553                rc = E_FAIL;
     4554                break;
     4555            }
     4556        }
     4557        if (pae)
     4558        {
     4559            if (strcmp(pae, "on") == 0)
     4560            {
     4561                CHECK_ERROR(machine, COMSETTER(PAEEnabled)(true));
     4562            }
     4563            else if (strcmp(pae, "off") == 0)
     4564            {
     4565                CHECK_ERROR(machine, COMSETTER(PAEEnabled)(false));
     4566            }
     4567            else
     4568            {
     4569                errorArgument("Invalid -pae argument '%s'", ioapic);
    45354570                rc = E_FAIL;
    45364571                break;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette