|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XenPPC] [PATCH 2/2] linux: build start_info_t from devtree only
On Feb 8, 2007, at 8:45 AM, Ryan Harper wrote: * Jimi Xenidis <jimix@xxxxxxxxxxxxxx> [2007-02-08 06:48]:some comments On Feb 7, 2007, at 6:34 PM, Ryan Harper wrote:This patch cleans up xen_init_early() to construct a start_info_t only There is too much code referring to xen_start_info as a pointer.perhaps making that static __xen_start_info, so its obvious that we are just suing it for memory allocation, at some point when all references are gone we can flatten this out. + + /* fill out start_info_t from devtree */ + if ((char *)get_property(xen, "privileged", NULL)) + xen_start_info->flags |= SIF_PRIVILEGED; + if ((char *)get_property(xen, "initdomain", NULL)) + xen_start_info->flags |= SIF_INITDOMAIN; + xen_start_info->shared_info = *((u64 *)get_property(xen, + "shared-info", NULL)); + + /* only look for store and console for guest domains */Hmm, I think you need to look for them always. You _at_least_ need the console evtchn, which may not be zero and we create the node/prop anyway.Hrm, you may be right. I know that dom0 boots fine with this, but thatmaybe because it defaults those values to 0. I'll kill the if().Feel free to "panic()" more: NOTE: this is early so a "udbg_printf(); HYPERVISOR_shutdown (SHUTDOWN_poweroff);" will do cuz panic() is no available yet.Yeah, good idea though none of the messages get out if our shared_info page isn't setup correctly, which I learned during my testing of this patch, was the value most likely to get hosed.
Oh yeah, you probably want to:
HYPERVISOR_shared_info = ...;
xen_start_info->flags |= SIF_INITDOMAIN; # or not
udbg_init_xen();
As soon as you can, before you check everything else.
If you want more info earlier you can always build with:
CONFIG_PPC_EARLY_DEBUG_XEN_DOM0
xor
CONFIG_PPC_EARLY_DEBUG_XEN_DOMU
-JX
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |