From: Avi Kivity <avi@redhat.com>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: kvm@vger.kernel.org, Marcelo Tosatti <mtosatti@redhat.com>,
Chris Wright <chriws@sous-sol.org>,
Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
Subject: Re: [PATCH] kvm-vmx: add module parameter to avoid trapping HLT instructions
Date: Thu, 02 Dec 2010 10:43:22 +0200 [thread overview]
Message-ID: <4CF75C2A.1080709@redhat.com> (raw)
In-Reply-To: <1291226627-13664-1-git-send-email-aliguori@us.ibm.com>
On 12/01/2010 08:03 PM, Anthony Liguori wrote:
> 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. A similar option is possible
> for AMD but I don't have easy access to AMD test hardware.
Looks reasonable.
> +static int __read_mostly enable_yield_on_guest_hlt = 1;
> +module_param(enable_yield_on_guest_hlt, bool, S_IRUGO);
> +
Please rename to yield_on_hlt. Also, should not be __read_mostly
(__read_mostly is for variables that are also __read_often).
--
error compiling committee.c: too many arguments to function
prev parent reply other threads:[~2010-12-02 8:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-01 18:03 [PATCH] kvm-vmx: add module parameter to avoid trapping HLT instructions Anthony Liguori
2010-12-02 8:43 ` Avi Kivity [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CF75C2A.1080709@redhat.com \
--to=avi@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=chriws@sous-sol.org \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=vatsa@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox