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 3426AC369C2 for ; Wed, 16 Apr 2025 14:06:24 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.956266.1349731 (Exim 4.92) (envelope-from ) id 1u53P1-0004Iv-6g; Wed, 16 Apr 2025 14:06:11 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 956266.1349731; Wed, 16 Apr 2025 14:06:11 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1u53P1-0004Io-3h; Wed, 16 Apr 2025 14:06:11 +0000 Received: by outflank-mailman (input) for mailman id 956266; Wed, 16 Apr 2025 14:06:10 +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 1u53P0-0004Ii-E3 for xen-devel@lists.xenproject.org; Wed, 16 Apr 2025 14:06:10 +0000 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [2a00:1450:4864:20::42a]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id f1932962-1acb-11f0-9ffb-bf95429c2676; Wed, 16 Apr 2025 16:06:08 +0200 (CEST) Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-3914bc3e01aso3969074f8f.2 for ; Wed, 16 Apr 2025 07:06:08 -0700 (PDT) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39eae96c102sm17406756f8f.35.2025.04.16.07.06.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Apr 2025 07:06:07 -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: f1932962-1acb-11f0-9ffb-bf95429c2676 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1744812368; x=1745417168; darn=lists.xenproject.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=2YQA0bIWNvVtSiL+nWCvAaBrn83BvVRQW5HKrzobT9Y=; b=cAphWckVmtvVAubA6spbnybMFl1nqCCw1EwY700XNLLuZy1qI3E8x0Tx3p4Jz3eRkH T1yHhz9EHHdwasL9+IdfTCKO21ZJ9fjvYNIUEuhoM32EIqmES/zPjUdGFEQFYZ0Xdx8o +LT1tqtLyNIiMQ4t1Y1sxSkL1py3j64v2P9QP3EuBNmSpmhi4BMHheqaIRArB49EqEie nqw5EJYfIrnDZCOLssp/45xMRQtLtzEJ1VN2aan2LDbLJAd5qlhhiYxHoQLLUSCmejb/ Qm8DZ4V5BSWxN850y4FIfPE+HWXSV/ZaFUunJAx9CgvYCFOpX42/mhUyg/3bPjauRGCQ fhKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744812368; x=1745417168; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=2YQA0bIWNvVtSiL+nWCvAaBrn83BvVRQW5HKrzobT9Y=; b=IYhlrb+9UnIQ6/NNOf0JcsAlRQaDP6s97naDuL4i+gjcN2/w+V1uXiy8yxG/LfzYS/ oQjGsPj1/1tooQGPM3/fGi80YGCIafI9+2Xtnj2zhFmdLmWnD2bnwT1JLyzaC2wzyls2 ZDq8kebTMCnm5ufl5moM5dHX6XO2U9bUGxwnyFY11gYBCgEo5uOuunBGAtPTYpbN3CyS 8/pOC5ODWsq4/1Fcx6w5qU5Jl98YORfOOdeKGHbL4RBDGyK/29AEMyGSVG55JrKaurug mKQM6uD90iHzVGnED96D2xLykOHHF01EtbwXGmUeKeM3Zai7QeFXjviBYmU5LwPP5Y8+ 9Esw== X-Forwarded-Encrypted: i=1; AJvYcCVaMjkcxBdLLJAc+QLyr3kERu6mH2qmS/Onp1u/Bfyk4aCKuguYW2f5ljXc7UVK/W3q1xxwZ8ijw/w=@lists.xenproject.org X-Gm-Message-State: AOJu0YyLCz/s31nc5h8JUAfa4hY1Hui3b05QvBX67V2BQRmZWMnNfYP9 f4scw5Z2JqPb6PRQE9/JUwAgjYvueAPuNGLO242fDrcLPe+2/g8LBrjL534QDg== X-Gm-Gg: ASbGncsWPpuizoS+dKpNHSxrk22Njd/24qm4FxeOmHPiWRUePC5vhjGEcC4bDU3zfFL wlgbDlclU91Uoy4+NUxDsmp0f21L/bFTJRWBfxJ8wUhXRYsMy30Nv0WGb9jeyJ8B+E4Blq4Dv1F RMQrl0ns5JKpMHxMfex9AMvmySPvF5GKX+WpAxR795CZ3859Y0iAiTfmfJS9FLbwI4zo1l0TZdd H8kbevlPC18oTwgOuzTf892P0ZYqR53ndbUs9E1WYG9dbtjXuA9bTJFW2474otWt8TvucG4xsC6 goqd0dHPUwVb9DjCOEZw3qriaWrnMttVIab2N6JD/gcW64tqK6acEINgfmRrJrhiJ39k3804tdx XVcSkdnwvKKnQzpXaOSTMxjYFGJ8qbGDVh4o2 X-Google-Smtp-Source: AGHT+IEfhZJRGv3RNolhLZwPY9WCeqQlING39Yfg/0MOuDHuaKQYbbZUuZtTaVxPXO6TuYTrkrfZlQ== X-Received: by 2002:a5d:64ae:0:b0:39c:1efb:ec9a with SMTP id ffacd0b85a97d-39ee5b13b3emr1921756f8f.6.1744812367724; Wed, 16 Apr 2025 07:06:07 -0700 (PDT) Message-ID: <942e7f24-1ecc-465c-9cf2-54388a88173a@suse.com> Date: Wed, 16 Apr 2025 16:06:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 01/16] x86/boot: introduce boot domain To: "Daniel P. Smith" Cc: Xenia Ragiadakou , Stefano Stabellini , Michal Orzel , Andrew Cooper , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , xen-devel@lists.xenproject.org, Alejandro Vallejo , Jason Andryuk References: <20250408160802.49870-1-agarciav@amd.com> <20250408160802.49870-2-agarciav@amd.com> <141229a0-2cd2-4886-b5e5-02c85b0ca5ab@suse.com> <7fa754f8-d785-45d8-b9da-de5c85bc793b@apertussolutions.com> <644cdc5a-b96a-4e43-ae7a-4cadda1d1084@amd.com> <3832bb2b-978c-4990-928c-c18a003adcf4@apertussolutions.com> <73c8dacd-c1d7-459e-ac18-decaa5c9c5bd@suse.com> <6517f3ca-1329-4591-9ccc-e6be5af31e44@apertussolutions.com> Content-Language: en-US From: Jan Beulich Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8r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WpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: <6517f3ca-1329-4591-9ccc-e6be5af31e44@apertussolutions.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 16.04.2025 16:00, Daniel P. Smith wrote: > > > V/r, > Daniel P. Smith > Apertus Solutions, LLC > > On 4/16/25 09:33, Jan Beulich wrote: >> On 16.04.2025 15:02, Daniel P. Smith wrote: >>> On 4/10/25 16:56, Jason Andryuk wrote: >>>> On 2025-04-10 11:01, Jan Beulich wrote: >>>>> On 10.04.2025 15:09, Daniel P. Smith wrote: >>>>>> On 4/9/25 02:24, Jan Beulich wrote: >>>>>>> On 08.04.2025 18:07, Alejandro Vallejo wrote: >>>>>>>> From: "Daniel P. Smith" >>>>>>>> >>>>>>>> To begin moving toward allowing the hypervisor to construct more >>>>>>>> than one >>>>>>>> domain at boot, a container is needed for a domain's build >>>>>>>> information. >>>>>>>> Introduce a new header, , that contains the >>>>>>>> initial >>>>>>>> struct boot_domain that encapsulate the build information for a >>>>>>>> domain. >>>>>>>> >>>>>>>> Add a kernel and ramdisk boot module reference along with a struct >>>>>>>> domain >>>>>>>> reference to the new struct boot_domain. This allows a struct >>>>>>>> boot_domain >>>>>>>> reference to be the only parameter necessary to pass down through >>>>>>>> the domain >>>>>>>> construction call chain. >>>>>>>> >>>>>>>> Signed-off-by: Daniel P. Smith >>>>>>>> Reviewed-by: Jason Andryuk >>>>>>> >>>>>>> Acked-by: Jan Beulich >>>>>> >>>>>> I have to object because the meaningless rename is going cause >>>>>> significant pain in the rebase of the follow-on series for no improved >>>>>> code clarity. >>>>> >>>>> Sorry, then an incremental patch undoing the rename that happened (with >>>>> appropriate justification) will need proposing - the patch here has gone >>>>> in already. >>>> >>>> Coming from a Linux background, ramdisk seemed more natural to me.  But >>>> looking at hvm_start_info, the fields are called module there.  And >>>> since we shouldn't tie this to the Linux naming, the more generic >>>> "module" name seemed fine to me. >>> >>> Again, as I have stated, ramdisk is not a Linux only concept. In fact, >>> as Jan points out, initrd/initramfs are Linux specific implementations >>> of a ramdisk for which Xen doesn't even fully support. I am inclined to >>> ask the inverse of why hvm_start_info uses the name module. But that >>> aside, let's consider the fact that the field is only populated by the >>> device tree when a module type of BOOTMOD_RAMDISK is matched. And all >>> the uses of the field are when its value is stored into a local variable >>> called initrd. >>> >>> Though the biggest irony is that generally obtuse abstraction are >>> routinely blocked unless there is a tangible future case. Yet none was >>> offered in the comment. Thus on that principle alone, a request for a >>> tangible future use should have been requested and provided for the >>> change to be considered. >> >> Does it even need to be a _future_ use here? Aren't you working on >> abstracting domain creation, suitable (in principle) for all architectures? >> Isn't therefore a more generic name (as "module" is) preferable over a more >> specific one? > > Yes we are trying to build a future capability, but my point is let's > consider all possible known OS's start up today. What other boot module > could potentially be passed in that is exclusive of a ramdisk, thus > allowing a multiplex of the field. And the answer is none. Is it? What if you are to start a nested Xen with its own kernel, initrd and perhaps even an XSM policy "module"? Or anything else that is multi- module capable (possibly but not necessarily because of having started out as multiboot)? Jan