Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932109AbcCVRCS (ORCPT ); Tue, 22 Mar 2016 13:02:18 -0400 Received: from mx2.suse.de ([195.135.220.15]:60017 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754493AbcCVRCK (ORCPT ); Tue, 22 Mar 2016 13:02:10 -0400 Date: Tue, 22 Mar 2016 18:02:06 +0100 From: Borislav Petkov To: Toshi Kani , jgross@suse.com Cc: mingo@kernel.org, hpa@zytor.com, tglx@linutronix.de, mcgrof@suse.com, paul.gortmaker@windriver.com, konrad.wilk@oracle.com, elliott@hpe.com, x86@kernel.org, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 5/6] x86/xen,pat: Remove PAT table init code from Xen Message-ID: <20160322170206.GF5656@pd.tnic> References: <1458175619-32206-1-git-send-email-toshi.kani@hpe.com> <1458175619-32206-4-git-send-email-toshi.kani@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1458175619-32206-4-git-send-email-toshi.kani@hpe.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1248 Lines: 35 On Wed, Mar 16, 2016 at 06:46:58PM -0600, Toshi Kani wrote: > Xen supports PAT without MTRR for its guests. In order to > enable WC attribute, it was necessary for xen_start_kernel() > to call pat_init_cache_modes() to update PAT table before > starting guest kernel. > > Now that the kernel initializes PAT table to the BIOS handoff > state when MTRR is disabled, this Xen-specific PAT init code > is no longer necessary. Delete it from xen_start_kernel(). > > Also change pat_init_cache_modes() to a static function since > PAT table should not be tweaked by other modules. > > Signed-off-by: Toshi Kani > Cc: Konrad Rzeszutek Wilk > Cc: Borislav Petkov > Cc: Luis R. Rodriguez > Cc: Juergen Gross > Cc: Ingo Molnar > Cc: H. Peter Anvin > Cc: Thomas Gleixner > --- > arch/x86/include/asm/pat.h | 1 - > arch/x86/mm/pat.c | 2 +- > arch/x86/xen/enlighten.c | 9 --------- > 3 files changed, 1 insertion(+), 11 deletions(-) Jürgen, ack? -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --