From patchwork Wed Mar 18 11:45:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Woodhouse X-Patchwork-Id: 11445055 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 374AF1820 for ; Wed, 18 Mar 2020 11:46:46 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 133EF20771 for ; Wed, 18 Mar 2020 11:46:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="s0ErPwaA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 133EF20771 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jEX8W-0000P6-9F; Wed, 18 Mar 2020 11:45:24 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jEX8U-0000P0-On for xen-devel@lists.xenproject.org; Wed, 18 Mar 2020 11:45:23 +0000 X-Inumbo-ID: edd26d1a-690d-11ea-bec1-bc764e2007e4 Received: from bombadil.infradead.org (unknown [2607:7c80:54:e::133]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id edd26d1a-690d-11ea-bec1-bc764e2007e4; Wed, 18 Mar 2020 11:45:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Mime-Version:Content-Type:Date:Cc:To: From:Subject:Message-ID:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=mt0hB0cjYOGs4IUuWQYpXp2KTb+xPDOEDckKWBL25K0=; b=s0ErPwaA4zhjqurm6S1exseqvr R5GfvLzK17tJKrkqP21NI6J/yActmP+H2Vpr6qf8EFmTHrcj8rxh0CWUa2gYvSRHJ0CH70eIkoZRB CIq9ZatcHOudQL2h1uxKK3cq9ygByQfBkEUNoXCRiJrdfvl715m++rTQYj7UnWc+0VYTZ9OiUufQw q5081sPQ2IpX3q2K0bgfkPrvkqYXsn6TN22KH0owteeFOd0Mz3HJyoTdPMTVoNOBN1fE7Q9FuD4Cs W5EKb0Jpe45X/n0BSEVWxtJAUHQ2jBfdIsUKcoEHC8GTQ2piSYIp5cbgPmOJFbTQ52oIivZkip1if 3Xlz40hA==; Received: from 54-240-197-235.amazon.com ([54.240.197.235] helo=edge-m1-r3-134.e-iad16.amazon.com) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jEX8J-0002Bp-Gq; Wed, 18 Mar 2020 11:45:11 +0000 Message-ID: <916bbc82cafac74f0a203b48eebfbc711bd33a70.camel@infradead.org> From: David Woodhouse To: xen-devel@lists.xenproject.org Date: Wed, 18 Mar 2020 11:45:07 +0000 X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 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 0/2] x86/setup: Dom0 creation cleanups 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: Julien Grall , Wei Liu , Andrew Cooper , Paul Durrant , Jan Beulich , Roger Pau =?iso-8859-1?q?Monn=E9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" As a precursor to live update support, clean up the dom0 creation in start_xen() a little bit. This makes it easier for later live update patches to make it conditional, since in live update we'll already have an existing dom0 being brought over from the previous Xen. But it's a cleanup in its own right in the meantime. David Woodhouse (2): x86/setup: simplify handling of initrdidx when no initrd present x86/setup: lift dom0 creation out into create_dom0() function xen/arch/x86/setup.c | 175 ++++++++++++++++++++++++++++----------------------- 1 file changed, 95 insertions(+), 80 deletions(-)