All of lore.kernel.org
 help / color / mirror / Atom feed
* Xen refuses to load minimal dom0 kernel
@ 2007-01-22  1:08 Julian Stecklina
  2007-01-23 19:12 ` Grzegorz Milos
  0 siblings, 1 reply; 7+ messages in thread
From: Julian Stecklina @ 2007-01-22  1:08 UTC (permalink / raw)
  To: xen-devel

Hello,

I am trying to link a minimal Domain 0 kernel (adapted from the 
Mini-OS), but when Xen tries to build the Domain 0 it panics:

"Domain 0 allocation is too small for kernel image."

which is caused by the following code in xen/arch/x86/domain_build.c:

     order = get_order_from_bytes(v_end - dsi.v_start);
     if ( (1UL << order) > nr_pages )
         panic("Domain 0 allocation is too small for kernel image.\n");

The linker script I am using is adapted from the Mini-OS and links .text 
  at 0xC0000000 + 0x100000, just like the Linux kernel does. Does any 
one has any hints what I am doing wrong and what this test actually 
checks for?

Regards,
Julian

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Xen refuses to load minimal dom0 kernel
  2007-01-22  1:08 Xen refuses to load minimal dom0 kernel Julian Stecklina
@ 2007-01-23 19:12 ` Grzegorz Milos
  2007-01-24 14:21   ` Julian Stecklina
  0 siblings, 1 reply; 7+ messages in thread
From: Grzegorz Milos @ 2007-01-23 19:12 UTC (permalink / raw)
  To: Julian Stecklina; +Cc: xen-devel

> I am trying to link a minimal Domain 0 kernel (adapted from the  
> Mini-OS), but when Xen tries to build the Domain 0 it panics:
>
> "Domain 0 allocation is too small for kernel image."
>
> which is caused by the following code in xen/arch/x86/domain_build.c:
>
>     order = get_order_from_bytes(v_end - dsi.v_start);
>     if ( (1UL << order) > nr_pages )
>         panic("Domain 0 allocation is too small for kernel image.\n");
>
> The linker script I am using is adapted from the Mini-OS and  
> links .text  at 0xC0000000 + 0x100000, just like the Linux kernel  
> does. Does any one has any hints what I am doing wrong and what  
> this test actually checks for?

Mini-OS assumes .text at 0x0. Since you've changed that, you better  
make corresponding changes to VIRT_BASE and ELF_PADDR_OFFSET in mini- 
os/arch/x86/x86_32.S. If that does not help, could you send an output  
of the following printk added just before the if statement?
printk("v_start=%lx v_end=(%lx, %lx)\n", dsi.v_start, v_end, dsi.v_end);

Thanks
Gregor

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Xen refuses to load minimal dom0 kernel
  2007-01-23 19:12 ` Grzegorz Milos
@ 2007-01-24 14:21   ` Julian Stecklina
  2007-01-24 14:49     ` Puthiyaparambil, Aravindh
  0 siblings, 1 reply; 7+ messages in thread
From: Julian Stecklina @ 2007-01-24 14:21 UTC (permalink / raw)
  To: xen-devel

Grzegorz Milos wrote:
>> I am trying to link a minimal Domain 0 kernel (adapted from the 
>> Mini-OS), but when Xen tries to build the Domain 0 it panics:
>>
>> "Domain 0 allocation is too small for kernel image."
>>
>> which is caused by the following code in xen/arch/x86/domain_build.c:
>>
>>     order = get_order_from_bytes(v_end - dsi.v_start);
>>     if ( (1UL << order) > nr_pages )
>>         panic("Domain 0 allocation is too small for kernel image.\n");
>>
>> The linker script I am using is adapted from the Mini-OS and links 
>> .text  at 0xC0000000 + 0x100000, just like the Linux kernel does. Does 
>> any one has any hints what I am doing wrong and what this test 
>> actually checks for?
> 
> Mini-OS assumes .text at 0x0. Since you've changed that, you better make 
> corresponding changes to VIRT_BASE and ELF_PADDR_OFFSET in 
> mini-os/arch/x86/x86_32.S. If that does not help, could you send an 
> output of the following printk added just before the if statement?
> printk("v_start=%lx v_end=(%lx, %lx)\n", dsi.v_start, v_end, dsi.v_end);

I finally got it to work by closely following what the startup code and 
linker script of the Linux kernel do. Is there any documentation on what 
the hypervisor expects from a Domain 0 and in general how the Domain 0 
environment differs from that of a DomU (e.g., memory management, 
console, xenbus)?

Regards,
Julian

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Re: Xen refuses to load minimal dom0 kernel
  2007-01-24 14:21   ` Julian Stecklina
@ 2007-01-24 14:49     ` Puthiyaparambil, Aravindh
  2007-01-25 13:44       ` Julian Stecklina
  0 siblings, 1 reply; 7+ messages in thread
From: Puthiyaparambil, Aravindh @ 2007-01-24 14:49 UTC (permalink / raw)
  To: Julian Stecklina, xen-devel

Julian,

> I am trying to link a minimal Domain 0 kernel (adapted from the
> Mini-OS), but when Xen tries to build the Domain 0 it panics:

What minimal kernel are you using for Dom0? Is it Mini-OS itself or is
it based on some other OS kernel?

Thanks,
Aravindh

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Xen refuses to load minimal dom0 kernel
  2007-01-24 14:49     ` Puthiyaparambil, Aravindh
@ 2007-01-25 13:44       ` Julian Stecklina
  2007-01-29 22:33         ` Puthiyaparambil, Aravindh
  0 siblings, 1 reply; 7+ messages in thread
From: Julian Stecklina @ 2007-01-25 13:44 UTC (permalink / raw)
  To: xen-devel

Puthiyaparambil, Aravindh wrote:
> Julian,
> 
>> I am trying to link a minimal Domain 0 kernel (adapted from the
>> Mini-OS), but when Xen tries to build the Domain 0 it panics:
> 
> What minimal kernel are you using for Dom0? Is it Mini-OS itself or is
> it based on some other OS kernel?

At the moment it is Mini-OS.

Regards,
Julian

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Re: Xen refuses to load minimal dom0 kernel
  2007-01-25 13:44       ` Julian Stecklina
@ 2007-01-29 22:33         ` Puthiyaparambil, Aravindh
  2007-01-30 15:52           ` Julian Stecklina
  0 siblings, 1 reply; 7+ messages in thread
From: Puthiyaparambil, Aravindh @ 2007-01-29 22:33 UTC (permalink / raw)
  To: Julian Stecklina, xen-devel

> > Julian,
> >
> >> I am trying to link a minimal Domain 0 kernel (adapted from the
> >> Mini-OS), but when Xen tries to build the Domain 0 it panics:
> >
> > What minimal kernel are you using for Dom0? Is it Mini-OS itself or
is
> > it based on some other OS kernel?
> 
> At the moment it is Mini-OS.
> 

I am curious to know how you will handle network and block devices. Will
you have a driver domain running by the side of Mini-OS-Dom0?

Thanks,
Aravindh

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Xen refuses to load minimal dom0 kernel
  2007-01-29 22:33         ` Puthiyaparambil, Aravindh
@ 2007-01-30 15:52           ` Julian Stecklina
  0 siblings, 0 replies; 7+ messages in thread
From: Julian Stecklina @ 2007-01-30 15:52 UTC (permalink / raw)
  To: xen-devel

Puthiyaparambil, Aravindh wrote:
>>> Julian,
>>>
>>>> I am trying to link a minimal Domain 0 kernel (adapted from the
>>>> Mini-OS), but when Xen tries to build the Domain 0 it panics:
>>> What minimal kernel are you using for Dom0? Is it Mini-OS itself or
> is
>>> it based on some other OS kernel?
>> At the moment it is Mini-OS.
>>
> 
> I am curious to know how you will handle network and block devices. Will
> you have a driver domain running by the side of Mini-OS-Dom0?

Yes, this is the general plan. But at the moment the memory issues 
obstruct further experimenting. (See the other thread by me: Mini-OS in 
dom0 - virtual memory problems)

Regards,
Julian

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-01-30 15:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-22  1:08 Xen refuses to load minimal dom0 kernel Julian Stecklina
2007-01-23 19:12 ` Grzegorz Milos
2007-01-24 14:21   ` Julian Stecklina
2007-01-24 14:49     ` Puthiyaparambil, Aravindh
2007-01-25 13:44       ` Julian Stecklina
2007-01-29 22:33         ` Puthiyaparambil, Aravindh
2007-01-30 15:52           ` Julian Stecklina

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.