From patchwork Thu Jul 18 21:57:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Cooper X-Patchwork-Id: 13736754 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D4D86C3DA49 for ; Thu, 18 Jul 2024 21:58:02 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.760734.1170637 (Exim 4.92) (envelope-from ) id 1sUZ8N-0003Bf-OK; Thu, 18 Jul 2024 21:57:55 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 760734.1170637; Thu, 18 Jul 2024 21:57:55 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sUZ8N-0003BY-L0; Thu, 18 Jul 2024 21:57:55 +0000 Received: by outflank-mailman (input) for mailman id 760734; Thu, 18 Jul 2024 21:57:53 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sUZ8L-0002ha-K9 for xen-devel@lists.xenproject.org; Thu, 18 Jul 2024 21:57:53 +0000 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [2a00:1450:4864:20::52c]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id c7796a05-4550-11ef-8776-851b0ebba9a2; Thu, 18 Jul 2024 23:57:52 +0200 (CEST) Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-58e76294858so549280a12.0 for ; Thu, 18 Jul 2024 14:57:52 -0700 (PDT) Received: from andrewcoop.eng.citrite.net ([185.25.67.249]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7a33de74e5sm5294266b.147.2024.07.18.14.57.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jul 2024 14:57:50 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: c7796a05-4550-11ef-8776-851b0ebba9a2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1721339870; x=1721944670; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=YtfadlNgadb4rLpJNCYrZ98WzF6Dv0YgGRcA5dWreRk=; b=m8o0wes+YxTDP+B9v820g3sxYDaSeHgqpj77s1/VR3/GHylwgnmtToKhBmqnzoa9US ikU6vFmHR+Z2pzllX6UU809cFmam7SbIWznP36FmL/ZbNnzHSxud3wqfMFXKtMz998/T 1Dj5Aq0wFl91JNz4oOt/Tnddgvd/jwJsjai+k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721339870; x=1721944670; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YtfadlNgadb4rLpJNCYrZ98WzF6Dv0YgGRcA5dWreRk=; b=KbdplpG7VFsdFuCWsVQ/h9ViMv5tsIK/hdf1Q6e1HYAeIouODl4RFuaWHnJC1UDfOs dH+CtdHIRWUSPuTMi0ya+hab/X1z4sQcITcgHQNeTQVSiYAi2puLC1QTQdRtroTqh/RW YsnzlIXCkANEXPqgUev8w9qBk7xMDawbojriHkLI1QkalUjJom+d9+3OViiF+jK+2sb+ FuR4IsJegEmvKGhUCfMUfjNzUFLvdGIRxPBzJHAlEdImW44JjWU9FiX1Qs094bMwTfPK iBXo9nw2GXSr5qpFDAM0sfZICUCALwnYdBqoqk2TgJkkgl19JpF52ruZyFqy6hIFreCZ 4O+Q== X-Gm-Message-State: AOJu0Yyp/xamMfk/VwV9JIDHDQIZW4CFdQuraUFYgdqtCkUMOgUKUBSA NHJf9a0YfE0uizYsM4/a1QNxJSVGsI80EFPTw/mTEnOTp/2Zdjf6pkWsJDWzFR0zEJBhEyG8Mal W X-Google-Smtp-Source: AGHT+IEKtx6lwmMuQBR7xMkjIlSqABge3Knhh9a06lDR5jnmvEnYO8PL/QrY9ZitvRBKmlsdPO5pMQ== X-Received: by 2002:a17:906:55d1:b0:a72:7b17:5d68 with SMTP id a640c23a62f3a-a7a0f0fea4fmr429858766b.3.1721339870499; Thu, 18 Jul 2024 14:57:50 -0700 (PDT) From: Andrew Cooper To: Xen-devel Cc: Andrew Cooper , Jan Beulich , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Stefano Stabellini , Julien Grall , Volodymyr Babchuk , Bertrand Marquis , Michal Orzel , Oleksii Kurochko Subject: [PATCH 0/4] xen/domain: Idle domain creation improvements Date: Thu, 18 Jul 2024 22:57:40 +0100 Message-Id: <20240718215744.3892072-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 domain_create() has some unnecessary complexity for constructing the idle domain. Rearrange x86's needs, to simplify the common logic. https://cirrus-ci.com/build/5234584097390592 https://gitlab.com/xen-project/people/andyhhp/xen/-/pipelines/1379531597 Andrew Cooper (4): xen/domain: Introduce arch_init_idle_domain() x86/domain: Implement arch_init_idle_domain() xen/domain: Simpliy domain_create() now the idle domain is complete earlier arch/domain: Clean up the idle domain remnants in arch_domain_create() xen/arch/arm/domain.c | 6 -- xen/arch/x86/domain.c | 34 +++----- xen/arch/x86/include/asm/domain.h | 3 + xen/common/domain.c | 130 +++++++++++++++--------------- xen/include/xen/sched.h | 5 ++ 5 files changed, 82 insertions(+), 96 deletions(-) base-commit: 57338346f29cea7b183403561bdc5f407163b846