All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Re: mini-os for Xen2
@ 2005-02-14  1:50 Ian Pratt
  2005-02-14  2:52 ` Rick
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Pratt @ 2005-02-14  1:50 UTC (permalink / raw)
  To: Rick, xen-devel; +Cc: ian.pratt

 
> You were right, I was missing the section __xen_guest.
> So now when I create the domain I do not get any error message and I
> do get a console.
> So the 1st thing I am doing is just trying to write something on the
> console with the hypervisor call "console_io". However, I do not see
> anything on the console. 

You need to be using a debug=y build of Xen to use console_io from an
unprivileged domain. 

Ian


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: mini-os for Xen2
@ 2005-02-12 11:01 Rick
  2005-02-12 12:56 ` Keir Fraser
  0 siblings, 1 reply; 6+ messages in thread
From: Rick @ 2005-02-12 11:01 UTC (permalink / raw)
  To: xen-devel

Hi,

I am trying to get a program to load and run directly on XEN. I've
been looking at mini-os but I have not been able to compile it.
Anyhow, right now I am just trying to get a program to load and print
"Hello World". So I've modified mini-os and removed everything from
the compilation except for the files head.S and the function
start_kernel() in kernel.c.

my start_kernel() function looks like this:
===========================================================
void start_kernel(start_info_t *si)
{

   HYPERVISOR_console_io (CONSOLEIO_write, 11, "Hello World");
   HYPERVISOR_shutdown();
}
===========================================================

my head.S file looks like this:
===========================================================
#include <os.h>

.globl _start, shared_info

_start:
        cld
        lss stack_start,%esp
        push $shared_info
        call start_kernel

stack_start:
        .long stack_start+8192, __KERNEL_DS

        /* Unpleasant -- the PTE that maps this page is actually overwritten */
        /* to map the real shared-info page! :-)                             */
        .org 0x1000
shared_info:
        .org 0x2000
===========================================================

In head.S I changed 

=================================
stack_start:
        .long stack+8192, __KERNEL_DS
=================================
to 
=================================
stack_start:
        .long stack_start+8192, __KERNEL_DS
=================================
because there were no symbols called "stack"

When I try to load this program with XEN using "xm create" I get the
following error:

Error: Error creating domain: (0, 'Error')

Is there something wrong with the Makefile and linking process that
comes with mini-os ?

Any help will be much appreciated.

Thanks
Rick





On Fri, 11 Feb 2005 18:56:19 -0500, Rick <judicator3@gmail.com> wrote:
> Hello,
> 
> I am trying to compile the mini-os under xen2
> I am getting lot's of errors and I guess mini-os was written for a
> much earlier version of xen. Is there an updated version of mini-os
> somewhere ? Do you stop supporting mini-os ?
> 
> Rick
>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

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

end of thread, other threads:[~2005-02-15  1:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-14  1:50 Re: mini-os for Xen2 Ian Pratt
2005-02-14  2:52 ` Rick
2005-02-15  1:32   ` Rick
  -- strict thread matches above, loose matches on Subject: below --
2005-02-12 11:01 Rick
2005-02-12 12:56 ` Keir Fraser
2005-02-13  2:39   ` Jacob Gorm Hansen
2005-02-14  1:37     ` Rick

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.