Re: How to enable/disable Intel turbo boost technology


Victor Sun
 

Hi Jianjie,

The CPU turbo could be enabled for each VM only when the pinned pCPU is wholly assigned to one VM, i.e. no CPU sharing between VMs.

ACRN provides ACPI P state table for post-launched VM so UOS kernel could enable P state by either acpi-cpufreq driver or intel_pstate driver if pCPU support intel_pstate.

For pre-launched VM, only intel_pstate is supported.

 

Yes we can use different device model parameter to enable/disable turbo by returning modified vCPUID result, but currently we have no plan to implement it.

For Linux guest, you can simply add kernel parameter of “cpufreq.off=1” to disable turbo.

 

BR,

Victor

 

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Tuesday, August 3, 2021 5:00 PM
To: acrn-users@...
Subject: [acrn-users] How to enable/disable Intel turbo boost technology

 

Hello acrn project teams,

 

Here I would like to ask about the Enable and Disable feature of Intel turbo boost technology.

As I know that for a PC if I want to disable the intel turbo boost technology, I need to set the BIOS setting before booting the system.

But for the hypervisor type1, I would like to ask if it is possible to set the turbo boost technology for each UOSs individually.

 

For example, I have to UOSs: Uos1, Uos2.

I want to enable the turbo boost technology in the UOS1 but disable this feature in the UOS2.

 

I found the device model parameter offers a flag.

-B, --bootargs <bootargs>

    Set the User VM kernel command-line arguments. The maximum length is 1023. The bootargs string will be passed to the kernel as its cmdline.

    Example:

    -B "loglevel=7"

    specifies the kernel log level at 7

 

Therefore, I would like to ask if it is possible to use this flag for setting this parameter. If it is possible, how can I write the cmdline?

Thank you very much for your support.

 

Cheers

Jianjie Lin

 

Join {acrn-users@lists.projectacrn.org to automatically receive all group messages.