From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: [Xen-devel] [PATCH 3/3] Support Xen pv-domains using PAT Date: Tue, 26 Aug 2014 11:59:41 +0100 Message-ID: <53FC689D.7020507@citrix.com> References: <1409033783-12136-1-git-send-email-jgross@suse.com> <1409033783-12136-4-git-send-email-jgross@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1409033783-12136-4-git-send-email-jgross@suse.com> Sender: linux-kernel-owner@vger.kernel.org To: Juergen Gross , stefan.bader@canonical.com, toshi.kani@hp.com, linux-kernel@vger.kernel.org, xen-devel@lists.xensource.com, konrad.wilk@oracle.com, ville.syrjala@linux.intel.com, hpa@zytor.com, x86@kernel.org List-Id: xen-devel@lists.xenproject.org On 26/08/14 07:16, Juergen Gross wrote: > With the dynamical mapping between cache modes and pgprot values it is now > possible to use all cache modes via the Xen hypervisor PAT settings in a > pv domain. > > All to be done is to read the PAT configuration MSR and set up the translation > tables accordingly. [...] > +void xen_init_cache_types(void) > +{ > + pat_init_cache_modes(); > +} No need to introduce xen_init_cache_types(), just call pat_init_cache_modes() directly. > void xen_set_pat(u64 pat) > { > - /* We expect Linux to use a PAT setting of > - * UC UC- WC WB (ignoring the PAT flag) */ > - WARN_ON(pat != 0x0007010600070106ull); > + xen_init_cache_types(); > } Remove xen_set_pat() and remove the special-cased handling of the PAT MSR from xen_write_msr_safe(). David