Lines Matching refs:hw

2620  * @param hw
2676 * @param hw
2679 Hardware &hw)
2691 hw.llGuestProperties.push_back(prop);
2694 elmGuestProperties.getAttributeValue("notificationPatterns", hw.strNotificationPatterns);
2724 * @param hw
2727 Hardware &hw,
2730 if (!elmHardware.getAttributeValue("version", hw.strVersion))
2740 hw.strVersion = "1";
2742 hw.strVersion = "2";
2746 parseUUID(hw.uuid, strUUID);
2754 if (!pelmHwChild->getAttributeValue("count", hw.cCPUs))
2759 pelmCPUChild->getAttributeValue("count", hw.cCPUs);
2762 pelmHwChild->getAttributeValue("hotplug", hw.fCpuHotPlug);
2763 pelmHwChild->getAttributeValue("executionCap", hw.ulCpuExecutionCap);
2766 if (hw.fCpuHotPlug)
2769 readCpuTree(*pelmCPUChild, hw.llCpus);
2774 pelmCPUChild->getAttributeValue("enabled", hw.fHardwareVirt);
2777 pelmCPUChild->getAttributeValue("enabled", hw.fNestedPaging);
2779 pelmCPUChild->getAttributeValue("enabled", hw.fLargePages);
2781 pelmCPUChild->getAttributeValue("enabled", hw.fVPID);
2783 pelmCPUChild->getAttributeValue("enabled", hw.fUnrestrictedExecution);
2785 pelmCPUChild->getAttributeValue("enabled", hw.fHardwareVirtForce);
2791 hw.fPAE = false;
2794 pelmCPUChild->getAttributeValue("enabled", hw.fPAE);
2799 hw.enmLongMode = fLongMode ? Hardware::LongMode_Enabled : Hardware::LongMode_Disabled;
2801 hw.enmLongMode = Hardware::LongMode_Legacy;
2804 pelmCPUChild->getAttributeValue("enabled", hw.fSyntheticCpu);
2807 pelmCPUChild->getAttributeValue("enabled", hw.fTripleFaultReset);
2810 readCpuIdTree(*pelmCPUChild, hw.llCpuIdLeafs);
2814 pelmHwChild->getAttributeValue("RAMSize", hw.ulMemorySizeMB);
2815 pelmHwChild->getAttributeValue("PageFusion", hw.fPageFusionEnabled);
2825 hw.firmwareType = FirmwareType_BIOS;
2829 hw.firmwareType = FirmwareType_EFI;
2831 hw.firmwareType = FirmwareType_EFI32;
2833 hw.firmwareType = FirmwareType_EFI64;
2835 hw.firmwareType = FirmwareType_EFIDUAL;
2849 hw.keyboardHIDType = KeyboardHIDType_None;
2851 hw.keyboardHIDType = KeyboardHIDType_USBKeyboard;
2853 hw.keyboardHIDType = KeyboardHIDType_PS2Keyboard;
2855 hw.keyboardHIDType = KeyboardHIDType_ComboKeyboard;
2865 hw.pointingHIDType = PointingHIDType_None;
2867 hw.pointingHIDType = PointingHIDType_USBMouse;
2869 hw.pointingHIDType = PointingHIDType_USBTablet;
2871 hw.pointingHIDType = PointingHIDType_PS2Mouse;
2873 hw.pointingHIDType = PointingHIDType_ComboMouse;
2875 hw.pointingHIDType = PointingHIDType_USBMultiTouch;
2889 hw.chipsetType = ChipsetType_PIIX3;
2891 hw.chipsetType = ChipsetType_ICH9;
2905 hw.paravirtProvider = ParavirtProvider_None;
2907 hw.paravirtProvider = ParavirtProvider_Default;
2909 hw.paravirtProvider = ParavirtProvider_Legacy;
2911 hw.paravirtProvider = ParavirtProvider_Minimal;
2913 hw.paravirtProvider = ParavirtProvider_HyperV;
2915 hw.paravirtProvider = ParavirtProvider_KVM;
2925 pelmHwChild->getAttributeValue("enabled", hw.fHPETEnabled);
2929 hw.mapBootOrder.clear();
2951 if (hw.mapBootOrder.find(ulPos) != hw.mapBootOrder.end())
2970 hw.mapBootOrder[ulPos] = type;
2977 hw.graphicsControllerType = GraphicsControllerType_VBoxVGA;
2990 hw.graphicsControllerType = type;
2992 pelmHwChild->getAttributeValue("VRAMSize", hw.ulVRAMSizeMB);
2993 if (!pelmHwChild->getAttributeValue("monitorCount", hw.cMonitors))
2994 pelmHwChild->getAttributeValue("MonitorCount", hw.cMonitors); // pre-v1.5 variant
2995 if (!pelmHwChild->getAttributeValue("accelerate3D", hw.fAccelerate3D))
2996 pelmHwChild->getAttributeValue("Accelerate3D", hw.fAccelerate3D); // pre-v1.5 variant
2997 pelmHwChild->getAttributeValue("accelerate2DVideo", hw.fAccelerate2DVideo);
3001 pelmHwChild->getAttributeValue("enabled", hw.fVideoCaptureEnabled);
3002 pelmHwChild->getAttributeValue("screens", hw.u64VideoCaptureScreens);
3003 pelmHwChild->getAttributeValuePath("file", hw.strVideoCaptureFile);
3004 pelmHwChild->getAttributeValue("horzRes", hw.ulVideoCaptureHorzRes);
3005 pelmHwChild->getAttributeValue("vertRes", hw.ulVideoCaptureVertRes);
3006 pelmHwChild->getAttributeValue("rate", hw.ulVideoCaptureRate);
3007 pelmHwChild->getAttributeValue("fps", hw.ulVideoCaptureFPS);
3008 pelmHwChild->getAttributeValue("maxTime", hw.ulVideoCaptureMaxTime);
3009 pelmHwChild->getAttributeValue("maxSize", hw.ulVideoCaptureMaxSize);
3013 pelmHwChild->getAttributeValue("enabled", hw.vrdeSettings.fEnabled);
3017 hw.vrdeSettings.mapProperties["TCP/Ports"] = str;
3019 hw.vrdeSettings.mapProperties["TCP/Address"] = str;
3027 hw.vrdeSettings.authType = AuthType_Null;
3029 hw.vrdeSettings.authType = AuthType_Guest;
3031 hw.vrdeSettings.authType = AuthType_External;
3036 pelmHwChild->getAttributeValue("authLibrary", hw.vrdeSettings.strAuthLibrary);
3037 pelmHwChild->getAttributeValue("authTimeout", hw.vrdeSettings.ulAuthTimeout);
3038 pelmHwChild->getAttributeValue("allowMultiConnection", hw.vrdeSettings.fAllowMultiConnection);
3039 pelmHwChild->getAttributeValue("reuseSingleConnection", hw.vrdeSettings.fReuseSingleConnection);
3047 hw.vrdeSettings.mapProperties["VideoChannel/Enabled"] = fVideoChannel? "true": "false";
3055 hw.vrdeSettings.mapProperties["VideoChannel/Quality"] = pszBuffer;
3059 hw.vrdeSettings.mapProperties["VideoChannel/Quality"] = "75";
3061 pelmHwChild->getAttributeValue("VRDEExtPack", hw.vrdeSettings.strVrdeExtPack);
3076 hw.vrdeSettings.mapProperties[strName] = strValue;
3087 pelmBIOSChild->getAttributeValue("enabled", hw.biosSettings.fACPIEnabled);
3089 pelmBIOSChild->getAttributeValue("enabled", hw.biosSettings.fIOAPICEnabled);
3092 pelmBIOSChild->getAttributeValue("fadeIn", hw.biosSettings.fLogoFadeIn);
3093 pelmBIOSChild->getAttributeValue("fadeOut", hw.biosSettings.fLogoFadeOut);
3094 pelmBIOSChild->getAttributeValue("displayTime", hw.biosSettings.ulLogoDisplayTime);
3095 pelmBIOSChild->getAttributeValue("imagePath", hw.biosSettings.strLogoImagePath);
3105 hw.biosSettings.biosBootMenuMode = BIOSBootMenuMode_Disabled;
3107 hw.biosSettings.biosBootMenuMode = BIOSBootMenuMode_MenuOnly;
3109 hw.biosSettings.biosBootMenuMode = BIOSBootMenuMode_MessageAndMenu;
3115 pelmBIOSChild->getAttributeValue("enabled", hw.biosSettings.fPXEDebugEnabled);
3117 pelmBIOSChild->getAttributeValue("value", hw.biosSettings.llTimeOffset);
3157 hw.usbSettings.llUSBControllers.push_back(ctrl);
3168 hw.usbSettings.llUSBControllers.push_back(ctrl);
3172 hw.usbSettings.llDeviceFilters);
3202 hw.usbSettings.llUSBControllers.push_back(ctrl);
3207 readUSBDeviceFilters(*pelmUSBChild, hw.usbSettings.llDeviceFilters);
3227 readNetworkAdapters(*pelmHwChild, hw.llNetworkAdapters);
3237 readSerialPorts(*pelmHwChild, hw.llSerialPorts);
3241 readParallelPorts(*pelmHwChild, hw.llParallelPorts);
3243 readAudioAdapter(*pelmHwChild, hw.audioAdapter);
3255 hw.llSharedFolders.push_back(sf);
3264 hw.clipboardMode = ClipboardMode_Disabled;
3266 hw.clipboardMode = ClipboardMode_HostToGuest;
3268 hw.clipboardMode = ClipboardMode_GuestToHost;
3270 hw.clipboardMode = ClipboardMode_Bidirectional;
3281 hw.dndMode = DnDMode_Disabled;
3283 hw.dndMode = DnDMode_HostToGuest;
3285 hw.dndMode = DnDMode_GuestToHost;
3287 hw.dndMode = DnDMode_Bidirectional;
3294 if (!pelmHwChild->getAttributeValue("memoryBalloonSize", hw.ulMemoryBalloonSize))
3295 pelmHwChild->getAttributeValue("MemoryBalloonSize", hw.ulMemoryBalloonSize); // used before 1.3
3298 readGuestProperties(*pelmHwChild, hw);
3306 pelmIOChild->getAttributeValue("enabled", hw.ioSettings.fIOCacheEnabled);
3307 pelmIOChild->getAttributeValue("size", hw.ioSettings.ulIOCacheSize);
3338 hw.ioSettings.llBandwidthGroups.push_back(gr);
3363 hw.pciAttachments.push_back(hpda);
3373 pelmCardReader->getAttributeValue("enabled", hw.fEmulatedUSBCardReader);
3382 pelmDefault->getAttributeValue("type", hw.strDefaultFrontend);
3387 if (hw.ulMemorySizeMB == (uint32_t)-1)
4071 const Hardware &hw,
4077 pelmHardware->setAttribute("version", hw.strVersion);
4080 && !hw.uuid.isZero()
4081 && hw.uuid.isValid()
4083 pelmHardware->setAttribute("uuid", hw.uuid.toStringCurly());
4088 pelmHwVirtEx->setAttribute("enabled", hw.fHardwareVirt);
4090 pelmCPU->createChild("HardwareVirtExNestedPaging")->setAttribute("enabled", hw.fNestedPaging);
4091 pelmCPU->createChild("HardwareVirtExVPID")->setAttribute("enabled", hw.fVPID);
4092 pelmCPU->createChild("HardwareVirtExUX")->setAttribute("enabled", hw.fUnrestrictedExecution);
4093 pelmCPU->createChild("PAE")->setAttribute("enabled", hw.fPAE);
4094 if (m->sv >= SettingsVersion_v1_14 && hw.enmLongMode != Hardware::LongMode_Legacy)
4095 pelmCPU->createChild("LongMode")->setAttribute("enabled", hw.enmLongMode == Hardware::LongMode_Enabled);
4097 if (hw.fSyntheticCpu)
4098 pelmCPU->createChild("SyntheticCpu")->setAttribute("enabled", hw.fSyntheticCpu);
4099 if (hw.fTripleFaultReset)
4100 pelmCPU->createChild("TripleFaultReset")->setAttribute("enabled", hw.fTripleFaultReset);
4101 pelmCPU->setAttribute("count", hw.cCPUs);
4102 if (hw.ulCpuExecutionCap != 100)
4103 pelmCPU->setAttribute("executionCap", hw.ulCpuExecutionCap);
4106 pelmCPU->createChild("HardwareVirtExLargePages")->setAttribute("enabled", hw.fLargePages);
4109 pelmCPU->createChild("HardwareVirtForce")->setAttribute("enabled", hw.fHardwareVirtForce);
4113 pelmCPU->setAttribute("hotplug", hw.fCpuHotPlug);
4116 for (CpuList::const_iterator it = hw.llCpus.begin();
4117 it != hw.llCpus.end();
4131 for (CpuIdLeafsList::const_iterator it = hw.llCpuIdLeafs.begin();
4132 it != hw.llCpuIdLeafs.end();
4149 pelmMemory->setAttribute("RAMSize", hw.ulMemorySizeMB);
4152 pelmMemory->setAttribute("PageFusion", hw.fPageFusionEnabled);
4156 && (hw.firmwareType >= FirmwareType_EFI)
4162 switch (hw.firmwareType)
4179 switch (hw.pointingHIDType)
4191 switch (hw.keyboardHIDType)
4206 pelmHPET->setAttribute("enabled", hw.fHPETEnabled);
4215 switch (hw.chipsetType)
4225 && !hw.areParavirtDefaultSettings()
4229 switch (hw.paravirtProvider)
4245 for (BootOrderMap::const_iterator it = hw.mapBootOrder.begin();
4246 it != hw.mapBootOrder.end();
4269 if (hw.graphicsControllerType != GraphicsControllerType_VBoxVGA)
4272 switch (hw.graphicsControllerType)
4280 pelmDisplay->setAttribute("VRAMSize", hw.ulVRAMSizeMB);
4281 pelmDisplay->setAttribute("monitorCount", hw.cMonitors);
4282 pelmDisplay->setAttribute("accelerate3D", hw.fAccelerate3D);
4285 pelmDisplay->setAttribute("accelerate2DVideo", hw.fAccelerate2DVideo);
4290 pelmVideoCapture->setAttribute("enabled", hw.fVideoCaptureEnabled);
4291 pelmVideoCapture->setAttribute("screens", hw.u64VideoCaptureScreens);
4292 if (!hw.strVideoCaptureFile.isEmpty())
4293 pelmVideoCapture->setAttributePath("file", hw.strVideoCaptureFile);
4294 pelmVideoCapture->setAttribute("horzRes", hw.ulVideoCaptureHorzRes);
4295 pelmVideoCapture->setAttribute("vertRes", hw.ulVideoCaptureVertRes);
4296 pelmVideoCapture->setAttribute("rate", hw.ulVideoCaptureRate);
4297 pelmVideoCapture->setAttribute("fps", hw.ulVideoCaptureFPS);
4298 pelmVideoCapture->setAttribute("maxTime", hw.ulVideoCaptureMaxTime);
4299 pelmVideoCapture->setAttribute("maxSize", hw.ulVideoCaptureMaxSize);
4303 pelmVRDE->setAttribute("enabled", hw.vrdeSettings.fEnabled);
4308 StringsMap::const_iterator it = hw.vrdeSettings.mapProperties.find("TCP/Ports");
4309 if (it != hw.vrdeSettings.mapProperties.end())
4316 it = hw.vrdeSettings.mapProperties.find("TCP/Address");
4317 if (it != hw.vrdeSettings.mapProperties.end())
4323 switch (hw.vrdeSettings.authType)
4331 if (hw.vrdeSettings.ulAuthTimeout != 0)
4332 pelmVRDE->setAttribute("authTimeout", hw.vrdeSettings.ulAuthTimeout);
4333 if (hw.vrdeSettings.fAllowMultiConnection)
4334 pelmVRDE->setAttribute("allowMultiConnection", hw.vrdeSettings.fAllowMultiConnection);
4335 if (hw.vrdeSettings.fReuseSingleConnection)
4336 pelmVRDE->setAttribute("reuseSingleConnection", hw.vrdeSettings.fReuseSingleConnection);
4344 StringsMap::const_iterator it = hw.vrdeSettings.mapProperties.find("VideoChannel/Enabled");
4345 if (it != hw.vrdeSettings.mapProperties.end())
4351 it = hw.vrdeSettings.mapProperties.find("VideoChannel/Quality");
4352 if (it != hw.vrdeSettings.mapProperties.end())
4363 if (hw.vrdeSettings.strAuthLibrary.length())
4364 pelmVRDE->setAttribute("authLibrary", hw.vrdeSettings.strAuthLibrary);
4365 if (hw.vrdeSettings.strVrdeExtPack.isNotEmpty())
4366 pelmVRDE->setAttribute("VRDEExtPack", hw.vrdeSettings.strVrdeExtPack);
4367 if (hw.vrdeSettings.mapProperties.size() > 0)
4370 for (StringsMap::const_iterator it = hw.vrdeSettings.mapProperties.begin();
4371 it != hw.vrdeSettings.mapProperties.end();
4384 pelmBIOS->createChild("ACPI")->setAttribute("enabled", hw.biosSettings.fACPIEnabled);
4385 pelmBIOS->createChild("IOAPIC")->setAttribute("enabled", hw.biosSettings.fIOAPICEnabled);
4388 pelmLogo->setAttribute("fadeIn", hw.biosSettings.fLogoFadeIn);
4389 pelmLogo->setAttribute("fadeOut", hw.biosSettings.fLogoFadeOut);
4390 pelmLogo->setAttribute("displayTime", hw.biosSettings.ulLogoDisplayTime);
4391 if (hw.biosSettings.strLogoImagePath.length())
4392 pelmLogo->setAttribute("imagePath", hw.biosSettings.strLogoImagePath);
4395 switch (hw.biosSettings.biosBootMenuMode)
4402 pelmBIOS->createChild("TimeOffset")->setAttribute("value", hw.biosSettings.llTimeOffset);
4403 pelmBIOS->createChild("PXEDebug")->setAttribute("enabled", hw.biosSettings.fPXEDebugEnabled);
4500 buildUSBDeviceFilters(*pelmUSB, hw.usbSettings.llDeviceFilters, false /* fHostMode */);
4535 buildUSBDeviceFilters(*pelmFilters, hw.usbSettings.llDeviceFilters, false /* fHostMode */);
4539 for (NetworkAdaptersList::const_iterator it = hw.llNetworkAdapters.begin();
4540 it != hw.llNetworkAdapters.end();
4635 for (SerialPortsList::const_iterator it = hw.llSerialPorts.begin();
4636 it != hw.llSerialPorts.end();
4673 for (ParallelPortsList::const_iterator it = hw.llParallelPorts.begin();
4674 it != hw.llParallelPorts.end();
4689 switch (hw.audioAdapter.controllerType)
4715 switch (hw.audioAdapter.driverType)
4729 pelmAudio->setAttribute("enabled", hw.audioAdapter.fEnabled);
4732 for (SharedFoldersList::const_iterator it = hw.llSharedFolders.begin();
4733 it != hw.llSharedFolders.end();
4746 switch (hw.clipboardMode)
4757 switch (hw.dndMode)
4772 pelmIOCache->setAttribute("enabled", hw.ioSettings.fIOCacheEnabled);
4773 pelmIOCache->setAttribute("size", hw.ioSettings.ulIOCacheSize);
4778 for (BandwidthGroupList::const_iterator it = hw.ioSettings.llBandwidthGroups.begin();
4779 it != hw.ioSettings.llBandwidthGroups.end();
4805 for (HostPCIDeviceAttachmentList::const_iterator it = hw.pciAttachments.begin();
4806 it != hw.pciAttachments.end();
4824 pelmCardReader->setAttribute("enabled", hw.fEmulatedUSBCardReader);
4828 && !hw.strDefaultFrontend.isEmpty())
4832 pelmDefault->setAttribute("type", hw.strDefaultFrontend);
4836 pelmGuest->setAttribute("memoryBalloonSize", hw.ulMemoryBalloonSize);
4839 for (GuestPropertiesList::const_iterator it = hw.llGuestProperties.begin();
4840 it != hw.llGuestProperties.end();
4851 if (hw.strNotificationPatterns.length())
4852 pelmGuestProps->setAttribute("notificationPatterns", hw.strNotificationPatterns);