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

Re: [PATCH v3 4/9] xen/ppc: Update setup.h with required definitions for bootfdt


  • To: Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Fri, 15 Mar 2024 08:59:28 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=2; 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=/4KqKIOk8g0hOmD/GWMr8JzUf1mB1Zm/zKmK/5XsM+k=; b=CzOSrPRN5jv4O7+uwoJ1w7Iz6aIW/lqMZgr47OrfJ67aX86qNOBeHde35+J6riUgV+mK494OJ4l3g2R0+CT8Qe7kTRGSt3GwLtnwG0Vo53MvC7h0bBvUy7icGDByTERuzf3KzuTzLuudlgbyEF7hKv5EKDyc8DLqBVCcZ5pnjc3joHe//aJPCGDDUtdiHf3VekV7S+LanLpj6246goO5+gyh+fQ9XQSUO/qcu85OFVA9Jx8hLrkgCABsM0L//iUJ47uQ0FhGEZIKDDm1hLJ29p4O0WngO16IV3p9M2k1qoNgGb0pPJZB8Jutc3tyFcgs5imIUfz9bEwApnaCHvgZcw==
  • 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=/4KqKIOk8g0hOmD/GWMr8JzUf1mB1Zm/zKmK/5XsM+k=; b=OYjE7wK4NemkGKaAC30ih4G8bATHXAW1LjK4hTMug0tFYcbkY8a9LNYfeTVEWzATmdKOC6vdVQFTnJwpWJML66X6gSKEryn3upsOD4+sg11MMhSDcf9tcP09eBbR9SyZVdGNTNQuKVurIT/PQqCKnfDFUWJMQhzPcAwVpZlSabmcXti75AdkShzUMbOtfb//DigHpx/8Kb1Zfhps9c9R4+eHQ+A5wgoc5lmYMjpmBiKYDM/GZ+1a4fi3SAd4i5UeKzSfmccH8mVHFTc4CyuCsZb+97qzPOU5mVbHDN0rDsBO2liDwxB/Hpm3JtvkUiPA6uaqTnzVC2yzwk/IJdF7eg==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=d0kREhPWVPGfSCqfE1Td8fIbgzylO0YH7FE7tTLBJgz0p5d0RU7fdoNJOgq2vgFbQKkA/YZYSgq3TBWqCK2s2R2HU7fhuArMkGnEz+cuMSW3X/cSd3FrtKk5i/XvmuEMCEcl9VdQrNrOT93vK+va9VHF9ZQ26ERYxxTC1vIG10wp5gHV7nHFYmC4iR9g0A4YnD1gqzxu+mFeE/hYzLlq1O7az9un7Lvr3gPBsfWBLAJSIKFPlXVznX6+AYqdcA9b1URP4Rn6VM3XDYrPaWIbenYAhIasImOaSMQ7+OglIwmSlHNIQwzzxHDiwW0rKKsKfIVAeh9pIMZAjtpyiIWMlA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fmFdA13nsOD3Km4s6jat+Je7zdRzO0W45YN0AyQoJMX+Kl1zIKZn63LxxItURQYPggDwkgBIn2sY08pETpQ+TPRqjyBej1sWGylL9s//MkXcTMdxglrnnYutdF9zUYEg+gSPF84uIR59UgfoJGXENiWX9zo7PG5mpZ4qOIMX1NiR7PEYQX3VyoW6mtlerCjx3Kvqx2bFULAYjlx3B7Q32JaBh9dSOo6eh/wZQDG0Yyu+9g5PAco5ockXqbTadItWpdCOOePpFg3jyhkv9fqPmHXXK0Vbp26DTZ9+FzxjViOPe5GkIXte5NjvO9tOXYZCJiJgoVyimenOJVIe/xorPw==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "tpearson@xxxxxxxxxxxxxxxxxxxxx" <tpearson@xxxxxxxxxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>
  • Delivery-date: Fri, 15 Mar 2024 08:59:56 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHadl1F8erabWW43UiNIhzv59WNJbE4gWUA
  • Thread-topic: [PATCH v3 4/9] xen/ppc: Update setup.h with required definitions for bootfdt

Hi Shawn,

> On 14 Mar 2024, at 22:15, Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx> 
> wrote:
> 
> Add the definitions used by ARM's bootfdt.c, which will be moved into
> xen/common in a later patch, to PPC's setup.h.
> 
> Signed-off-by: Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx>
> ---
> xen/arch/ppc/include/asm/setup.h | 112 +++++++++++++++++++++++++++++++
> 1 file changed, 112 insertions(+)
> 
> diff --git a/xen/arch/ppc/include/asm/setup.h 
> b/xen/arch/ppc/include/asm/setup.h
> index e4f64879b6..1b2d29c5b6 100644
> --- a/xen/arch/ppc/include/asm/setup.h
> +++ b/xen/arch/ppc/include/asm/setup.h
> @@ -3,4 +3,116 @@
> 
> #define max_init_domid (0)
> 
> +#include <public/version.h>
> +#include <asm/p2m.h>
> +#include <xen/device_tree.h>
> +
> +#define MIN_FDT_ALIGN 8
> +#define MAX_FDT_SIZE SZ_2M
> +
> +#define NR_MEM_BANKS 256
> +
> +#define MAX_MODULES 32 /* Current maximum useful modules */
> +
> +typedef enum {
> +    BOOTMOD_XEN,
> +    BOOTMOD_FDT,
> +    BOOTMOD_KERNEL,
> +    BOOTMOD_RAMDISK,
> +    BOOTMOD_XSM,
> +    BOOTMOD_GUEST_DTB,
> +    BOOTMOD_UNKNOWN
> +}  bootmodule_kind;
> +
> +enum membank_type {
> +    /*
> +     * The MEMBANK_DEFAULT type refers to either reserved memory for the
> +     * device/firmware (when the bank is in 'reserved_mem') or any RAM (when
> +     * the bank is in 'mem').
> +     */
> +    MEMBANK_DEFAULT,
> +    /*
> +     * The MEMBANK_STATIC_DOMAIN type is used to indicate whether the memory
> +     * bank is bound to a static Xen domain. It is only valid when the bank
> +     * is in reserved_mem.
> +     */
> +    MEMBANK_STATIC_DOMAIN,
> +    /*
> +     * The MEMBANK_STATIC_HEAP type is used to indicate whether the memory
> +     * bank is reserved as static heap. It is only valid when the bank is
> +     * in reserved_mem.
> +     */
> +    MEMBANK_STATIC_HEAP,
> +};
> +
> +/* Indicates the maximum number of characters(\0 included) for shm_id */
> +#define MAX_SHM_ID_LENGTH 16

Maybe you don’t need this define


That’s a bummer I’m modifying a lot this header in one of my serie :) if this 
one goes in before mine
I’ll have to touch your headers. Not a problem though.

Cheers,
Luca




 


Rackspace

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