From: Roman Shaposhnik <roman@zededa.com>
To: Julien Grall <julien@xen.org>
Cc: xen-devel@lists.xenproject.org,
Stefano Stabellini <sstabellini@kernel.org>,
Stefano Stabellini <stefano.stabellini@xilinx.com>
Subject: Re: [Xen-devel] REGRESSION: Xen 4.13 RC5 fails to bootstrap Dom0 on ARM
Date: Wed, 18 Dec 2019 09:03:21 -0800 [thread overview]
Message-ID: <CAMmSBy8LT4yZGoGKWTOtEeV4e=9+BQaAx+zFp1oUf6fi1PzY2A@mail.gmail.com> (raw)
In-Reply-To: <d77e7ec8-3b28-ee60-a180-794deb227099@xen.org>
On Wed, Dec 18, 2019 at 3:50 AM Julien Grall <julien@xen.org> wrote:
>
> Hi,
>
> On 18/12/2019 07:36, Roman Shaposhnik wrote:
> > On Tue, Dec 17, 2019 at 6:56 PM Roman Shaposhnik <roman@zededa.com> wrote:
> >> Exactly! That's the other surprising bit -- I noticed that too -- its not like
> >> Xen doesn't see any of the memory above 1G -- it just doesn't see enough of it.
> >>
> >> So the question is -- what is Linux doing that Xen doesn't?
> >
> > By the way, speaking of running Xen under ARM/qemu -- here's an interesting
> > observation: when I run qemu-system-aarch64 with -m 4096 option it seems
> > that, again, Linux kernel is perfectly content with having access to 4G of RAM,
> > while Xen only sees about 2G.
>
> Linux and Xen should see close to the same amount as memory as long as
> you are using the same bootloader...
Thanks for confirming. This is what I'm trying to get to on this
thread. Any help
would be greatly appreciated!
> > This may actually have something to do with UEFI I guess.
>
> ... could you confirm whether you are booting Linux using UEFI or not?
The boot sequence in both cases is:
HiKey l-loader
HiKey Tianocore EDK2 – UEFI
GRUB (as a UEFI payload)
Xen | Linux
GRUB's commands for booting Xen + Dom0:
xen_hypervisor /boot/xen.efi console=dtuart dom0_mem=640M
dom0_max_vcpus=1 dom0_vcpus_pin
xen_module /boot/kernel console=hvc0 root=(hd1,gpt1)/rootfs.img text
devicetree (hd1,gpt4)/eve.dtb
xen_module (hd1,gpt1)/initrd.img
GRUB's commands for booting Linux only:
linux /boot/kernel console=ttyAMA0 console=ttyAMA1
console=ttyAMA2 console=ttyAMA3
root=PARTUUID=f71bd987-d99a-4c88-9781-cf4c26cae55e rootdelay=3
devicetree (hd1,gpt4)/eve.dtb
So -- nothing boots directly by UEFI -- everything goes through GRUB.
However, my understanding is that GRUB will detect devicetree
information provided by UEFI (even though devicetree command is
supposed to completely replace that). Hence it is possible that Linux
relies on some residuals left in memory by GRUB that Xen doesn't pay
attention to (but this is a pretty wild speculation only).
Thanks,
Roman.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2019-12-18 17:03 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-16 20:12 [Xen-devel] REGRESSION: Xen 4.13 RC5 fails to bootstrap Dom0 on ARM Roman Shaposhnik
2019-12-16 22:43 ` Stefano Stabellini
2019-12-17 2:55 ` Stefano Stabellini
2019-12-17 4:39 ` Roman Shaposhnik
2019-12-17 11:30 ` Julien Grall
2019-12-17 18:30 ` Stefano Stabellini
2019-12-17 18:33 ` Roman Shaposhnik
2019-12-17 19:25 ` Stefano Stabellini
2019-12-18 0:04 ` Roman Shaposhnik
2019-12-18 1:51 ` Stefano Stabellini
2019-12-18 2:56 ` Roman Shaposhnik
2019-12-18 7:36 ` Roman Shaposhnik
2019-12-18 11:50 ` Julien Grall
2019-12-18 17:03 ` Roman Shaposhnik [this message]
2019-12-18 22:17 ` Julien Grall
2019-12-19 0:28 ` Roman Shaposhnik
2019-12-19 7:58 ` Julien Grall
2019-12-20 0:01 ` Stefano Stabellini
2019-12-20 8:21 ` Julien Grall
2019-12-21 1:37 ` Roman Shaposhnik
2019-12-29 18:01 ` Julien Grall
2019-12-31 5:14 ` Roman Shaposhnik
2019-12-31 22:48 ` Roman Shaposhnik
2020-01-01 13:26 ` Julien Grall
2020-01-06 18:13 ` Stefano Stabellini
2019-12-18 13:02 ` Julien Grall
2019-12-18 12:56 ` Julien Grall
2019-12-18 17:09 ` Roman Shaposhnik
2019-12-18 22:40 ` Julien Grall
2019-12-17 18:31 ` Roman Shaposhnik
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='CAMmSBy8LT4yZGoGKWTOtEeV4e=9+BQaAx+zFp1oUf6fi1PzY2A@mail.gmail.com' \
--to=roman@zededa.com \
--cc=julien@xen.org \
--cc=sstabellini@kernel.org \
--cc=stefano.stabellini@xilinx.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.