Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4879850imb; Thu, 7 Mar 2019 02:46:34 -0800 (PST) X-Google-Smtp-Source: APXvYqxWfKnUWVb0tKQKBdwwA8x1hrrZqYAeTfgh8rrBe5ENTK5ZcYZ7P9OUmjLUKoyxO9SB4JuQ X-Received: by 2002:a63:1021:: with SMTP id f33mr10773081pgl.392.1551955594184; Thu, 07 Mar 2019 02:46:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551955594; cv=none; d=google.com; s=arc-20160816; b=eXUr8MVkX/nAljCJZ5BWz4u80jD15XukMpUaFRJTUN6kD7HIHeqB7IR5M2jxfShn3C nZJ4vZtZsJ8uGNVKsJBmIMue7HBarGGLQiBFvLrh0LKynue7JLnw3aj7ZXE/C4vhfsKc k4LVIMRtJ8Omp4Ebnb05zJRbzLF2HlL5R+3w6BUogq2DUcZqnXin/3fO4fdqP0x37K19 qKYf1kRqLITUX14DqOQihWKbFy++i24HNoQkxgGobrB1ng3jFHixfWwx1QGmVBjtry5d PYWeXDpVj/1lgbCOEqmiyLbt2uNBnFTFh9zl0uLHKPU7uuZaoC/Vftp+Mjdelh9mjl9k UegQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:in-reply-to:references :subject:cc:to:from:date:message-id; bh=PD/ToToaLqQWGirhyox1zesLdcAw14kvB69cggcZJao=; b=IKe5ALc7sZL6cBKDoJsXMd57y0qdAORe4Ez8SyxXESXu10HCm4CpTTgI3qc2hZCL+I uFrr0q6+eB8btOGnnMzHS/Zs12jWrorLkUqaV1+CPsf1J9mjlDjtJRQCYoQFU7jJm2z0 mJXYjd4nFvMzUXFiuZf0dkzeteZQnzBtifYim2A7ZPYOurK1f8zctuHK/prxFUj0c75I y7o+SApSBFoMD/hV1bXOXu1RYfR2EgtQ/671VvF7G+gCFQ/2SzJubMfbCznJ8lSOAEWF 8LTjvbcM44vmXGjKbCdYGNUyIpj+frB7YxDIQJO9W636AG5AOsGBuXqHJfsjzekXgxoR E12g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q36si3641039pgk.143.2019.03.07.02.46.18; Thu, 07 Mar 2019 02:46:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726166AbfCGKp6 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 7 Mar 2019 05:45:58 -0500 Received: from prv1-mh.provo.novell.com ([137.65.248.33]:48912 "EHLO prv1-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726015AbfCGKp6 (ORCPT ); Thu, 7 Mar 2019 05:45:58 -0500 Received: from INET-PRV1-MTA by prv1-mh.provo.novell.com with Novell_GroupWise; Thu, 07 Mar 2019 03:45:57 -0700 Message-Id: <5C80F662020000780021C674@prv1-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 18.1.0 Date: Thu, 07 Mar 2019 03:45:54 -0700 From: "Jan Beulich" To: "Juergen Gross" Cc: "Borislav Petkov" , "Stefano Stabellini" , "the arch/x86 maintainers" , , "xen-devel" , "Boris Ostrovsky" , , , Subject: Re: [Xen-devel] [PATCH] xen: fix dom0 boot on huge systems References: <20190307091119.6700-1-jgross@suse.com> In-Reply-To: <20190307091119.6700-1-jgross@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> On 07.03.19 at 10:11, wrote: > Commit f7c90c2aa40048 ("x86/xen: don't write ptes directly in 32-bit > PV guests") introduced a regression for booting dom0 on huge systems > with lots of RAM (in the TB range). > > Reason is that on those hosts the p2m list needs to be moved early in > the boot process and this requires temporary page tables to be created. > Said commit modified xen_set_pte_init() to use a hypercall for writing > a PTE, but this requires the page table being in the direct mapped > area, which is not the case for the temporary page tables used in > xen_relocate_p2m(). > > As the page tables are completely written before being linked to the > actual address space instead of set_pte() a plain write to memory can > be used in xen_relocate_p2m(). > > Fixes: f7c90c2aa40048 ("x86/xen: don't write ptes directly in 32-bit PV guests") > Signed-off-by: Juergen Gross Reviewed-by: Jan Beulich