public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Re: How to enable Pause Loop Exiting (PLE)?
@ 2014-06-09  3:52 Zhang Haoyu
  2014-06-09  4:36 ` Jidong Xiao
  2014-06-09  5:56 ` Jidong Xiao
  0 siblings, 2 replies; 9+ messages in thread
From: Zhang Haoyu @ 2014-06-09  3:52 UTC (permalink / raw)
  To: Jidong Xiao, KVM

>Hi,
>
>I am using this tool for querying VMX capabilities.
>
>http://git.qemu.org/?p=qemu.git;a=blob_plain;f=scripts/kvm/vmxcap;hb=HEAD
>
>And it shows as below that pause-loop exiting is not enabled. My kernel is 3.14.
>
>secondary processor-based controls
>  Virtualize APIC accesses                 yes
>  Enable EPT                               yes
>  Descriptor-table exiting                 yes
>  Enable RDTSCP                            yes
>  Virtualize x2APIC mode                   yes
>  Enable VPID                              yes
>  WBINVD exiting                           yes
>  Unrestricted guest                       no
>  APIC register emulation                  no
>  Virtual interrupt delivery               no
>  PAUSE-loop exiting                       no
>  RDRAND exiting                           no
>  Enable INVPCID                           no
>  Enable VM functions                      no
>  VMCS shadowing                           no
>  EPT-violation #VE                        no
>
>What shall I do if I wish to enable PLE? I have also tried this:
>
>From above info, your physical cpu dose not support ple feature,
if you want to enable ple, your cpu must support ple feature, and 'PAUSE exiting' must be 0-settting, 'PAUSE-loop exiting' must be 1-setting.
And, kvm-intel module will enable ple as default if your cpu support ple feature.

>linux-vsvo:~/code/test # rmmod kvm-intel
>linux-vsvo:~/code/test # modprobe kvm-intel ple_gap=128
>linux-vsvo:~/code/test # cat /sys//module/kvm_intel/parameters/ple_gap
>0
>
>But, it does not change the ple_gap, and also, the above script still
>says PLE is disabled.
>
>-Jidong


^ permalink raw reply	[flat|nested] 9+ messages in thread
* How to enable Pause Loop Exiting (PLE)?
@ 2014-06-08 18:34 Jidong Xiao
  0 siblings, 0 replies; 9+ messages in thread
From: Jidong Xiao @ 2014-06-08 18:34 UTC (permalink / raw)
  To: KVM

Hi,

I am using this tool for querying VMX capabilities.

http://git.qemu.org/?p=qemu.git;a=blob_plain;f=scripts/kvm/vmxcap;hb=HEAD

And it shows as below that pause-loop exiting is not enabled. My kernel is 3.14.

secondary processor-based controls
  Virtualize APIC accesses                 yes
  Enable EPT                               yes
  Descriptor-table exiting                 yes
  Enable RDTSCP                            yes
  Virtualize x2APIC mode                   yes
  Enable VPID                              yes
  WBINVD exiting                           yes
  Unrestricted guest                       no
  APIC register emulation                  no
  Virtual interrupt delivery               no
  PAUSE-loop exiting                       no
  RDRAND exiting                           no
  Enable INVPCID                           no
  Enable VM functions                      no
  VMCS shadowing                           no
  EPT-violation #VE                        no

What shall I do if I wish to enable PLE? I have also tried this:

linux-vsvo:~/code/test # rmmod kvm-intel
linux-vsvo:~/code/test # modprobe kvm-intel ple_gap=128
linux-vsvo:~/code/test # cat /sys//module/kvm_intel/parameters/ple_gap
0

But, it does not change the ple_gap, and also, the above script still
says PLE is disabled.

-Jidong

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-06-10  1:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-09  3:52 How to enable Pause Loop Exiting (PLE)? Zhang Haoyu
2014-06-09  4:36 ` Jidong Xiao
2014-06-09  5:56 ` Jidong Xiao
2014-06-09  6:25   ` Zhang Haoyu
2014-06-09  7:16     ` Zhang Haoyu
2014-06-09 20:27       ` Jidong Xiao
2014-06-09 21:04         ` Liwen Wu (liwwu)
2014-06-10  1:58         ` Zhang Haoyu
  -- strict thread matches above, loose matches on Subject: below --
2014-06-08 18:34 Jidong Xiao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox