VirtualBox

Changeset 23762 in vbox


Ignore:
Timestamp:
Oct 14, 2009 1:57:44 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53493
Message:

Python shell: better device attachment printing, updated to reflect new hwacc settings

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxShell/vboxshell.py

    r23701 r23762  
    468468    print "  ACPI [BIOSSettings.ACPIEnabled]: %s" %(asState(bios.ACPIEnabled))
    469469    print "  APIC [BIOSSettings.IOAPICEnabled]: %s" %(asState(bios.IOAPICEnabled))
    470     print "  PAE [PAEEnabled]: %s" %(asState(int(mach.PAEEnabled)))
    471     print "  Hardware virtualization [HWVirtExEnabled]: " + asState(mach.HWVirtExEnabled)
    472     print "  VPID support [HWVirtExVPIDEnabled]: " + asState(mach.HWVirtExVPIDEnabled)
     470    hwVirtEnabled = mach.getHWVirtExProperty(ctx['global'].constants.HWVirtExPropertyType_Enabled)
     471    print "  Hardware virtualization [mach.setHWVirtExProperty(ctx['global'].constants.HWVirtExPropertyType_Enabled,value)]: " + asState(hwVirtEnabled)
     472    hwVirtVPID = mach.getHWVirtExProperty(ctx['global'].constants.HWVirtExPropertyType_VPID)
     473    print "  VPID support [mach.setHWVirtExProperty(ctx['global'].constants.HWVirtExPropertyType_VPID,value)]: " + asState(hwVirtVPID)
     474    hwVirtNestedPaging = mach.getHWVirtExProperty(ctx['global'].constants.HWVirtExPropertyType_NestedPaging)
     475    print "  Nested paging [mach.setHWVirtExProperty(ctx['global'].constants.HWVirtExPropertyType_NestedPaging,value)]: " + asState(hwVirtNestedPaging)
     476
    473477    print "  Hardware 3d acceleration[accelerate3DEnabled]: " + asState(mach.accelerate3DEnabled)
    474478    print "  Hardware 2d video acceleration[accelerate2DVideoEnabled]: " + asState(mach.accelerate2DVideoEnabled)
    475     print "  Nested paging [HWVirtExNestedPagingEnabled]: " + asState(mach.HWVirtExNestedPagingEnabled)
     479
    476480    print "  Last changed [n/a]: " + time.asctime(time.localtime(long(mach.lastStateChange)/1000))
    477481    print "  VRDP server [VRDPServer.enabled]: %s" %(asState(mach.VRDPServer.enabled))
     
    493497        if a.type == ctx['global'].constants.DeviceType_HardDisk:
    494498            print "   HDD:"
    495             print "    id: %s" %(m.id)
    496             print "    location: %s" %(m.location)
    497             print "    name: %s"  %(m.name)
    498             print "    format: %s"  %(m.format)
     499            print "    Id: %s" %(m.id)
     500            print "    Location: %s" %(m.location)
     501            print "    Name: %s"  %(m.name)
     502            print "    Format: %s"  %(m.format)
    499503
    500504        if a.type == ctx['global'].constants.DeviceType_DVD:
    501505            print "   DVD:"
    502506            if m:
    503                 print "    Image at: %s" %(m.location)
    504                 print "    Size: %s" %(m.size)
    505507                print "    Id: %s" %(m.id)
     508                print "    Name: %s" %(m.name)
     509                if m.hostDrive:
     510                    print "    Host DVD %s" %(m.location)
     511                    if a.passthrough:
     512                         print "    [passthrough mode]"
     513                else:
     514                    print "    Virtual image at %s" %(m.location)
     515                    print "    Size: %s" %(m.size)
    506516
    507517        if a.type == ctx['global'].constants.DeviceType_Floppy:
    508518            print "   Floppy:"
    509519            if m:
     520                print "    Id: %s" %(m.id)
    510521                print "    Name: %s" %(m.name)
    511                 print "    Image at: %s" %(m.location)
    512                 print "    Size: %s" %(m.size)
     522                if m.hostDrive:
     523                    print "    Host floppy %s" %(m.location)
     524                else:
     525                    print "    Virtual image at %s" %(m.location)
     526                    print "    Size: %s" %(m.size)
    513527
    514528    return 0
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r23750 r23762  
    782782    </const>
    783783  </enum>
    784  
    785  
     784
     785
    786786  <enum
    787787    name="HWVirtExPropertyType"
     
    820820    </const>
    821821  </enum>
    822  
     822
    823823  <enum
    824824    name="SessionType"
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