KVM: VMX: add module parameter to avoid trapping HLT instructions (v5)
authorAnthony Liguori <aliguori@us.ibm.com>
Mon, 6 Dec 2010 16:53:38 +0000 (10:53 -0600)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:30:46 +0000 (11:30 +0200)
In certain use-cases, we want to allocate guests fixed time slices where idle
guest cycles leave the machine idling.  There are many approaches to achieve
this but the most direct is to simply avoid trapping the HLT instruction which
lets the guest directly execute the instruction putting the processor to sleep.

Introduce this as a module-level option for kvm-vmx.ko since if you do this
for one guest, you probably want to do it for all.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

No differences found