- Timestamp:
- Sep 26, 2018 11:55:47 AM (6 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPCI.cpp
r72270 r74474 491 491 break; 492 492 case 0x0300: 493 { 493 494 if (vendor_id != 0x80ee) 494 495 goto default_map; 495 496 /* VGA: map frame buffer to default Bochs VBE address */ 496 devpciR3BiosInitSetRegionAddress(pBus, pPciDev, 0, 0xe0000000); 497 int iRegion = devpciR3GetWord(pPciDev, VBOX_PCI_SUBSYSTEM_VENDOR_ID) == 0x15ad ? 1 : 0; 498 devpciR3BiosInitSetRegionAddress(pBus, pPciDev, iRegion, 0xe0000000); 497 499 /* 498 500 * Legacy VGA I/O ports are implicitly decoded by a VGA class device. But … … 504 506 | PCI_COMMAND_IOACCESS | PCI_COMMAND_MEMACCESS); 505 507 break; 508 } 506 509 case 0x0800: 507 510 /* PIC */ -
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r74135 r74474 6184 6184 #ifdef VBOX_WITH_VMSVGA 6185 6185 "VMSVGAEnabled\0" 6186 "VMSVGAPciId\0" 6186 6187 "VMSVGAFifoSize\0" 6187 6188 #endif … … 6223 6224 rc = CFGMR3QueryBoolDef(pCfg, "3DEnabled", &pThis->f3DEnabled, false); 6224 6225 AssertLogRelRCReturn(rc, rc); 6226 Log(("VGA: f3DEnabled=%RTbool\n", pThis->f3DEnabled)); 6225 6227 6226 6228 #ifdef VBOX_WITH_VMSVGA … … 6228 6230 AssertLogRelRCReturn(rc, rc); 6229 6231 Log(("VMSVGA: VMSVGAEnabled = %d\n", pThis->fVMSVGAEnabled)); 6232 6233 rc = CFGMR3QueryBoolDef(pCfg, "VMSVGAPciId", &pThis->fVMSVGAPciId, false); 6234 AssertLogRelRCReturn(rc, rc); 6235 Log(("VMSVGA: VMSVGAPciId = %d\n", pThis->fVMSVGAPciId)); 6230 6236 6231 6237 rc = CFGMR3QueryU32Def(pCfg, "VMSVGAFifoSize", &pThis->svga.cbFIFO, VMSVGA_FIFO_SIZE); … … 6257 6263 { 6258 6264 /* Extend our VGA device with VMWare SVGA functionality. */ 6259 PCIDevSetVendorId(&pThis->Dev, PCI_VENDOR_ID_VMWARE); 6260 PCIDevSetDeviceId(&pThis->Dev, PCI_DEVICE_ID_VMWARE_SVGA2); 6265 if (pThis->fVMSVGAPciId) 6266 { 6267 PCIDevSetVendorId(&pThis->Dev, PCI_VENDOR_ID_VMWARE); 6268 PCIDevSetDeviceId(&pThis->Dev, PCI_DEVICE_ID_VMWARE_SVGA2); 6269 } 6270 else 6271 { 6272 PCIDevSetVendorId(&pThis->Dev, 0x80ee); /* PCI vendor, just a free bogus value */ 6273 PCIDevSetDeviceId(&pThis->Dev, 0xbeef); 6274 } 6261 6275 PCIDevSetSubSystemVendorId(&pThis->Dev, PCI_VENDOR_ID_VMWARE); 6262 6276 PCIDevSetSubSystemId(&pThis->Dev, PCI_DEVICE_ID_VMWARE_SVGA2); -
trunk/src/VBox/Devices/Graphics/DevVGA.h
r71590 r74474 343 343 /* Whether the SVGA emulation is enabled or not. */ 344 344 bool fVMSVGAEnabled; 345 bool Padding4[0+4]; 345 bool fVMSVGAPciId; 346 bool Padding4[0+3]; 346 347 # else 347 348 bool Padding4[1+4]; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r74431 r74474 531 531 " [--rtcuseutc on|off]\n" 532 532 #ifdef VBOX_WITH_VMSVGA 533 " [--graphicscontroller none|vboxvga|vmsvga ]\n"533 " [--graphicscontroller none|vboxvga|vmsvga|vboxsvga]\n" 534 534 #else 535 535 " [--graphicscontroller none|vboxvga]\n" -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r73768 r74474 865 865 || !RTStrICmp(ValueUnion.psz, "vmware")) 866 866 CHECK_ERROR(sessionMachine, COMSETTER(GraphicsControllerType)(GraphicsControllerType_VMSVGA)); 867 else if ( !RTStrICmp(ValueUnion.psz, "vboxsvga") 868 || !RTStrICmp(ValueUnion.psz, "svga")) 869 CHECK_ERROR(sessionMachine, COMSETTER(GraphicsControllerType)(GraphicsControllerType_VBoxSVGA)); 867 870 #endif 868 871 else -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r74431 r74474 4762 4762 <enum 4763 4763 name="GraphicsControllerType" 4764 uuid=" 79c96ca0-9f39-4900-948e-68c41cbe127a"4765 > 4766 <desc>Graphics controller type, used with <link to="IMachine:: unregister" />.4764 uuid="3e009bb0-2b57-4283-a39b-4c363d4f0808" 4765 > 4766 <desc>Graphics controller type, used with <link to="IMachine::graphicsControllerType" />. 4767 4767 </desc> 4768 4768 <const name="Null" value="0"> … … 4770 4770 </const> 4771 4771 <const name="VBoxVGA" value="1"> 4772 <desc> DefaultVirtualBox VGA device.</desc>4772 <desc>VirtualBox VGA device.</desc> 4773 4773 </const> 4774 4774 <const name="VMSVGA" value="2"> 4775 4775 <desc>VMware SVGA II device.</desc> 4776 </const> 4777 <const name="VBoxSVGA" value="3"> 4778 <desc>VirtualBox VGA device with VMware SVGA II extensions.</desc> 4776 4779 </const> 4777 4780 </enum> -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r73768 r74474 1667 1667 #ifdef VBOX_WITH_VMSVGA 1668 1668 case GraphicsControllerType_VMSVGA: 1669 case GraphicsControllerType_VBoxSVGA: 1669 1670 #endif 1670 1671 rc = i_configGraphicsController(pDevices, enmGraphicsController, pBusMgr, pMachine, biosSettings, … … 3824 3825 3825 3826 #ifdef VBOX_WITH_VMSVGA 3826 if (enmGraphicsController == GraphicsControllerType_VMSVGA) 3827 if ( enmGraphicsController == GraphicsControllerType_VMSVGA 3828 || enmGraphicsController == GraphicsControllerType_VBoxSVGA) 3827 3829 { 3828 3830 InsertConfigInteger(pCfg, "VMSVGAEnabled", true); 3831 if (enmGraphicsController == GraphicsControllerType_VMSVGA) 3832 InsertConfigInteger(pCfg, "VMSVGAPciId", true); 3829 3833 #ifdef VBOX_WITH_VMSVGA3D 3830 3834 IFramebuffer *pFramebuffer = NULL; -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r73805 r74474 2021 2021 #ifdef VBOX_WITH_VMSVGA 2022 2022 case GraphicsControllerType_VMSVGA: 2023 case GraphicsControllerType_VBoxSVGA: 2023 2024 #endif 2024 2025 break; -
trunk/src/VBox/Main/xml/Settings.cpp
r74433 r74474 4259 4259 else if (strGraphicsControllerType == "VMSVGA") 4260 4260 type = GraphicsControllerType_VMSVGA; 4261 else if (strGraphicsControllerType == "VBOXSVGA") 4262 type = GraphicsControllerType_VBoxSVGA; 4261 4263 else if (strGraphicsControllerType == "NONE") 4262 4264 type = GraphicsControllerType_Null; … … 5647 5649 case GraphicsControllerType_VBoxVGA: pcszGraphics = "VBoxVGA"; break; 5648 5650 case GraphicsControllerType_VMSVGA: pcszGraphics = "VMSVGA"; break; 5651 case GraphicsControllerType_VBoxSVGA: pcszGraphics = "VBoxSVGA"; break; 5649 5652 default: /*case GraphicsControllerType_Null:*/ pcszGraphics = "None"; break; 5650 5653 }
Note:
See TracChangeset
for help on using the changeset viewer.