|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XenPPC] [PATCH] Booting xen_maple_defconfig kernel on bare hardware
On Jul 31, 2006, at 9:41 PM, Amos Waterland wrote: These patches allow a single Linux kernel binary, including one withbuiltin console=X command line arguments, to run on bare hardware and asa dom0 under Xen. The basic approach is to have the Xen virtual console driver reactgracefully in the case that a real serial driver has already registeredttyS0-ttyS3. It's current behavior is to fail if the 8250 driver wasinitialized ahead of it, and console is lost. In the process I found a bug in Linux, and have included the patch for it since otherwise the Xen driver initialization will succeed but with negative side effects in thekobject subsystem. good catch! Note that the preferred console system is subverted by Xen's driver, in that it uses a value of -1 for index, which means that any ttySX in the command line arguments will get Xen's tty driver. See register_console(). I'm not sure I understand this.. we set the preferred console in xen/ setup.c very early, _way_ before this console is registers so I'm not sure where the -1 helps you. I do see that the actual index you _do_ get is returned in kcons- >index. I wonder if you can use that to make a better guess at the first minor number. diff -r 17aa29a18b08 drivers/xen/console/console.c --- a/drivers/xen/console/console.c Thu Jul 27 18:57:20 2006 -0400 +++ b/drivers/xen/console/console.c Mon Jul 31 21:04:17 2006 -0400 @@ -70,6 +70,7 @@ */static enum { XC_OFF, XC_DEFAULT, XC_TTY, XC_SERIAL } xc_mode = XC_DEFAULT; Hmm, IMNSHO anonymous enum's have little or no value. I guess the final patch will have a "proper" loop and won't be continuously alloc/put the driver? do we really want to stop at 8? why not stop at (1<<MINOR_BITS) and maybe increment by 4 or 8? _______________________________________________ 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 |