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

Re: [XEN PATCH v1 1/4] arch/riscv: initial RISC-V support to build/run minimal Xen


  • To: Alistair Francis <alistair23@xxxxxxxxx>, Oleksii <oleksii.kurochko@xxxxxxxxx>
  • From: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
  • Date: Wed, 28 Dec 2022 19:01:56 +0000
  • Accept-language: en-GB, en-US
  • 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=arcselector9901; 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=1soFpZrWdYNL4VKp39xcpFQ6p6KHCzOyo35X7acf83Y=; b=RN2ANYUS+TVqst6NAOeGLI/m9kn8/ni1up2fyi2Ar8cLFn8creY8TR9+PoxG0KNjPcSAXiNI1ypt11QeA7ZMeIhZKD+Gv7tOazGoSEHV3oQl+UpYkdJxyEVixuQKJjm0K/5y5CyKf+Q5JaEEoWP3e+AXaQAyT6m6tDZnExVOU9pIIJkqmpMnmAcIa0B74XjvsK4eJrJkapAQBFFfKO7VkwiVX/8v4RZ58zqJWMdvRSat57B2L+i4P4Z73pake+myCaAwzFb5xovmkNi1jesV55zitZ9G2XnChixp8CSggdEIRn+INeUqvlXfM+6h3r/ZizfUWJLzZQ6ppPahSd4c4g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VWcCfx6GsQUxOfbNcZnkz+Kt5ADdtfm9EnnjkUbO5MQO2Br890EmDqc4X+5d15KyDrxRjTwll9rrsown9+dlPShU1bjL42xB91qz0XXEjyk33fqB5beQZRltxnZVubJL2SGE/d4xtQh8oxy60pW2vWWF8sk3ght3qyR5cGiIDqcBDVDLGxHWKh0jYzObQ1Zl97xcFTcwm1wxTyQIYOwHq784HqjalJvmksF//w6qC9H9cwZZBePshx4SC7sMfRrxKUA06Jbq+JRfpKyPu1aNtofmRt8WJa0FJ2s0de/VR02XfMkti7rzWY0BkgsSQfyPoG8/AC6tNAdr/reU6N24tQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Julien Grall <julien@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Gianluca Guida <gianluca@xxxxxxxxxxxx>, Bob Eshleman <bobbyeshleman@xxxxxxxxx>, Alistair Francis <alistair.francis@xxxxxxx>, Connor Davis <connojdavis@xxxxxxxxx>, Anthony Perard <anthony.perard@xxxxxxxxxx>
  • Delivery-date: Wed, 28 Dec 2022 19:02:08 +0000
  • Ironport-data: A9a23:ftpJVKKVI567K3CuFE+Rl5UlxSXFcZb7ZxGr2PjKsXjdYENS0DIPz mUWD2rTP/zfZTf0LtB2Ptuy/EsPuJLdxtU1TwplqX01Q3x08seUXt7xwmUcnc+xBpaaEB84t ZV2hv3odp1coqr0/0/1WlTZhSAgk/rOHv+kUrWs1hlZHWdMUD0mhQ9oh9k3i4tphcnRKw6Ws Jb5rta31GWNglaYCUpJrfPdwP9TlK6q4mlB5AZuPaojUGL2zBH5MrpOfcldEFOgKmVkNrbSb /rOyri/4lTY838FYj9yuu+mGqGiaue60Tmm0hK6aYD76vRxjnVaPpIAHOgdcS9qZwChxLid/ jnvWauYEm/FNoWU8AgUvoIx/ytWZcWq85efSZSzXFD6I+QrvBIAzt03ZHzaM7H09c54Rmxo7 f5IBAxUf02pv9qM2Z2lWsBz05FLwMnDZOvzu1lG5BSAVLMNZsmGRK/Ho9hFwD03m8ZCW+7EY NYUYiZuaxKGZABTPlAQC9Q1m+LAanvXKmUE7g7K4/dppTGMkmSd05C0WDbRUvWMSd9YgQCzo WXe8n6iKhobKMae2XyO9XfEaurnzHugB9hPROHQGvhCnwGOzWUaBxMtDla68ce7uHKuHPBfN BlBksYphe1onKCxdfH0WxyjvHeFpERHc9VVGuw+rgqKz8L85AKUBXMFT3hCdcYhv881QhQl0 1aIm5XiAjkHmL+ITXOQ8J+EoDX0PjIaRUcSaClBQQYb7t3LpIAokgmJXttlCLSyjND+BXf32 T/ihDMlm7wZgMoP1qO61VPKmTShot7OVAFdzgrWV2Sh8whwTJSkeYuz6F7Qq/1HKe6xRF6Lt mkJgMia4eUHC7mCkSWMRKMGG7TBz/+BMSbAiF91WZc7/jKm+mWLYoxbpjp5IS9BOcECfzjrb EbNuBh565paPX/sZqhyC79dEOwvxKnkUN/iD/bda4MXZoArLVDZuiZzeUSXwmbh1lA2lr0yM ouadsDqCmsGDaNgz3y9QOJ1PaIX+x3SDFj7HfjTpylLG5LFDJJJYd/p6GezU90=
  • Ironport-hdrordr: A9a23:51PI96lLGDrOkpnytFMgtyY1rSbpDfId3DAbv31ZSRFFG/Fw9v re+sjzsCWetN9/YgBEpTntAsm9qArnm6KduLN/AV7AZniAhILLFvAB0WKK+VSJdxEWndQtsZ uIHZIOa+EZajBB5/oTQmSDfuoI8Z24/KuzhfrTi1dhJDsKV51d
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHZFsAJYhXYxlPpRkqmFf35I9Ktpq57fXsAgASLWACAArnQAIAA7ZIA
  • Thread-topic: [XEN PATCH v1 1/4] arch/riscv: initial RISC-V support to build/run minimal Xen

On 28/12/2022 4:51 am, Alistair Francis wrote:
> On Mon, Dec 26, 2022 at 9:14 PM Oleksii <oleksii.kurochko@xxxxxxxxx> wrote:
>> On Fri, 2022-12-23 at 13:50 +0000, Julien Grall wrote:
>>> On 23/12/2022 11:16, Oleksii Kurochko wrote:
>>>> +  . = ALIGN(PAGE_SIZE);
>>>> +  .bss : {
>>>> +       __bss_start = .;
>>>> +       *(.bss .bss.*)
>>>> +       . = ALIGN(POINTER_ALIGN);
>>>> +       __bss_end = .;
>>> Same as .data, I would recommend to properly populate it.
>> Do you mean to add .bss.stack_aligned, .bss.page_aligned, .bss.percpu*?
>> One of the reasons they were skipped is they aren't used now and one
>> more reason if to believe xen.lds.S file from ARM
>> .bss.percpu.read_mostly should be aligned by SMP_CACHE_BYTES which
>> requires dummy <asm/cache.h> (or not ?) which will increase the patch
>> with unneeded stuff for now.
> I think we should aim to get the linker file sorted right from the
> start. Otherwise someone is going to hit a nasty bug at some point in
> the future.

What needs to happen is actually for Xen to start using a common linker
script, rather than a per-arch linker script.

The vast majority of the linker script is not architecture specific to
begin with, and the rest is easy to parametrise.

But in the short term, it's more important to get something working and
properly into CI, rather than to block this change waiting for feature
parity with a whole load of features not currently used.

~Andrew

 


Rackspace

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