[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH v3 1/2] xen/link: Introduce .bss.percpu.page_aligned
- To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- From: Jan Beulich <JBeulich@xxxxxxxx>
- Date: Tue, 30 Jul 2019 08:42:37 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=suse.com;dmarc=pass action=none header.from=suse.com;dkim=pass header.d=suse.com;arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ThhJjD7PAKQy1jD/Ix4I2z+WLZ31pQ6kCHEXaHMwKww=; b=ZFxzmshSDoWgB06z3oz861cf1mFFH303LuFsyXPilNfqwk0SR4y4CpkoDMreN8g2KgbMkRdi8AgVRjo92B3tV0O5RyRvhQsB4sMqGLJ6Ts9j0NmzMt30S7ID1+yhc9eNVydV7eb3F5xs/SLszXuCTvyjS170NEzLDyogYyneLc6FIBj1hIXzFqkqWWG9yaSsEcKlvtFT0brWiFwjL6fndUB2i2NinvsItIDPdqxMg8UwQoOZumyabq6cMqqs0cIvk9MNJ8/ew9RKiOR+OOShPB6vimKCmrpLAktGtxKM1iYMK36gBkLgX9jG9gS9o1RHlFP2niLweje3yS0h5NeMKA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iUemOD76DllxH3GDX6kBuVh4vJ7hDHEAuG+oV5y/qqMPRnVfPnVJxHFSiEWVbnY+gZ3vtOYDoXjJFLcRJs15/FTH/wgvGa6ffcB8zoPAIv7bzCeqVUuCARTEUgU97Khm7QLh3BDXrOXHF9TOqvYsLUTph87MRWP4EKblIdQai37dYFhF6eB7eAu2GNOojlU5H8Y8MHIEOKJaE9tdJjVQL1GPg+ZJrhU7cTT7WLd8V769jxv/QIQVF4QmkhDYtqQRXUrEZJDBCnNxUwBZ/7OYRpy7KHal5I+pgTRx80kBu0xcpwrB3cA/jrMOQ2/cCxk6Hg725nbnHcWNl3D76flBnA==
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=JBeulich@xxxxxxxx;
- Cc: StefanoStabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Julien Grall <julien.grall@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Tue, 30 Jul 2019 08:55:35 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHVRjSGjfvYvY8Mj0+dnjT7dlU+s6bi2QqA
- Thread-topic: [PATCH v3 1/2] xen/link: Introduce .bss.percpu.page_aligned
On 29.07.2019 19:38, Andrew Cooper wrote:
> --- a/xen/arch/x86/xen.lds.S
> +++ b/xen/arch/x86/xen.lds.S
> @@ -293,14 +293,17 @@ SECTIONS
> __bss_start = .;
> *(.bss.stack_aligned)
> *(.bss.page_aligned*)
> - *(.bss)
> - . = ALIGN(SMP_CACHE_BYTES);
> + . = ALIGN(PAGE_SIZE);
> __per_cpu_start = .;
> + *(.bss.percpu.page_aligned)
> + . = ALIGN(PAGE_SIZE);
But this goes too far: What we want is for the TSS to occupy a full
page, not for whatever random other page-aligned object ends up
last here (should any every appear). If you want to effect this
via linker script (rather than C arrangements), then just like the
CPU0 stack I think we want a dedicated section containing _just_
the TSS. (Having said that I realize that .bss.stack_aligned isn't
really a good name for a dedicated section. It's just that we
obviously want the stack to occupy its entire STACK_SIZE range. Of
course we could put ourselves on the position that
.bss.percpu.page_aligned too _is_ a dedicated section despite its
name, but if you mean it to be like that then it would be nice for
the description to actually say so.)
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|