From patchwork Fri Jan 29 07:36:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gui Jianfeng X-Patchwork-Id: 75677 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o0T7gRha028826 for ; Fri, 29 Jan 2010 07:42:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756043Ab0A2HmY (ORCPT ); Fri, 29 Jan 2010 02:42:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753465Ab0A2HmY (ORCPT ); Fri, 29 Jan 2010 02:42:24 -0500 Received: from cn.fujitsu.com ([222.73.24.84]:50707 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S932168Ab0A2HmX (ORCPT ); Fri, 29 Jan 2010 02:42:23 -0500 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id 46CD9170117; Fri, 29 Jan 2010 15:42:19 +0800 (CST) Received: from fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id o0T7fhHc003592; Fri, 29 Jan 2010 15:41:43 +0800 Received: from [127.0.0.1] (unknown [10.167.141.226]) by fnst.cn.fujitsu.com (Postfix) with ESMTPA id F254AD47A5; Fri, 29 Jan 2010 15:43:35 +0800 (CST) Message-ID: <4B62901B.9020403@cn.fujitsu.com> Date: Fri, 29 Jan 2010 15:36:59 +0800 From: Gui Jianfeng User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: avi@redhat.com CC: kvm@vger.kernel.org Subject: [PATCH] KVM: Remove redundant check in vm_need_virtualize_apic_accesses() Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 29 Jan 2010 07:42:27 +0000 (UTC) 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)