From patchwork Mon Jul 26 05:47:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Guangrong X-Patchwork-Id: 114185 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6Q5ppu5005807 for ; Mon, 26 Jul 2010 05:51:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752017Ab0GZFvc (ORCPT ); Mon, 26 Jul 2010 01:51:32 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:50888 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751060Ab0GZFvb (ORCPT ); Mon, 26 Jul 2010 01:51:31 -0400 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id 7A1F4170080; Mon, 26 Jul 2010 13:51:29 +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 o6Q5mYmu013135; Mon, 26 Jul 2010 13:48:34 +0800 Received: from [10.167.141.99] (unknown [10.167.141.99]) by fnst.cn.fujitsu.com (Postfix) with ESMTPA id 34E4210C165; Mon, 26 Jul 2010 13:52:05 +0800 (CST) Message-ID: <4C4D216B.5040004@cn.fujitsu.com> Date: Mon, 26 Jul 2010 13:47:23 +0800 From: Xiao Guangrong User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Stephen Rothwell CC: Avi Kivity , Marcelo Tosatti , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, KVM list Subject: [PATCH] KVM: fix compile warning References: <20100726151405.2dfd20ee.sfr@canb.auug.org.au> In-Reply-To: <20100726151405.2dfd20ee.sfr@canb.auug.org.au> 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]); Mon, 26 Jul 2010 05:51:52 +0000 (UTC) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 1a8f43f..0dcc95e 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -2904,8 +2904,8 @@ void kvm_mmu_pte_write(struct kvm_vcpu *vcpu, gpa_t gpa, entry = *spte; mmu_pte_write_zap_pte(vcpu, sp, spte); if (gentry && - !(sp->role.word ^ vcpu->arch.mmu.base_role.word) - & mask.word) + !((sp->role.word ^ vcpu->arch.mmu.base_role.word) + & mask.word)) mmu_pte_write_new_pte(vcpu, sp, spte, &gentry); if (!remote_flush && need_remote_flush(entry, *spte)) remote_flush = true;