Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754818AbYCaLV2 (ORCPT ); Mon, 31 Mar 2008 07:21:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752485AbYCaLVV (ORCPT ); Mon, 31 Mar 2008 07:21:21 -0400 Received: from fg-out-1718.google.com ([72.14.220.156]:44508 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752447AbYCaLVU (ORCPT ); Mon, 31 Mar 2008 07:21:20 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nzmdNFUm06o1qFCBPTlqSJWEfaEpzVBoKH5QNTlLZJFDQBLvAIhIH7SUka7DLcYjXls7c8nCGN/YTYy0t3kI8/uRlgpSoVede14c7DgWmcGf/xFhZazjirzcVn1sdJeFXhsTpl+FkTX1FUeTM+qeYD/Zl0zYm2I4ZzyMFnXvcUA= Message-ID: <21d7e9970803310421k67f1a697s8ffb5a4eef71c605@mail.gmail.com> Date: Mon, 31 Mar 2008 21:21:19 +1000 From: "Dave Airlie" To: "Andi Kleen" Subject: Re: [PATCH] x86: create array based interface to change page attribute Cc: "Dave Airlie" , linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, arjan@linux.intel.com, thomas@tungstengraphics.com In-Reply-To: <87myof8ief.fsf@basil.nowhere.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1206940788.7250.13.camel@clockmaker.usersys.redhat.com> <87myof8ief.fsf@basil.nowhere.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 903 Lines: 23 On Mon, Mar 31, 2008 at 5:25 PM, Andi Kleen wrote: > Dave Airlie writes: > > > > +#define CPA_FLUSHTLB 1 > > +#define CPA_ARRAY 2 > > I don't think CPA_ARRAY should be a separate case. Rather single > page flushing should be an array with only a single entry. pageattr > is already very complex, no need to make add more special cases. I thought about this but the current interface takes a start address and number of pages from that point to cpa, the array interface takes an array of page sized pages. I don't really think we need to generate an array in the first case with all the pages in it.. Dave. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/