All of lore.kernel.org
 help / color / mirror / Atom feed
* hvc0 xvc0 "compatibility"?
@ 2009-06-23 20:00 Dan Magenheimer
  2009-06-24  8:24 ` Ian Campbell
  2009-06-24 11:42 ` Zhigang Wang
  0 siblings, 2 replies; 6+ messages in thread
From: Dan Magenheimer @ 2009-06-23 20:00 UTC (permalink / raw)
  To: Xen-Devel (E-mail)

I have a (RHEL5) guest that I alternate booting with a 2.6.18-xen
kernel and an upstream kernel.

Upstream uses hvc0 for the console and 2.6.18-xen uses xvc0.  To
switch between them, I manually modify /etc/inittab.  If I
forget to do this, I get no login prompt and have to destroy
the domain, restart selecting the other kernel, etc.

Do I recall a patch that allows one of these kernels to
handle both hvc0 and xvc0?  That would make my life easier.
Or is this something that can be done in userland?

Thanks,
Dan

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

* Re: hvc0 xvc0 "compatibility"?
  2009-06-23 20:00 hvc0 xvc0 "compatibility"? Dan Magenheimer
@ 2009-06-24  8:24 ` Ian Campbell
  2009-06-24 14:20   ` Dan Magenheimer
  2009-06-24 11:42 ` Zhigang Wang
  1 sibling, 1 reply; 6+ messages in thread
From: Ian Campbell @ 2009-06-24  8:24 UTC (permalink / raw)
  To: Dan Magenheimer; +Cc: Xen-Devel (E-mail)

On Tue, 2009-06-23 at 16:00 -0400, Dan Magenheimer wrote:
> I have a (RHEL5) guest that I alternate booting with a 2.6.18-xen
> kernel and an upstream kernel.
> 
> Upstream uses hvc0 for the console and 2.6.18-xen uses xvc0.  To
> switch between them, I manually modify /etc/inittab.  If I
> forget to do this, I get no login prompt and have to destroy
> the domain, restart selecting the other kernel, etc.
> 
> Do I recall a patch that allows one of these kernels to
> handle both hvc0 and xvc0?  That would make my life easier.
> Or is this something that can be done in userland?

I think you are thinking of linux-2.6.18-xen.hg 762:a070228ac76e "add
hvc compatibility mode to xencons". If you add xencons=hvc to your
kernel command line then 2.6.18 will use hvc and since pvops will just
ignore the unknown option you won't need to keep switching stuff around.

Ian.

> 
> Thanks,
> Dan
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

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

* Re: hvc0 xvc0 "compatibility"?
  2009-06-23 20:00 hvc0 xvc0 "compatibility"? Dan Magenheimer
  2009-06-24  8:24 ` Ian Campbell
@ 2009-06-24 11:42 ` Zhigang Wang
  2009-06-24 15:41   ` Dan Magenheimer
  1 sibling, 1 reply; 6+ messages in thread
From: Zhigang Wang @ 2009-06-24 11:42 UTC (permalink / raw)
  To: Dan Magenheimer; +Cc: Xen-Devel (E-mail)

Dan Magenheimer wrote:
> I have a (RHEL5) guest that I alternate booting with a 2.6.18-xen
> kernel and an upstream kernel.
> 
> Upstream uses hvc0 for the console and 2.6.18-xen uses xvc0.  To
> switch between them, I manually modify /etc/inittab.  If I

dan, can you write two lines include both hvc0 and xvc0 in your /etc/inittab?

thanks,

zhigang

> forget to do this, I get no login prompt and have to destroy
> the domain, restart selecting the other kernel, etc.
> 
> Do I recall a patch that allows one of these kernels to
> handle both hvc0 and xvc0?  That would make my life easier.
> Or is this something that can be done in userland?
> 
> Thanks,
> Dan
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

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

* RE: hvc0 xvc0 "compatibility"?
  2009-06-24  8:24 ` Ian Campbell
@ 2009-06-24 14:20   ` Dan Magenheimer
  0 siblings, 0 replies; 6+ messages in thread
From: Dan Magenheimer @ 2009-06-24 14:20 UTC (permalink / raw)
  To: Ian Campbell; +Cc: Xen-Devel (E-mail)

Yes, that's the one.  Thanks much for pointing it out.

> -----Original Message-----
> From: Ian Campbell [mailto:Ian.Campbell@citrix.com]
> Sent: Wednesday, June 24, 2009 2:24 AM
> To: Dan Magenheimer
> Cc: Xen-Devel (E-mail)
> Subject: Re: [Xen-devel] hvc0 xvc0 "compatibility"?
> 
> 
> On Tue, 2009-06-23 at 16:00 -0400, Dan Magenheimer wrote:
> > I have a (RHEL5) guest that I alternate booting with a 2.6.18-xen
> > kernel and an upstream kernel.
> > 
> > Upstream uses hvc0 for the console and 2.6.18-xen uses xvc0.  To
> > switch between them, I manually modify /etc/inittab.  If I
> > forget to do this, I get no login prompt and have to destroy
> > the domain, restart selecting the other kernel, etc.
> > 
> > Do I recall a patch that allows one of these kernels to
> > handle both hvc0 and xvc0?  That would make my life easier.
> > Or is this something that can be done in userland?
> 
> I think you are thinking of linux-2.6.18-xen.hg 762:a070228ac76e "add
> hvc compatibility mode to xencons". If you add xencons=hvc to your
> kernel command line then 2.6.18 will use hvc and since pvops will just
> ignore the unknown option you won't need to keep switching 
> stuff around.
> 
> Ian.
> 
> > 
> > Thanks,
> > Dan
> > 
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xensource.com
> > http://lists.xensource.com/xen-devel
> 
>

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

* RE: hvc0 xvc0 "compatibility"?
  2009-06-24 11:42 ` Zhigang Wang
@ 2009-06-24 15:41   ` Dan Magenheimer
  2009-06-24 17:17     ` Ferenc Wagner
  0 siblings, 1 reply; 6+ messages in thread
From: Dan Magenheimer @ 2009-06-24 15:41 UTC (permalink / raw)
  To: zhigang.x.wang; +Cc: Xen-Devel (E-mail)

> dan, can you write two lines include both hvc0 and xvc0 in 
> your /etc/inittab?

Apparently not.  With two "co" lines in /etc/inittab, I
can't get a console for either 2.6.18-xen or upstream.

> -----Original Message-----
> From: Zhigang Wang 
> Sent: Wednesday, June 24, 2009 5:43 AM
> To: Dan Magenheimer
> Cc: Xen-Devel (E-mail)
> Subject: Re: [Xen-devel] hvc0 xvc0 "compatibility"?
> 
> 
> Dan Magenheimer wrote:
> > I have a (RHEL5) guest that I alternate booting with a 2.6.18-xen
> > kernel and an upstream kernel.
> > 
> > Upstream uses hvc0 for the console and 2.6.18-xen uses xvc0.  To
> > switch between them, I manually modify /etc/inittab.  If I
> 
> dan, can you write two lines include both hvc0 and xvc0 in 
> your /etc/inittab?
> 
> thanks,
> 
> zhigang
> 
> > forget to do this, I get no login prompt and have to destroy
> > the domain, restart selecting the other kernel, etc.
> > 
> > Do I recall a patch that allows one of these kernels to
> > handle both hvc0 and xvc0?  That would make my life easier.
> > Or is this something that can be done in userland?
> > 
> > Thanks,
> > Dan
> > 
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xensource.com
> > http://lists.xensource.com/xen-devel
> 
> 
>

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

* Re: hvc0 xvc0 "compatibility"?
  2009-06-24 15:41   ` Dan Magenheimer
@ 2009-06-24 17:17     ` Ferenc Wagner
  0 siblings, 0 replies; 6+ messages in thread
From: Ferenc Wagner @ 2009-06-24 17:17 UTC (permalink / raw)
  To: xen-devel

Dan Magenheimer <dan.magenheimer@oracle.com> writes:

>> dan, can you write two lines include both hvc0 and xvc0 in 
>> your /etc/inittab?
>
> Apparently not.  With two "co" lines in /etc/inittab, I
> can't get a console for either 2.6.18-xen or upstream.

You mustn't have two lines with the same ID.  So make that co1 and co2
for example.  After this, you'll still have the problem that init will
continuously trying to spawn getty on the nonexistent device, giving
you periodic error messages.  You can overcome this by using different
runlevels for example.  But it's best to override xencons.
-- 
Feri.

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

end of thread, other threads:[~2009-06-24 17:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-23 20:00 hvc0 xvc0 "compatibility"? Dan Magenheimer
2009-06-24  8:24 ` Ian Campbell
2009-06-24 14:20   ` Dan Magenheimer
2009-06-24 11:42 ` Zhigang Wang
2009-06-24 15:41   ` Dan Magenheimer
2009-06-24 17:17     ` Ferenc Wagner

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.