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

Re: [PATCH] xen/link: Move SCHEDULER_ARRAY into .rodata


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • Date: Fri, 13 Nov 2026 08:31:44 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=citrix.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • 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=32jlkFJOCt/szTFY0pvWf0SeAbf3eJAVbIgx6P3vFe0=; b=a+ibaJg+nb/wIZH6Y219rjaLm2jXI0x9dMADGD7Mgpwg3hQx+RjIIdYTaEC3QJVW0qZPxq+ZLgSObjDME8s/67J3L3IBEJNUXqvcBexnC/YsEyTlC+b9IxscKLfywGzZduqFy9E0+sgLXHfX0e8Nleqw/fnp+cS1FbmOmQEb2OyiQxPlElh75XgIv3rCkt2h69ucHmKeRtx85BTslI+Y1uyLD/hMGP/eQZ3e/ASY7SYUN/Gwf2cQLX5dSC9+0SbpW3GHxIFymvaiVNCSaGL/lxTndJ8IGapbpWQ77qubs66hy9cSEmmA86Qe1cgxQ4ZxMOJ0EVEjkSv0cgCcARCLFA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xFOzCnk1hkTtvxMHi9ZNe6/9gC9X0lqs4a1RWsFYiyGYSUnNFUv6MGGx5+7adwqGVRqKC2WZOvvX7ek0hmxic035bOPeJBpYPDTd4L/dp9XKqQQ9Q9xJ35Z82TW/rYiYLCkP2I3RaV3Ipwd5bFti/0GaCIyqRWo8MFQp9nF1sQzmfr/mxPkio4EW8RDlQG9306MfcElWQn152wUjou1UtPidsOeAGHStLA4jn2XeVo9dD+Sbhy+iENaI96n4xJuanhscIydiucyCtzU/8+6NALpyDzBmIDIf3/uhAlr7hIrhs15n8gLBUcVbpDtVB2wNsmKFtEBlbFFrLF0MWXRwmA==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Cc: Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger@xxxxxxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, "Stefano Stabellini" <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, "Volodymyr Babchuk" <Volodymyr_Babchuk@xxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, Baptiste Le Duc <baptiste.le-duc@xxxxxxxxxx>, Timothy Pearson <tpearson@xxxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 13 Nov 2026 07:34:10 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 12-Nov-26 19:36, Andrew Cooper wrote:
> This is a list of pointers which is only ever read.
I think that's not true. See sched_test_func() macro in scheduler_init() that
assigns NULL in case the scheduler does not implement the required hook.

~Michal

> 
> In the ARM linker file, fix some adjacent misalignment.
> 
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> ---
> CC: Jan Beulich <jbeulich@xxxxxxxx>
> CC: Roger Pau Monné <roger@xxxxxxxxxxxxxx>
> CC: Teddy Astie <teddy.astie@xxxxxxxxxx>
> CC: Stefano Stabellini <sstabellini@xxxxxxxxxx>
> CC: Julien Grall <julien@xxxxxxx>
> CC: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
> CC: Bertrand Marquis <bertrand.marquis@xxxxxxx>
> CC: Michal Orzel <michal.orzel@xxxxxxx>
> CC: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
> CC: Baptiste Le Duc <baptiste.le-duc@xxxxxxxxxx>
> CC: Timothy Pearson <tpearson@xxxxxxxxxxxxxxxxxxxxx>
> ---
>  xen/arch/arm/xen.lds.S   | 6 +++---
>  xen/arch/ppc/xen.lds.S   | 2 +-
>  xen/arch/riscv/xen.lds.S | 2 +-
>  xen/arch/x86/xen.lds.S   | 2 +-
>  4 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/xen/arch/arm/xen.lds.S b/xen/arch/arm/xen.lds.S
> index 613511390ff4..d1bb6c62d208 100644
> --- a/xen/arch/arm/xen.lds.S
> +++ b/xen/arch/arm/xen.lds.S
> @@ -51,9 +51,10 @@ SECTIONS
>  
>    . = ALIGN(PAGE_SIZE);
>    .rodata : {
> -        _srodata = .;          /* Read-only data */
> +       _srodata = .;          /* Read-only data */
>  
> -        BUGFRAMES
> +       BUGFRAMES
> +       SCHEDULER_ARRAY
>  
>         *(.rodata)
>         *(.rodata.*)
> @@ -93,7 +94,6 @@ SECTIONS
>    .data : {                    /* Data */
>         *(.data.page_aligned)
>  
> -       SCHEDULER_ARRAY
>         HYPFS_PARAM
>  
>         *(.data .data.*)
> diff --git a/xen/arch/ppc/xen.lds.S b/xen/arch/ppc/xen.lds.S
> index 37256c8865a9..cddb70855307 100644
> --- a/xen/arch/ppc/xen.lds.S
> +++ b/xen/arch/ppc/xen.lds.S
> @@ -48,6 +48,7 @@ SECTIONS
>          _srodata = .;          /* Read-only data */
>  
>          BUGFRAMES
> +        SCHEDULER_ARRAY
>  
>          *(.rodata)
>          *(.rodata.*)
> @@ -84,7 +85,6 @@ SECTIONS
>      DECL_SECTION(.data) {                    /* Data */
>          *(.data.page_aligned)
>  
> -        SCHEDULER_ARRAY
>          HYPFS_PARAM
>  
>          *(.data .data.*)
> diff --git a/xen/arch/riscv/xen.lds.S b/xen/arch/riscv/xen.lds.S
> index d9375a961697..250ee3f36f4f 100644
> --- a/xen/arch/riscv/xen.lds.S
> +++ b/xen/arch/riscv/xen.lds.S
> @@ -43,6 +43,7 @@ SECTIONS
>          _srodata = .;          /* Read-only data */
>  
>          BUGFRAMES
> +        SCHEDULER_ARRAY
>  
>          *(.srodata)
>          *(.srodata.*)
> @@ -91,7 +92,6 @@ SECTIONS
>      .data : {                    /* Data */
>          *(.data.page_aligned)
>  
> -        SCHEDULER_ARRAY
>          HYPFS_PARAM
>  
>          *(.sdata .sdata.*)
> diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S
> index 8f943e11ead4..925848980219 100644
> --- a/xen/arch/x86/xen.lds.S
> +++ b/xen/arch/x86/xen.lds.S
> @@ -119,6 +119,7 @@ SECTIONS
>         __ro_after_init_end = .;
>  
>         BUGFRAMES
> +       SCHEDULER_ARRAY
>  
>         *(.rodata)
>         *(.rodata.*)
> @@ -297,7 +298,6 @@ SECTIONS
>    DECL_SECTION(.data.read_mostly) {
>         *(.data.read_mostly)
>  
> -       SCHEDULER_ARRAY
>         HYPFS_PARAM
>    } PHDR(text)
>  




 


Rackspace

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