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

Re: [PATCH v2 1/3] xen/riscv: introduce setup_initial_pages


  • To: Julien Grall <julien@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 22 Mar 2023 09:19:29 +0100
  • 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OcldQZI8nQGZP/xDaxcpXN0xpi9w/XXZ3KAXzU8H35k=; b=Cbc0cJ1vsLaRZW5uI9pV+Jc+8ioLCBGbijXZVdlbtBxs5epnnW7mgkQQjkF95e5ieDWXoq1odpHAv0Plq45Q+7LnZILqjrvbgTqKBMSYd4H5465fr161E1V+7P8XeGa7kDGzF40P2MbusDh6olxZNMn5RIePA6xFHKclpFUKlUmEUdU8qnmsMrywutdfrA2v8ZS/Gvves5oBHZFAu5H3J6Txs8bYXfK5itUKJwMpMnjxmthK2MJGxwWTdSBuMW7Er0B5LVMassqU/JAqOG3P8qK6nUahzqEkMMkaIBJ7iMDsacnhDwVqEMa4UogTA36+80f8niXQTYn2V5GbUlxe8Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cBsesdPM58MQhJol1SHXS4m9Tea+Ug12io0AW2422ltcAz1O4VQIIsViTp8xmrQycomS6usVD9zA/9ZwWVbO7s3QEGbmBS+fpKcF6WydIXs3BFUww2pLr1/nwzXIBGZHCI9Q9ploL1hKWUMRif4zMaGkbPOl3U/mLVIEAzVugIqGnwgn3sbk7EmvUHwRJBKzP+pWI/l5i6vOushYNrE1tSyNakf+WA2tKvP466DnVE1PIhDR0gBSqGoI6qlGah0qoqlx+aLMTb2iCFw8UdwIQP8yVYigmY8Gp0YCmfDMDEzgORyY4IY34XK26UYUb0y7RLgmO3Ej1tCy3g40pt3AIg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Gianluca Guida <gianluca@xxxxxxxxxxxx>, Bob Eshleman <bobbyeshleman@xxxxxxxxx>, Alistair Francis <alistair.francis@xxxxxxx>, Connor Davis <connojdavis@xxxxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 22 Mar 2023 08:19:52 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 21.03.2023 18:58, Julien Grall wrote:
> Also, where do you guarantee that Xen will be loaded at a 2MB aligned 
> address? (For a fact I know that UEFI is only guarantee 4KB alignment).

I don't think this is true. We rely on UEFI honoring larger alignment on
x86, and I believe the PE loader code is uniform across architectures.
Of course you need to specify large enough alignment in the PE header's
SectionAlignment field (right now in the Arm64 binary it's only 4k).

Jan



 


Rackspace

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