All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Major Hayden <major.hayden@rackspace.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Legacy tty1 support in pvops kernels
Date: Wed, 12 May 2010 09:37:23 -0700	[thread overview]
Message-ID: <4BEAD943.6040104@goop.org> (raw)
In-Reply-To: <3537569A-6951-4CC4-9E65-07B98D623D64@rackspace.com>

On 05/11/2010 05:42 PM, Major Hayden wrote:
> Hey there,
>
> We have quite a few legacy environments that already have pre-built domU images that depend on /dev/sdX for block devices and /dev/tty1 for console access.  The /dev/xvdX -> /dev/sdX change is trivial:
>
> diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
> index b8578bb..9c8aaa4 100644
> --- a/drivers/block/xen-blkfront.c
> +++ b/drivers/block/xen-blkfront.c
> @@ -117,7 +117,7 @@ static DEFINE_SPINLOCK(blkif_io_lock);
> #define VDEV_IS_EXTENDED(dev) ((dev)&(EXTENDED))
> #define BLKIF_MINOR_EXT(dev) ((dev)&(~EXTENDED))
>
> -#define DEV_NAME       "xvd"   /* name in /dev */
> +#define DEV_NAME       "sd"    /* name in /dev */
>
> static int get_id_from_freelist(struct blkfront_info *info)
> {
>
> However, I'm struggling with the hvc0 -> tty1 change.  In short, I'm looking to bring up a domU that is pre-configured to use tty1 as its console.  I understand that the virtual terminal drivers and hvc drivers are different and that the OS will see them differently as it boots.  I made these adjustments in the hopes that something would work:
>
> diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig
> index 6aad99e..cd2888d 100644
> --- a/drivers/char/Kconfig
> +++ b/drivers/char/Kconfig
> @@ -5,7 +5,7 @@
> menu "Character devices"
>
> config VT
> -       bool "Virtual terminal" if EMBEDDED
> +       bool "Virtual terminal"
>       depends on !S390
>       select INPUT
>       default y
>
> diff --git a/drivers/char/hvc_console.c b/drivers/char/hvc_console.c
> index a632f25..eff0900 100644
> --- a/drivers/char/hvc_console.c
> +++ b/drivers/char/hvc_console.c
> @@ -44,7 +44,7 @@
> #include "hvc_console.h"
>
> #define HVC_MAJOR      229
>   

Did you try changing the major to 4 as well?  To match /dev/ttyX?

    J

  reply	other threads:[~2010-05-12 16:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-12  0:42 Legacy tty1 support in pvops kernels Major Hayden
2010-05-12 16:37 ` Jeremy Fitzhardinge [this message]
2010-05-12 16:57   ` Major Hayden
2010-05-13 20:50     ` Major Hayden
2010-05-12 17:21 ` Stefan Kuhne
  -- strict thread matches above, loose matches on Subject: below --
2010-05-12  0:30 Major Hayden
2010-05-11 21:16 Major Hayden
2010-05-11 19:11 Major Hayden

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BEAD943.6040104@goop.org \
    --to=jeremy@goop.org \
    --cc=major.hayden@rackspace.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.