[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 1/2] x86/cpu-policy: move CPU policy library code


  • To: Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Wed, 25 Feb 2026 11:27:59 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=i6eRewzxLUuHWgVB61gtlBwhjyQzdMa0dAcfY9uYcKk=; b=y0ZI68+Vci2Pu9uqfChv1s58PEFM7NRv4q0qg/2qAp4fmbZNRbfTeSubZlJJrv8s0khLdl8UdsdfusvLTbomXVF8vbWo//z4NU9DnhNF0EJJPR4vzGsT/vyOAnhQx/mu4vsvLFz2mwK0TfokJVADN2yF/Jj1AnlePPbegQrgDOAFX/SdzaDUWQMFGhWCiQNVLkOrnS+8XSt3J2OxaykDxjPHCHvAHBMe+I75Bt+6aTtCdQVC+ZJrpYsXPsFjX6OJAb/ljoZSx3eVkpyxyhsJjcmmdmIxKDp0vWI7z1WUGD9zSR8eJSGcP6UFy/ko23MwEPcG/URV/CrxwSOsFyqumQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Fk0trAsdhiuUGL/MEHpKsw6pPaWauORX2O7qMKTs1uV11KUs/mfCZw7pJUVz2wRz0cgoZ6zfOJ7X45NjmwaIAzNI5bCv5DdZOPyJYQmbml8KOOR3PJswdEu7fKp4+Ho0C7vXHyyT9Vn9PMIQKgybtlTW5yuy2Bt0K/uhJiz9UDvkEB76M0QvbJugpLUMxj1a/aS7YgYNx6xwa54cYjkGNp25gIwcmEnj2f32FTuMAKk5opKUuTQCSSDgfhC7V0x8/JiGEVS/erAOFRgMuHqkaWrDnbSfRIZuQ5z9b1+hblMhA8eAAyGFf++ZdgtRuI/AkmRVTWsQ731uFMeHdVg2tA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 25 Feb 2026 11:28:15 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 24/02/2026 8:58 am, Jan Beulich wrote:
> On 24.02.2026 09:53, Roger Pau Monné wrote:
>> On Tue, Feb 24, 2026 at 07:54:29AM +0100, Jan Beulich wrote:
>>> On 23.02.2026 20:00, Andrew Cooper wrote:
>>>> On 02/02/2026 4:26 pm, Jan Beulich wrote:
>>>>> On 02.02.2026 16:47, Andrew Cooper wrote:
>>>>>> On 07/01/2026 2:17 pm, Jan Beulich wrote:
>>>>>>> diff --git a/xen/arch/x86/arch.mk b/xen/arch/x86/arch.mk
>>>>>>> index 0203138a819a..be6c76d2934b 100644
>>>>>>> --- a/xen/arch/x86/arch.mk
>>>>>>> +++ b/xen/arch/x86/arch.mk
>>>>>>> @@ -4,6 +4,7 @@
>>>>>>>  export XEN_IMG_OFFSET := 0x200000
>>>>>>>  
>>>>>>>  ARCH_LIBS-y += arch/x86/lib/lib.a
>>>>>>> +ALL_LIBS-y += arch/x86/lib/cpu-policy/lib.a
>>>>>> This wants to extend ARCH_LIBS-y surely?  Is this a rebasing oversight?
>>>>> No, this was deliberate. The functions here are different from those in
>>>>> arch/x86/lib/lib.a. We don't need to fear collision with "common code"
>>>>> ones. Hence I preferred to use the more "normal" placement into what's
>>>>> passed to the linker.
>>>> I agree that we don't have the explicit ordering requirement that we
>>>> have with arch/x86/lib/lib.a.
>>>>
>>>> But, it still reads as bogus to be putting arch/x86/lib/cpu-policy/lib.a
>>>> in the non-ARCH list.
>>>>
>>>> What difference is there having this a little earlier in the linker
>>>> arguments?  Nothing AFAICT.
>>> Indeed. The sole reason why I'd prefer things as presented is that putting
>>> stuff in ARCH_LIBS should imo be the special case (i.e. requiring a special
>>> reason), while putting things in ALL_LIBS should be the default.
>> I agree with Andrew that it feels weird that arch/x86/lib/lib.a is
>> placed in ARCH_LIBS-y and arch/x86/lib/cpu-policy/lib.a is placed in
>> ALL_LIBS-y.  If we want to do it that way it needs a comment
>> explaining why they are placed in different list, otherwise it seems
>> like a typo on first sight, and it's likely to confuse people in the
>> future.
> Well, I'll (reluctantly) change then.

Thanks.  With that done, Reviewed-by: Andrew Cooper
<andrew.cooper3@xxxxxxxxxx>



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.