From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH 2/2] kvm: x86: fix stale mmio cache bug Date: Mon, 18 Aug 2014 23:24:57 +0200 Message-ID: <53F26F29.9060308@redhat.com> References: <1407999713-3726-1-git-send-email-xiaoguangrong@linux.vnet.ibm.com> <1407999713-3726-2-git-send-email-xiaoguangrong@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: avi.kivity@gmail.com, mtosatti@redhat.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, David Matlack , stable@vger.kernel.org To: Xiao Guangrong , gleb@kernel.org Return-path: In-Reply-To: <1407999713-3726-2-git-send-email-xiaoguangrong@linux.vnet.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org Il 14/08/2014 09:01, Xiao Guangrong ha scritto: > * Clear the mmio cache info for the given gva, > - * specially, if gva is ~0ul, we clear all mmio cache info. > + * specially, if gva is ~MMIO_GVA_ANY, we clear all mmio cache info. Extra ~. > */ > +#define MMIO_GVA_ANY ~((gva_t)0) > + Better: (~(gva_t)0). Paolo