|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Troubles running Xen on Raspberry Pi 4 with 5.6.1 DomU
Hi, On 02/05/2020 03:16, Corey Minyard wrote: On Fri, May 01, 2020 at 06:06:11PM -0700, Roman Shaposhnik wrote:On Fri, May 1, 2020 at 4:42 AM Corey Minyard <minyard@xxxxxxx> wrote:On Thu, Apr 30, 2020 at 07:20:05PM -0700, Roman Shaposhnik wrote:Hi! I'm trying to run Xen on Raspberry Pi 4 with 5.6.1 stock, upstream kernel. The kernel itself works perfectly well on the board. When I try booting it as Dom0 under Xen, it goes into a stacktrace (attached).Getting Xen working on the Pi4 requires a lot of moving parts, and they all have to be right.Tell me about it! It is a pretty frustrating journey to align everything just right. On the other hand -- it seems worth to enable RPi as an ARM development platform for Xen given how ubiquitous it is. Hence me trying to combine pristine upstream kernel (5.6.1) with pristine upstream Xen to enable 100% upstream developer workflow on RPi. IIUC, dom0 would need to have some memory below 1GB for this to work, am I correct?
If so could you try the following patch?
diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
index 430708753642..002f49dba74b 100644
--- a/xen/arch/arm/domain_build.c
+++ b/xen/arch/arm/domain_build.c
@@ -282,7 +282,7 @@ static void __init allocate_memory_11(struct domain *d,
*/
while ( order >= min_low_order )
{
- for ( bits = order ; bits <= (lowmem ? 32 : PADDR_BITS); bits++ )
+ for ( bits = order ; bits <= (lowmem ? 30 : PADDR_BITS); bits++ )
{
pg = alloc_domheap_pages(d, order, MEMF_bits(bits));
if ( pg != NULL )
@@ -313,7 +313,7 @@ static void __init allocate_memory_11(struct domain *d,
order = get_allocation_size(kinfo->unassigned_mem);
while ( kinfo->unassigned_mem && kinfo->mem.nr_banks < NR_MEM_BANKS )
{
- pg = alloc_domheap_pages(d, order, lowmem ? MEMF_bits(32) : 0);
+ pg = alloc_domheap_pages(d, order, lowmem ? MEMF_bits(30) : 0);
if ( !pg )
{
order --;
Cheers,
--
Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |