About the behavior of HLT in VMX guest mode
Hi guys,
I'm confusing about the behavior of HLT instruction in VMX guest mode.
I set "hlt exiting" bit to 0 in VMCS, and the vcpu didn't vmexit when execute HLT as expected. However, I used powertop/cpupower on host to watch the pcpu's c-states, it seems that the pcpu didn't enter C1/C1E state during this period.
I searched the Intel spec vol-3, and only found that guest MWAIT won't entering a low-power sleep state under certain conditions(ch 25.3), but not mentioned HLT.
My questions are
1) Does executing HLT instruction in guest-mode won't enter C1/C1E state ?
2) If it won't, then whether it would release the hardware resources shared with another hyper-thread ?
Any suggestion would be greatly appreciated, thanks!
Signature · 8 lines
Regards, Longpeng(Mike) _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 13.03.17 at 06:12, <[email protected]> wrote:
I'm confusing about the behavior of HLT instruction in VMX guest mode.
I set "hlt exiting" bit to 0 in VMCS, and the vcpu didn't vmexit when execute HLT as expected. However, I used powertop/cpupower on host to watch the pcpu's c-states, it seems that the pcpu didn't enter C1/C1E state during this period.
I guess no-one expects a VMM to want to set this control to zero, so the behavior may well be unspecified or model-specific. Neither of which I'm in the position to comment on, so I can only defer to the Intel guys.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Hi Jan,
Quoted 9 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 13.03.17 at 06:12, <[email protected]> wrote:
I'm confusing about the behavior of HLT instruction in VMX guest mode.
I set "hlt exiting" bit to 0 in VMCS, and the vcpu didn't vmexit when execute HLT as expected. However, I used powertop/cpupower on host to watch the pcpu's c-states, it seems that the pcpu didn't enter C1/C1E state during this period.
I guess no-one expects a VMM to want to set this control to zero,
Yep, I agree. I just do this for special purpose.
Quoted 4 lines
so the behavior may well be unspecified or model-specific. Neither
of which I'm in the position to comment on, so I can only defer to the Intel guys.
Thanks. :)
Quoted 6 lines
Jan
.
Signature · 8 lines
Regards, Longpeng(Mike) _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel