xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Julien Grall <julien@xen.org>
To: Anastasiia Lukianenko <anastasiia_lukianenko@epam.com>,
	"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: Andrii Chepurnyi <Andrii_Chepurnyi@epam.com>,
	Oleksandr Andrushchenko <Oleksandr_Andrushchenko@epam.com>,
	Stefano Stabellini <sstabellini@kernel.org>
Subject: Re: Hand over of the Xen shared info page
Date: Wed, 19 May 2021 21:19:23 +0100	[thread overview]
Message-ID: <8d1ecf6c-a0d1-d9bc-5daf-d02a34fff1e6@xen.org> (raw)
In-Reply-To: <1db54c363eae22613280e7181805abee396fe5e9.camel@epam.com>



On 14/05/2021 10:50, Anastasiia Lukianenko wrote:
> Hi Julien!

Hello,

> On Thu, 2021-05-13 at 09:37 +0100, Julien Grall wrote:
>>
>> On 13/05/2021 09:03, Anastasiia Lukianenko wrote:
>> The alternative is for U-boot to go through the DT and infer which
>> regions are free (IOW any region not described).
> 
> Thank you for interest in the problem and advice on how to solve it.
> Could you please clarify how we could find free regions using DT in U-
> boot?

I don't know U-boot code, so I can't tell whether what I suggest would work.

In theory, the device-tree should described every region allocated in 
address space. So if you parse the device-tree and create a list (or any 
datastructure) with the regions, then any range not present in the list 
would be free region you could use.

However, I realized a few days ago that the magic pages are not 
described in the DT. We probably want to fix it by marking the page as 
"reserved" or create a specific bindings.

So you will need a specific quirk for them.

I have posted some more idea a separate thread [1] related to FreeBSD 
support for Arm.

Cheers,

[1] 
https://lore.kernel.org/xen-devel/f7360dac-5d83-733b-7ec5-c73d4dc0350d@xen.org/

-- 
Julien Grall


  reply	other threads:[~2021-05-19 20:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-13  8:03 Hand over of the Xen shared info page Anastasiia Lukianenko
2021-05-13  8:28 ` Olaf Hering
2021-05-13  8:37 ` Julien Grall
2021-05-14  9:50   ` Anastasiia Lukianenko
2021-05-19 20:19     ` Julien Grall [this message]
2021-05-19 23:11       ` Stefano Stabellini
2021-05-20  5:21         ` Oleksandr Andrushchenko
2021-05-20  9:46           ` Julien Grall
2021-05-20 12:37             ` Oleksandr Andrushchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8d1ecf6c-a0d1-d9bc-5daf-d02a34fff1e6@xen.org \
    --to=julien@xen.org \
    --cc=Andrii_Chepurnyi@epam.com \
    --cc=Oleksandr_Andrushchenko@epam.com \
    --cc=anastasiia_lukianenko@epam.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).