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 AAA5BCFB43F for ; Mon, 7 Oct 2024 10:25:02 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.811857.1224538 (Exim 4.92) (envelope-from ) id 1sxkuv-0002BG-PJ; Mon, 07 Oct 2024 10:24:41 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 811857.1224538; Mon, 07 Oct 2024 10:24:41 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sxkuv-0002B9-Mj; Mon, 07 Oct 2024 10:24:41 +0000 Received: by outflank-mailman (input) for mailman id 811857; Mon, 07 Oct 2024 10:24:40 +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 1sxkuu-0002B3-Ct for xen-devel@lists.xenproject.org; Mon, 07 Oct 2024 10:24:40 +0000 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [2a00:1450:4864:20::52a]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 5b2bfcc3-8496-11ef-99a2-01e77a169b0f; Mon, 07 Oct 2024 12:24:38 +0200 (CEST) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5c5b954c359so4997888a12.1 for ; Mon, 07 Oct 2024 03:24:38 -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 a640c23a62f3a-a995138f458sm149901366b.209.2024.10.07.03.24.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Oct 2024 03:24:37 -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: 5b2bfcc3-8496-11ef-99a2-01e77a169b0f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1728296678; x=1728901478; 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=gC+zrrm9V1XyVSw81BagawSFuW5ySZSfJNKigjHTywo=; b=J0abY1GsRuSh83PLn9GACZipFn687QlGzCCanF7ga1DpAP/ZnrC6xejhHtd14aeokJ NHBE9M4BP4wH0oWuvxHA7hJHfep2QK4fyuwpWYL+BVtzAd/ATiQbF+rQeFfJ7HrTwdaI FYuaZWG/rY8iMopwo4Rho8fjtVdmOJes9/fQDyIToNHlkKI46Iz7QAeMnxoVXHGQgV0Q NihFH4FQHxDGqj3NSJdKi3v7Pu5be2vXqAwtYnnuQVdGuahNueh7S6lyGid5xB2J/XvH 5NtHOO8Y1BZMkXucefUjI9xZ4FkDzjygGWDVAiStpi1Qc8utr5N6caSzHknSfrufPHTv PxNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728296678; x=1728901478; 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=gC+zrrm9V1XyVSw81BagawSFuW5ySZSfJNKigjHTywo=; b=h8FxrCtBZFJtUXxYdz5mrrEPNzrTRmxZYKS5yaZ+Twn0ZLnU+SkvqiLcfQ1ZssOEat vjQ4am/2m3SCqH+AuXGyx5RzDIsJJwoyvMbbC9KmdKFhdtmSG3VgPnoii7Ny9mZUiUsb U3h15ViG9sI9XCoWOeNg1HKEcTQZ9IjtTSABgQxb490XrCot8TFJiSnWEIkhTdIIZ3wd K7bh+dh2ZaalRP3kXrUCOY+pNgT6LetHB0x0lx2ofb26VOOhLZiuMUucUNqSuKMzvHUM yn50LwReCbXdYepnXkBKwYvhSPYFPiLhHVobuO9l6r0/3GuCvvwN1DQfysmQd/rpedU6 O4rg== X-Forwarded-Encrypted: i=1; AJvYcCVLyLIeD7HM64sVj1WwYGRmVaNdlihhabla7BbS5NSyWsfE4z2Tl0dKFDmgSs8nQL3MmnR0IgqYwHI=@lists.xenproject.org X-Gm-Message-State: AOJu0YzUceDorIOkci6HazGLH5337h2OJy5ADFWiPl8McfDoU2QdjTnu 7A9PHA0a2rNEg6096asvsp1wlH1CNm9ZG7ym297SAKykTcKTlI+nKR57V8rsxA== X-Google-Smtp-Source: AGHT+IHCxEOaJtjQic9cuZ4/ur4nSFipLtL/rtbQ0jKGUnb+5JbkwBa2LTLa+P2Lea7R6Nt5qOXu5A== X-Received: by 2002:a17:907:743:b0:a77:c95e:9b1c with SMTP id a640c23a62f3a-a991bd79527mr1246051066b.27.1728296677681; Mon, 07 Oct 2024 03:24:37 -0700 (PDT) Message-ID: <2795fca2-5765-4337-9110-4b0166becd90@suse.com> Date: Mon, 7 Oct 2024 12:24:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] x86/boot: Reuse code to relocate trampoline To: Frediano Ziglio Cc: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , "Daniel P. Smith" , =?UTF-8?Q?Marek_Marczykowski-G=C3=B3recki?= , xen-devel@lists.xenproject.org, Andrew Cooper References: <20241005080233.1248850-1-frediano.ziglio@cloud.com> <20241005080233.1248850-3-frediano.ziglio@cloud.com> <0bfcd06d-cc3a-4048-bab4-0d5cd794fa1a@suse.com> <0439f313-1360-47b0-ae7e-a2a74ee4d51e@suse.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 nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 07.10.2024 12:00, Frediano Ziglio wrote: > On Mon, Oct 7, 2024 at 10:47 AM Andrew Cooper wrote: >> >> On 07/10/2024 10:04 am, Jan Beulich wrote: >>> On 07.10.2024 10:15, Frediano Ziglio wrote: >>>> On Mon, Oct 7, 2024 at 9:07 AM Frediano Ziglio >>>> wrote: >>>>> On Mon, Oct 7, 2024 at 8:03 AM Jan Beulich wrote: >>>>>> On 05.10.2024 15:21, Andrew Cooper wrote: >>>>>>> On 05/10/2024 9:02 am, Frediano Ziglio wrote: >>>>>>>> --- a/xen/arch/x86/boot/Makefile >>>>>>>> +++ b/xen/arch/x86/boot/Makefile >>>>>>>> @@ -1,6 +1,6 @@ >>>>>>>> -obj-bin-y += head.o cbundle.o >>>>>>>> +obj-bin-y += head.o cbundle.o reloc-trampoline.x64.o >>>>>>> Ah. I think the $(obj)/%.x64.o rule you had in the previous patch wants >>>>>>> introducing here. >>>>>>> >>>>>>> That said, x64 is the one name for 64bit that we reliably don't use. >>>>>>> Also... >>>>>>> >>>>>>>> -head-bin-objs := cmdline.o reloc.o >>>>>>>> +head-bin-objs := cmdline.o reloc.o reloc-trampoline.o >>>>>>> ... head-bin-objs isn't really correct now seeing as they're not >>>>>>> binaries in head.S. Also ... >>>>>>> >>>>>>>> nocov-y += $(head-bin-objs) >>>>>>>> noubsan-y += $(head-bin-objs) >>>>>>> The no$(foo)'s needs extending to the 64bit objects too. They're also >>>>>>> used early enough to explode. >>>>>>> >>>>>>> In Xen, 64bit objects are the norm, and it's 32bit ones which are the >>>>>>> exception, so how about we special case *.i386.o instead. Then >>>>>>> >>>>>>> obj32 := cmdline.i386.o >>>>>>> obj32 += reloc.i386.o >>>>>>> obj32 += reloc-trampoline.i386.o >>>>>> I'd like to advocate for ix86 or i686. i386 gives a wrong impression imo. >>>>> Why not simply x86 ? We already use it. >>>>> >>>> Looking at current files, we also use (to distinguish more clearly 32 >>>> and 64 bit) x86_32. >>> Either would be fine with me; as to x86 I took it that Andrew wanted to >>> express the 32-bit-ness, which x86 alone doesn't unambiguously do. >> >> On further thought, why not just foo.32.o ? >> >> That should be clear enough. > > At this point, it starts to be more of a personal preference. > I slightly prefer x86_32 looking at file names and Makefile's macros. > Pick one. I like Andrew's most recent suggestion, fwiw. Jan