[vbox-dev] [PATCH] Fix synthetic CPU property
Benjamin Gilbert
bgilbert at cs.cmu.edu
Wed Jan 26 19:54:35 PST 2011
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();
More information about the vbox-dev
mailing list