- [PATCH] hv: prevent VMs make pCPU enter C-state.
Re: [PATCH] hv: prevent VMs make pCPU enter C-state.
toggle quoted messageShow quoted text
From: Zhao, Yuanyuan <yuanyuan.zhao@...>
Sent: Sunday, July 24, 2022 8:44 PM
To: Dong, Eddie <eddie.dong@...>; acrn-dev@...;
Mao, Junjie <junjie.mao@...>; Li, Fei1 <fei1.li@...>
Subject: Re: [acrn-dev] [PATCH] hv: prevent VMs make pCPU enter C-state.
On 2022/7/22 4:17, Dong, Eddie wrote:
I thought what you did is to remove the MONITOR cap from guest, and makesure VM-exit to MONITOR execution of guest.
Ok, i will change it to:
This is fine. Please make the commit message clear.
"Remove the MONITOR capability from VMs which share pCPU with others.
For these VMs, execution of MONITOR and MWAIT will cause a VM-exit."
to let vCPU execute MONITOR and enter deep C state.
Also, we need to make it conditionally: for dedicated core case, we do want
OK. I will check if the VM is Prelaunched VM or RTVM before hide it.
The offline tool can tell you if the VM uses dedicated core or not even for postlaunched VM.
But if we simplify it to be for pre-launched VM only (as dedicated CPUs), it might be ok too. But please get +1 from Junjie.
Join firstname.lastname@example.org to automatically receive all group messages.