[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] vesafb



Jayant:

Per Ian's comment, you can modify xen/arch/x86/setup.c where the
hypervisor/dom0 commandline gets parsed.. I think..

Something like..

Vga = 791 (16-bit 1024x768)

////
void __init __start_xen(multiboot_info_t *mbi)
{
    char __cmdline[] = "", *cmdline = __cmdline;

   .....

/* Create initial domain 0. */
    dom0 = domain_create(0, 0);
    if ( (dom0 == NULL) || (alloc_vcpu(dom0, 0, 0) == NULL) )
        panic("Error creating domain 0\n");

    dom0->is_privileged = 1;

    /* Post-create hook sets security label. */
    acm_post_domain0_create(dom0->domain_id);

    /* Grab the DOM0 command line. */
    cmdline = (char *)(mod[0].string ? __va(mod[0].string) : NULL);
    if ( cmdline != NULL )
        {
         parse_vga_commandline(..);
        }
   .....
}

void parse_vga_commandline(..)
{
        init_vga_mode();
}

void Init_vga_mode()
{
        // your code..
        // detect the card, query BIOS and sets up best possible mode
}
////


Thanks.

-Kaushik   
 

-----Original Message-----
From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Ian Pratt
Sent: Monday, May 07, 2007 1:14 PM
To: ron minnich; Jayant Mangalampalli
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-devel] vesafb

> It is pretty easy, I sent sample code to Ian, if somebody can show me
> how they want it to look in Xen, i.e. where the function gets called
> and all that, I guess I can try to put it in -unstable.

I think we want to parse the dom0 kernel's command line looking for a
'vga=' parameter, and if present, setup the appropriate vesa mode just
before un-pausing the newly created dom0.

Best,
Ian 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.