From: Sheng Yang <sheng@linux.intel.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: kvm@vger.kernel.org, Gui Jianfeng <guijianfeng@cn.fujitsu.com>,
avi@redhat.com
Subject: Re: [PATCH] KVM: Remove redundant check in vm_need_virtualize_apic_accesses()
Date: Fri, 29 Jan 2010 15:46:18 +0800 [thread overview]
Message-ID: <201001291546.18258.sheng@linux.intel.com> (raw)
In-Reply-To: <4B62901B.9020403@cn.fujitsu.com>
On Friday 29 January 2010 15:36:59 Gui Jianfeng wrote:
> flexpriority_enabled implies cpu_has_vmx_virtualize_apic_accesses()
> returning true, so we don't need this check here.
>
Looks fine to me.
--
regards
Yang, Sheng
> Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
> ---
> arch/x86/kvm/vmx.c | 4 +---
> 1 files changed, 1 insertions(+), 3 deletions(-)
>
> diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
> index 9f56110..0e6af4a 100644
> --- a/arch/x86/kvm/vmx.c
> +++ b/arch/x86/kvm/vmx.c
> @@ -358,9 +358,7 @@ static inline int cpu_has_vmx_ple(void)
>
> static inline int vm_need_virtualize_apic_accesses(struct kvm *kvm)
> {
> - return flexpriority_enabled &&
> - (cpu_has_vmx_virtualize_apic_accesses()) &&
> - (irqchip_in_kernel(kvm));
> + return flexpriority_enabled && irqchip_in_kernel(kvm);
> }
>
> static inline int cpu_has_vmx_vpid(void)
>
next prev parent reply other threads:[~2010-01-29 7:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-29 7:36 [PATCH] KVM: Remove redundant check in vm_need_virtualize_apic_accesses() Gui Jianfeng
2010-01-29 7:46 ` Sheng Yang [this message]
2010-02-01 18:04 ` Marcelo Tosatti
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=201001291546.18258.sheng@linux.intel.com \
--to=sheng@linux.intel.com \
--cc=avi@redhat.com \
--cc=guijianfeng@cn.fujitsu.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.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