All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori@us.ibm.com>
To: NAHieu <nahieu@gmail.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: How console data travel in Xen?
Date: Thu, 30 Jun 2005 13:16:54 -0500	[thread overview]
Message-ID: <42C43716.4020803@us.ibm.com> (raw)
In-Reply-To: <5d7aca9505063010287ec8117a@mail.gmail.com>

NAHieu wrote:

>Anthony, thank you for a great detail explaination. These information
>is really helpful to me.
>  
>
no problem :-)

>But still few questions stand: how do console data go from HW to Xen,
>then to dom0? (the above explaination is only about sessions between
>dom0 and domU)
>  
>
Ok, so let's say you enter some keyboard data.  Those keyboard actions 
are going to go to dom0.  If you're typing at a console it's getting 
intercepted by some program that's push that keyboard data to Xend let's 
say.  Xend takes that data and splits it up into CMSG_CONSOLE messages 
which it then passes through the previously described mechanism to domU.

Then domU sees that data as input on a virtual serial device (the domU 
kernel's been hacked to use the serial device by default instead of the 
typical virtual terminals).  Then when domU decides it wants to display 
that data back to the user, it sends it back to dom0 again through the 
previously described channel.

Xend ends up getting those messages and assembles it into a string which 
it then displays back on the console.

This is probably a bit clearer if you look at the VM-Tools source tree.  
Everything is pretty much confined to tools/vm-console.c and 
xenctld/console.c.  Xend does pretty much the same thing but there's a 
bit more indirection involved.

Regards,

Anthony Liguori

>Thank you a lot,
>Hieu
>
>  
>

  reply	other threads:[~2005-06-30 18:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-30 15:41 How console data travel in Xen? NAHieu
2005-06-30 16:08 ` Anthony Liguori
2005-06-30 17:28   ` NAHieu
2005-06-30 18:16     ` Anthony Liguori [this message]
     [not found]       ` <5d7aca95050630113550c453b0@mail.gmail.com>
2005-06-30 18:39         ` Anthony Liguori
  -- strict thread matches above, loose matches on Subject: below --
2005-06-30 15:52 Li, Xin B
2005-06-30  9:06 NAHieu

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=42C43716.4020803@us.ibm.com \
    --to=aliguori@us.ibm.com \
    --cc=nahieu@gmail.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.