From nobody Tue Feb 10 02:00:26 2026 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1580517225838388.92337090631315; Fri, 31 Jan 2020 16:33:45 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ixgii-000678-Ar; Sat, 01 Feb 2020 00:33:08 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ixgig-00066E-Fy for xen-devel@lists.xenproject.org; Sat, 01 Feb 2020 00:33:06 +0000 Received: from bombadil.infradead.org (unknown [2607:7c80:54:e::133]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 690dca7c-448a-11ea-ad98-bc764e2007e4; Sat, 01 Feb 2020 00:33:05 +0000 (UTC) Received: from i7.infradead.org ([2001:8b0:10b:1:21e:67ff:fecb:7a92]) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixgie-0007N2-GR; Sat, 01 Feb 2020 00:33:04 +0000 Received: from dwoodhou by i7.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1ixgid-009ulG-9S; Sat, 01 Feb 2020 00:33:03 +0000 X-Inumbo-ID: 690dca7c-448a-11ea-ad98-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=oJ4ggL9B9DVukcCynxJbKxFVyNAbYCr/rqO67ToM4Zo=; b=hzTcrbp90+kCz6dQW0ZDbXyGIT 5pcfR+6ziBec6NiKYoonyuJ3QM9uiA52qCYX1zGtvA2gbNh0K+jId5ntgXohROwOkidHTrjYfzncO 0P8mEZdJVb9CX732ntt/Uc52BG4LHmaNqKnDDXflYAbXmL08K/rXFVL0b9d4EGR954RS71+ur+UzW IYmlO3Bym4lxxO09ZLcDMTOmXTq4VBnWNj3fLpic7ZQwLowu5nSanaslrhib7oaPeTvnFOhhOD/Dh QdZDNcxSvBLDOjlywdF1DORCMCg//x1uzGx+2mhbFH9e7ciY7h+JVmZGDKC1ogO00oZgJ9fuD7SPy AXIyUiLg==; From: David Woodhouse To: xen-devel@lists.xenproject.org Date: Sat, 1 Feb 2020 00:33:01 +0000 Message-Id: <20200201003303.2363081-6-dwmw2@infradead.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <8a95f787ca93b23ee8d8c0b55fcc63d22a75c5f3.camel@infradead.org> References: <8a95f787ca93b23ee8d8c0b55fcc63d22a75c5f3.camel@infradead.org> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Subject: [Xen-devel] [PATCH 6/8] x86/setup: move vm_init() before end_boot_allocator() X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Julien Grall , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Varad Gautam , Ian Jackson , Hongyan Xia , Paul Durrant , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: David Woodhouse We would like to be able to use vmap() to map the live update data, and we need to do a first pass of the live update data before we prime the heap because we need to know which pages need to be preserved. The warning about ACPI code can be dropped, since that problem no longer exists when things are done in this order. Signed-off-by: David Woodhouse Reviewed-by: Jan Beulich --- xen/arch/x86/setup.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index 2677f127b9..5f68a1308f 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -1489,6 +1489,8 @@ void __init noreturn __start_xen(unsigned long mbi_p) =20 numa_initmem_init(0, raw_max_page); =20 + vm_init(); + if ( max_page - 1 > virt_to_mfn(HYPERVISOR_VIRT_END - 1) ) { unsigned long limit =3D virt_to_mfn(HYPERVISOR_VIRT_END - 1); @@ -1519,12 +1521,6 @@ void __init noreturn __start_xen(unsigned long mbi_p) end_boot_allocator(); =20 system_state =3D SYS_STATE_boot; - /* - * No calls involving ACPI code should go between the setting of - * SYS_STATE_boot and vm_init() (or else acpi_os_{,un}map_memory() - * will break). - */ - vm_init(); =20 console_init_ring(); vesa_init(); --=20 2.21.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel