Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4038547pxa; Sun, 9 Aug 2020 21:38:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwACtuCEQOWRsMahj+NSIWGN54A5GngwZiu9yi8EIfV0yT3BZYXplrPbblZKQj0viWzuxQt X-Received: by 2002:a17:906:c34e:: with SMTP id ci14mr21053175ejb.335.1597034338353; Sun, 09 Aug 2020 21:38:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597034338; cv=none; d=google.com; s=arc-20160816; b=z2Du1RFRpUhWGLY1ehgWC04GhHZBP8TGZI0qszqaso+JsNWQMruWTyz32RQIfyqGPJ CRaeKyklOBriKz7lVYvw5ocYKuYRJ+jRLngQ2lFLGWjDnIGBr0/NK55E1ay3T+rG48/s c55TbcF0TADogO/+LNwx62g/YusX+ZX7E/cprAhqTmeq2162vVYXLQYHzGtrxDrudFuN LRBUyDj6dECvWJRQzoBUhmyDz5YB8/x+rSKZtP/i/OLOz1GPavPn1DvOrK3dRdoOaBku buPzsYowzMOSUWeup121N1AQGRgiVZ69Y7wwQOIyfowj38eFJ5Ykk6gIofSNUuc4kfAl ffOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=rXmcUB5SYDmy4kLWFKCfmDXvwtRPVwZ++Axdjx9tfrM=; b=mgaXVzmLV7dhwTJIdIJO2xzEN+WoUbdh5cjV9FDkIoLmg1XPQWGMOTfPQJ+8yDn9K5 Qz7AckhXuW7/rr9xNbQEbb7WgzeepMG8e/ibSShb1SnUf3f/JvNav6jtVZQP++hLBjYw ag6frouqEMQjjNzSAwZWDTMZyACWOWGbEzRTakhcaVb8LhfABFh3C94Xw7Mri9HVX6K/ vgE1K5wbnHa9Ugmgm8WGrgWdiTRSnhRHhSqr4ExORjW0TccVUiqdqmmuznUOwBHulC3i IsUJoQWrQL2Q3sThKOjT0k/J8I6MWABnx1I38DTBZcVKylYYTLwvO+WxGHRb1nsmOOKA 0uJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o10si9635236edv.301.2020.08.09.21.38.35; Sun, 09 Aug 2020 21:38:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725814AbgHJEhf (ORCPT + 99 others); Mon, 10 Aug 2020 00:37:35 -0400 Received: from mx2.suse.de ([195.135.220.15]:57806 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725846AbgHJEhf (ORCPT ); Mon, 10 Aug 2020 00:37:35 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 57B1FABE2; Mon, 10 Aug 2020 04:37:54 +0000 (UTC) Subject: Re: [PATCH v3 3/7] x86/xen: drop tests for highmem in pv code To: Boris Ostrovsky , xen-devel@lists.xenproject.org, x86@kernel.org, linux-kernel@vger.kernel.org Cc: Stefano Stabellini , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Thomas Gleixner References: <20200807083826.16794-1-jgross@suse.com> <20200807083826.16794-4-jgross@suse.com> <60f40558-a3a8-2c1e-2c32-09f93bfca724@oracle.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: Date: Mon, 10 Aug 2020 06:37:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <60f40558-a3a8-2c1e-2c32-09f93bfca724@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09.08.20 04:22, Boris Ostrovsky wrote: > On 8/7/20 4:38 AM, Juergen Gross wrote: >> With support for 32-bit pv guests gone pure pv-code no longer needs to >> test for highmem. Dropping those tests removes the need for flushing >> in some places. >> >> Signed-off-by: Juergen Gross > > > Reviewed-by: Boris Ostrovsky > > > with a suggestion > > >> --- >> arch/x86/xen/enlighten_pv.c | 11 ++- >> arch/x86/xen/mmu_pv.c | 138 ++++++++++++++---------------------- >> 2 files changed, 57 insertions(+), 92 deletions(-) >> >> diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c >> index 7d90b3da8bb4..9fec952f84f3 100644 >> --- a/arch/x86/xen/enlighten_pv.c >> +++ b/arch/x86/xen/enlighten_pv.c >> @@ -347,6 +347,7 @@ static void set_aliased_prot(void *v, pgprot_t prot) >> unsigned long pfn; >> struct page *page; >> unsigned char dummy; >> + void *av; > > > to rename this to va since you are modifying those lines anyway. Yes. Juergen