From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Ostrovsky Subject: Re: [PATCH v2 3/3] paravirt: rename paravirt_enabled to paravirt_legacy Date: Wed, 17 Feb 2016 16:21:56 -0500 Message-ID: <56C4E474.2070206@oracle.com> References: <1454733014-15237-1-git-send-email-mcgrof@kernel.org> <1454733014-15237-4-git-send-email-mcgrof@kernel.org> <20160206085930.GF25240@wotan.suse.de> <56B8B4D8.7050208@oracle.com> <20160209070629.GK25240@wotan.suse.de> <20160217204954.GO2023@pd.tnic> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20160217204954.GO2023@pd.tnic> Sender: linux-kernel-owner@vger.kernel.org To: Borislav Petkov , "Luis R. Rodriguez" Cc: Konrad Rzeszutek Wilk , Andrew Cooper , David Vrabel , Andy Lutomirski , Juergen Gross , Michael Brown , Thomas Gleixner , Andrey Ryabinin , Joerg Roedel , Robert Moore , Mauro Carvalho Chehab , "Rafael J. Wysocki" , Xen Devel , "H. Peter Anvin" , Rusty Russell , Jan Beulich , Lv Zheng , "linux-kernel@vger.kernel.org" , long.wanglong@huawei.com, Fengguang Wu , qiuxishi@huawei.com, Andrey Ryabinin , david.e.box@intel.co List-Id: xen-devel@lists.xenproject.org On 02/17/2016 03:49 PM, Borislav Petkov wrote: > On Wed, Feb 17, 2016 at 12:07:13PM -0800, Luis R. Rodriguez wrote: >> OK so here's a wiki to keep track of progress of the difference uses: >> >> http://kernelnewbies.org/KernelProjects/remove-paravirt-enabled >> >> It seems we have a resolution one way or another for all except for >> the use on arch/x86/mm/dump_pagetables.c, is that right? > > Why not? > > I think we should simply check the range as ffff800000000000 - > ffff87ffffffffff is practically an ABI and nothing should be mapped ^^^^^^^^^ That's exactly the point: if something is mapped it's an error for a non-PV kernel. By removing paravirt_enabled() we may miss those errors. Worse, I think we may even crash while doing pagetable walk (although it's probably better to crash here than to use an unexpected translation in real code somewhere) -boris > there anyway. No need for paravirt_enabled() there either. >