From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: Problems with console io from a PV guest Date: Wed, 30 Oct 2013 21:26:24 +0000 Message-ID: <52717980.3000808@citrix.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6607799051929072783==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Simon Martin Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --===============6607799051929072783== Content-Type: multipart/alternative; boundary="------------070801020205010102090704" --------------070801020205010102090704 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit On 30/10/13 21:17, Simon Martin wrote: > Hi All, > > I am using the latest and greatest 4.4 unstable and I'm having > problems with console IO. I've been playing around with it for the > last couple of days and I can't seem to find what's wrong. I start the > guest with the "xl create -c" command and I only get one line of > output. Input works fine. > > My code is based on the mini-os implementation. My sequence of events > is as follows from startup is as follows: > > 1.- Map in the shared_info page > > 2.- Initialise the console event > > 3.- Write a line to the console. Send the console channel event. This > seems to work as I see the output in the console and the console cons > and prod indices are equal on the next write call. > > 4.- After writing I get an event on the console channel with no > characters. Do you mean that you get an event on the event channel but there is no movement on the prod/cons indicies? ~Andrew > > 5.- Any writes after this are not shown on the console. > > Any idea what I'm doing wrong? > > Regards. > > > -- > _ _ Debian GNU User Simon Martin > | | (_)_ __ _ ___ __ Project Manager > | | | | '_ \| | | \ \/ / Milliways > | |___| | | | | |_| |> < mailto: smartin@milliways.cl > |_____|_|_| |_|\__,_/_/\_\ > Si Hoc Legere Scis Nimium Eruditionis Habes > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel --------------070801020205010102090704 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit
On 30/10/13 21:17, Simon Martin wrote:
Hi All,
 
I am using the latest and greatest 4.4 unstable and I'm having problems with console IO. I've been playing around with it for the last couple of days and I can't seem to find what's wrong. I start the guest with the "xl create -c" command and I only get one line of output. Input works fine.
 
My code is based on the mini-os implementation. My sequence of events is as follows from startup is as follows:
 
1.- Map in the shared_info page
 
2.- Initialise the console event
 
3.- Write a line to the console. Send the console channel event. This seems to work as I see the output in the console and the console cons and prod indices are equal on the next write call.
 
4.- After writing I get an event on the console channel with no characters.

Do you mean that you get an event on the event channel but there is no movement on the prod/cons indicies?

~Andrew

 
5.- Any writes after this are not shown on the console.
 
Any idea what I'm doing wrong?
 
Regards.
 
 
--
 _     _  Debian GNU User   Simon Martin
| |   (_)_ __  _   ___  __  Project Manager
| |   | | '_ \| | | \ \/ /  Milliways
| |___| | | | | |_| |>  <   mailto: smartin@milliways.cl
|_____|_|_| |_|\__,_/_/\_\
Si Hoc Legere Scis Nimium Eruditionis Habes
 


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

--------------070801020205010102090704-- --===============6607799051929072783== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============6607799051929072783==--