<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi.<br>
<br>
1. It adds corresponding information into Session Information window
(Host+N, by default in running VM).<br>
2. Implemented in Beta1.<br>
<br>
<div class="moz-signature"><i>WBR, Sergey Dubov</i></div>
<br>
<br>
28.06.2011 01:12, Alexey Eromenko пишет:
<blockquote
cite="mid:BANLkTinLQjQcB2GAsRVz5_gPMHD6EuC9tg@mail.gmail.com"
type="cite">
<pre wrap="">Updated patch. (much cleaned up, only 18K instead of 27K)
Some questions:
1. Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
line 1649:
+ QString (sSectionItemTpl2).arg (tr
("Processor(s)", "details report"),
tr
("<nobr>%1</nobr>", "details report"))
.arg (aMachine.GetCPUCount())
What it does, regarding to SMP ?
2. So far I can't make it run-time change compatible.
2.a. The above forced me to remove proposed patch for
"Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp"
+++ vbox/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp 2011-06-22
12:32:40.000000000 -0400
@@ -573,6 +573,10 @@
.arg(VBoxGlobal::tr("VT-x/AMD-V", "details
report"), virtualization)
.arg(VBoxGlobal::tr("Nested Paging"), nestedPaging));
+ int cpuCap = console.GetMachine().GetCPUExecutionCap();
+ tip += QApplication::translate("UIIndicatorsPool",
"<br><nobr><b>%1:</b> %2 %</nobr>", "Virtualization Stuff LED")
+ .arg(VBoxGlobal::tr("CPU Execution Cap", "details
report")).arg(cpuCap);
+
int cpuCount = console.GetMachine().GetCPUCount();
if (cpuCount > 1)
tip += QApplication::translate("UIIndicatorsPool",
"<br><nobr><b>%1:</b> %2</nobr>", "Virtualization Stuff LED")
The problem, is that if the use changes the CPU cap value from
VBoxManage CLI, it doesn't get updated in the indicator. I couldn't
find the right Qt slot/signal to fix real-time updates.
So doing:
$ VBoxManage controlvm "Windows XP immu 03" cpuexecutioncap 45
changes the main GUI summary, but not the UI indicator.
Best wishes,
</pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
vbox-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>
<a class="moz-txt-link-freetext" href="http://vbox.innotek.de/mailman/listinfo/vbox-dev">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a>
</pre>
</blockquote>
</body>
</html>