From: Avi Kivity <avi@redhat.com>
To: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>,
KVM list <kvm@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 4/4] KVM MMU: do not intercept invlpg if 'oos_shadow' is disabled
Date: Wed, 05 May 2010 17:26:40 +0300 [thread overview]
Message-ID: <4BE18020.50506@redhat.com> (raw)
In-Reply-To: <4BE16A82.4080807@cn.fujitsu.com>
On 05/05/2010 03:54 PM, Xiao Guangrong wrote:
>
> Avi Kivity wrote:
>
>> On 04/30/2010 12:05 PM, Xiao Guangrong wrote:
>>
>>> If 'oos_shadow' == 0, intercepting invlpg command is really
>>> unnecessary.
>>>
>>> And it's good for us to compare the performance between enable
>>> 'oos_shadow'
>>> and disable 'oos_shadow'
>>>
>>> @@ -74,8 +74,9 @@ static int dbg = 0;
>>> module_param(dbg, bool, 0644);
>>> #endif
>>>
>>> -static int oos_shadow = 1;
>>> +int __read_mostly oos_shadow = 1;
>>> module_param(oos_shadow, bool, 0644);
>>> +EXPORT_SYMBOL_GPL(oos_shadow);
>>>
>>>
>> Please rename to kvm_oos_shadow to reduce potential for conflict with
>> other global names.
>>
>> But really, this is a debug option, I don't expect people to run with
>> oos_shadow=0, so there's not much motivation to optimize it.
>>
> Agreed, but, 'oos_shadow' option is document in Documentation/kernel-parameters.txt,
> if it's just a debug option, i think we do better not document it.
>
It has to be documented, otherwise people complain :)
Anyway the variable name and the option name don't have to be the same
(I think).
--
error compiling committee.c: too many arguments to function
prev parent reply other threads:[~2010-05-05 14:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4BDA9C37.9070602@cn.fujitsu.com>
2010-04-30 9:52 ` [PATCH 1/4] KVM MMU: fix race in invlpg code Avi Kivity
[not found] ` <4BDA9C86.8080204@cn.fujitsu.com>
[not found] ` <4BDA9CD0.6070501@cn.fujitsu.com>
2010-04-30 9:54 ` [PATCH 3/4] KVM MMU: allow shadow page become unsync at creating time Avi Kivity
[not found] ` <4BDA9D58.6030407@cn.fujitsu.com>
2010-04-30 9:56 ` [PATCH 4/4] KVM MMU: do not intercept invlpg if 'oos_shadow' is disabled Avi Kivity
2010-05-05 12:54 ` Xiao Guangrong
2010-05-05 14:26 ` 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=4BE18020.50506@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=xiaoguangrong@cn.fujitsu.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