Hello,

As reported in ticket #6577,
IMachine::setCPUProperty(CPUPropertyType.Synthetic, true) has never
actually worked, due to Console::configConstructor() placing the
SyntheticCpu flag in the wrong place in the CFGM tree.  The patch
below, which is licensed under the MIT license, fixes this.

--Benjamin Gilbert


--- src/VBox/Main/src-client/ConsoleImpl2.cpp   (revision 35690)
+++ src/VBox/Main/src-client/ConsoleImpl2.cpp   (working copy)
@@ -829,7 +829,7 @@
         /* Synthetic CPU */
         BOOL fSyntheticCpu = false;
         hrc = pMachine->GetCPUProperty(CPUPropertyType_Synthetic, 
&fSyntheticCpu);          H();
-        InsertConfigInteger(pRoot, "SyntheticCpu", fSyntheticCpu);
+        InsertConfigInteger(pCPUM, "SyntheticCpu", fSyntheticCpu);
          BOOL fPXEDebug;
         hrc = biosSettings->COMGETTER(PXEDebugEnabled)(&fPXEDebug);            
             H();


_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev

Reply via email to