From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758970Ab3BWTnN (ORCPT ); Sat, 23 Feb 2013 14:43:13 -0500 Received: from mail-qc0-f180.google.com ([209.85.216.180]:60794 "EHLO mail-qc0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758826Ab3BWTnJ (ORCPT ); Sat, 23 Feb 2013 14:43:09 -0500 Date: Sat, 23 Feb 2013 14:43:01 -0500 From: Konrad Rzeszutek Wilk To: Yinghai Lu Cc: Konrad Rzeszutek Wilk , "H. Peter Anvin" , "H. Peter Anvin" , Stefano Stabellini , Linus Torvalds , Linux Kernel Mailing List Subject: Re: [GIT PULL] x86/mm changes for v3.9-rc1 Message-ID: <20130223194300.GA13174@konrad-lan.dumpdata.com> References: <5127CE65.5010703@linux.intel.com> <5127DDB3.2010309@zytor.com> <5127FBA4.1040506@zytor.com> <20130223003738.GA23545@phenom.dumpdata.com> <20130223012716.GA28377@phenom.dumpdata.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > >> how about if we call load_cr3 early several times? > >> assume you should make xen_write_cr3 more robust, > >> like bailing out early when cr3 writing same value. > > > > I would welcome such patch - but at this point I just want a > > patch for Linus so that I am not blocking him - and this > > one works. > > come on, you produce > > #ifdef CONFIG_X86_32 > .write_cr3 = xen_write_cr3_init, > #else > .write_cr3 = xen_write_cr3_init, > #endif > > for the fix, Linus should just apply attached patch instead. I misunderstood you. I thought you were talking about "how about if we call .. cr3 writing same value" - and that part I hadn't thought completly through so I did not want to delay Linus. Naturally the fixes you pointed out should be in the patch - and hpa graciously did the fixes and sent to Linus. Thank you Peter! > > >> > >> Also you should check condition about calling xen_get_user_pgd(). > > > > Could you elaborate please? > > only call xen_get_user_pgd() when it should be called. I should have been more explicit. When I was saying "elaborate" I was soliciting for advice on the 'check condition' and how to make it robust. > > Yinghai