[vbox-dev] [PATCH] CPU exec cap in GUI

Sergey Dubov Sergey.Dubov at Oracle.COM
Mon Jul 4 09:33:39 GMT 2011


Hi.

1. It adds corresponding information into Session Information window 
(Host+N, by default in running VM).
2. Implemented in Beta1.

/WBR, Sergey Dubov/


28.06.2011 01:12, Alexey Eromenko пишет:
> 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,
>
>
> _______________________________________________
> vbox-dev mailing list
> vbox-dev at virtualbox.org
> http://vbox.innotek.de/mailman/listinfo/vbox-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20110704/686314d5/attachment.html>


More information about the vbox-dev mailing list