From: Sander Eikelenboom Subject: Re: [PATCH] x86: fix cache flushing condition in map_pages_to_xen() Date: Wed, 17 Jul 2013 22:41:25 +0200 Message-ID: <1248870892.20130717224125@eikelenboom.it> References: <51E6CFC802000078000E5AB8@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1UzYXU-00066z-Jg for xen-devel@lists.xenproject.org; Wed, 17 Jul 2013 20:41:32 +0000 In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Keir Fraser Cc: xen-devel , Jan Beulich List-Id: xen-devel@lists.xenproject.org Wednesday, July 17, 2013, 6:31:41 PM, you wrote: > On 17/07/2013 16:09, "Jan Beulich" wrote: >> This fixes yet another shortcoming of the function (exposed by 8bfaa2c2 >> ["x86: add locking to map_pages_to_xen()"]'s adjustment to >> msix_put_fixmap()): It must not flush caches when transitioning to a >> non-present mapping. Doing so causes the CLFLUSH to fault, if used in >> favor of WBINVD. >> >> To help code readability, factor out the whole flush flags updating >> in map_pages_to_xen() into a helper macro. >> >> Signed-off-by: Jan Beulich > I'd prefer the macro modified as I just posted, but either way: > Acked-by: Keir Fraser Fixes my issue (reported in thread http://lists.xenproject.org/archives/html/xen-devel/2013-07/msg01609.html) Tested-by: Sander Eikelenboom