From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760093AbXGTV2W (ORCPT ); Fri, 20 Jul 2007 17:28:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934302AbXGTV1n (ORCPT ); Fri, 20 Jul 2007 17:27:43 -0400 Received: from one.firstfloor.org ([213.235.205.2]:47366 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933057AbXGTV1m (ORCPT ); Fri, 20 Jul 2007 17:27:42 -0400 Date: Fri, 20 Jul 2007 23:27:41 +0200 From: Andi Kleen To: "H. Peter Anvin" Cc: Andi Kleen , Glauber de Oliveira Costa , Linux Kernel Mailing List Subject: Re: [PATCH] x86: Create clflush() inline, remove hardcoded wbinvd Message-ID: <20070720212741.GB565@one.firstfloor.org> References: <1184885740.16311.19.camel@t60> <200707202119.l6KLJwcd004205@tazenda.hos.anvin.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200707202119.l6KLJwcd004205@tazenda.hos.anvin.org> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 20, 2007 at 02:19:58PM -0700, H. Peter Anvin wrote: > Create an inline function for clflush(), with the proper arguments, > and use it instead of hard-coding the instruction. > > This also removes one instance of hard-coded wbinvd, based on a patch > by Bauder de Oliveira Costa. I don't see much sense in it. CLFLUSH is not priviledged, paravirt doesn't need to change and this adds just an unnecessary layer of abstraction. -Andi