All of lore.kernel.org
 help / color / mirror / Atom feed
* HYPERVISOR_console_write gone?
@ 2004-03-09 15:54 Jacob Gorm Hansen
  2004-03-09 20:39 ` Keir Fraser
  0 siblings, 1 reply; 11+ messages in thread
From: Jacob Gorm Hansen @ 2004-03-09 15:54 UTC (permalink / raw)
  To: Xen list

hi,

in the unstable tree, HYPERVISOR_console_write appears to have
disappeared. Is there an easy/recommended way of achieving the same
(debug output without incurring pagefaults) in the new version?

thanks,
Jacob



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

* Re: HYPERVISOR_console_write gone?
  2004-03-09 15:54 HYPERVISOR_console_write gone? Jacob Gorm Hansen
@ 2004-03-09 20:39 ` Keir Fraser
  2004-03-10 12:20   ` Jacob Gorm Hansen
  0 siblings, 1 reply; 11+ messages in thread
From: Keir Fraser @ 2004-03-09 20:39 UTC (permalink / raw)
  To: Jacob Gorm Hansen; +Cc: Xen list

> hi,
> 
> in the unstable tree, HYPERVISOR_console_write appears to have
> disappeared. Is there an easy/recommended way of achieving the same
> (debug output without incurring pagefaults) in the new version?
> 
> thanks,
> Jacob

Guest OSes should send their console output via domain 0
now. HYPERVISOR_console_write is still available in debug builds -- if
you want this capability without a full debug build of Xen then you
will need to manually edit common/console.c.

 -- Keir


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

* Re: HYPERVISOR_console_write gone?
  2004-03-09 20:39 ` Keir Fraser
@ 2004-03-10 12:20   ` Jacob Gorm Hansen
  2004-03-10 12:27     ` Jacob Gorm Hansen
  2004-03-10 12:38     ` Jacob Gorm Hansen
  0 siblings, 2 replies; 11+ messages in thread
From: Jacob Gorm Hansen @ 2004-03-10 12:20 UTC (permalink / raw)
  To: Keir Fraser; +Cc: Xen list

On Tue, 2004-03-09 at 21:39, Keir Fraser wrote:

> Guest OSes should send their console output via domain 0
> now. HYPERVISOR_console_write is still available in debug builds -- if
> you want this capability without a full debug build of Xen then you
> will need to manually edit common/console.c.

How do I configure my guest OS to send printks to dom0? I used to have
the #if 1 thing set in kernel/printk.c, but that is gone now. My
unprivileged domains have gone awfully quiet now.

Btw, there is no common/console.c in neither Xen nor Xenolinux. I would
really like to have HYPERVISOR_console_write back, so I have re-added
the definition to asm/hypervisor.h. What do I have to change in Xen (I
don't think I want a full debug build) to make it work?

Lastly, I used to be able to interact with Xen via the serial line, but
it seems to no longer listen to my keypresses. How do I reenable that?

thanks in advance,
Jacob



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

* Re: HYPERVISOR_console_write gone?
  2004-03-10 12:20   ` Jacob Gorm Hansen
@ 2004-03-10 12:27     ` Jacob Gorm Hansen
  2004-03-10 12:38     ` Jacob Gorm Hansen
  1 sibling, 0 replies; 11+ messages in thread
From: Jacob Gorm Hansen @ 2004-03-10 12:27 UTC (permalink / raw)
  To: Keir Fraser; +Cc: Xen list

On Wed, 2004-03-10 at 13:20, Jacob Gorm Hansen wrote:

> Lastly, I used to be able to interact with Xen via the serial line, but
> it seems to no longer listen to my keypresses. How do I reenable that?

Just to answer this myself I just noticed that ctrl+a switches, I guess
there must be some way to reverse the default setting.

Jacob



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

* Re: HYPERVISOR_console_write gone?
  2004-03-10 12:20   ` Jacob Gorm Hansen
  2004-03-10 12:27     ` Jacob Gorm Hansen
@ 2004-03-10 12:38     ` Jacob Gorm Hansen
  2004-03-10 12:44       ` Ian Pratt
  1 sibling, 1 reply; 11+ messages in thread
From: Jacob Gorm Hansen @ 2004-03-10 12:38 UTC (permalink / raw)
  To: Keir Fraser; +Cc: Xen list

On Wed, 2004-03-10 at 13:20, Jacob Gorm Hansen wrote:

> Btw, there is no common/console.c in neither Xen nor Xenolinux. I would
> really like to have HYPERVISOR_console_write back, so I have re-added
> the definition to asm/hypervisor.h. What do I have to change in Xen (I
> don't think I want a full debug build) to make it work?

Never mind, fixed drivers/char/console.c to suit my needs. I am still
curious about how to get guest console output send to dom0 though.

thanks,
Jacob



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

* Re: HYPERVISOR_console_write gone?
  2004-03-10 12:38     ` Jacob Gorm Hansen
@ 2004-03-10 12:44       ` Ian Pratt
  2004-03-10 13:20         ` Jacob Gorm Hansen
  0 siblings, 1 reply; 11+ messages in thread
From: Ian Pratt @ 2004-03-10 12:44 UTC (permalink / raw)
  To: Jacob Gorm Hansen; +Cc: Keir Fraser, Xen list, Ian.Pratt

> On Wed, 2004-03-10 at 13:20, Jacob Gorm Hansen wrote:
> 
> > Btw, there is no common/console.c in neither Xen nor Xenolinux. I would
> > really like to have HYPERVISOR_console_write back, so I have re-added
> > the definition to asm/hypervisor.h. What do I have to change in Xen (I
> > don't think I want a full debug build) to make it work?
> 
> Never mind, fixed drivers/char/console.c to suit my needs. I am still
> curious about how to get guest console output send to dom0 though.

Run the new 'xend' in domain 0, and when you start a domain with
xc_dom_create it will print out which TCP port the domain's
console will be available on (e.g. "telnet localhost 9600").

The interface is just about to undergo some further changes, but
this should work for now. console is now bidirectional, so you
should be able to login if you run a getty on 'console' e.g. in
/etc/inittab

C:2345:respawn:/sbin/mingetty console

Ian



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

* Re: HYPERVISOR_console_write gone?
  2004-03-10 12:44       ` Ian Pratt
@ 2004-03-10 13:20         ` Jacob Gorm Hansen
  2004-03-10 13:32           ` Ian Pratt
  0 siblings, 1 reply; 11+ messages in thread
From: Jacob Gorm Hansen @ 2004-03-10 13:20 UTC (permalink / raw)
  To: Ian Pratt; +Cc: Keir Fraser, Xen list

On Wed, 2004-03-10 at 13:44, Ian Pratt wrote:
> > On Wed, 2004-03-10 at 13:20, Jacob Gorm Hansen wrote:

> The interface is just about to undergo some further changes, but
> this should work for now. console is now bidirectional, so you
> should be able to login if you run a getty on 'console' e.g. in
> /etc/inittab
> 
> C:2345:respawn:/sbin/mingetty console

Right now it seems my domain is locking up when kernel/printk.c calls
console->setup(). Do I need any special console=... arguments in the
boot parameter string?

Jacob



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

* Re: HYPERVISOR_console_write gone?
  2004-03-10 13:20         ` Jacob Gorm Hansen
@ 2004-03-10 13:32           ` Ian Pratt
  2004-03-10 13:48             ` Jacob Gorm Hansen
  0 siblings, 1 reply; 11+ messages in thread
From: Ian Pratt @ 2004-03-10 13:32 UTC (permalink / raw)
  To: Jacob Gorm Hansen; +Cc: Ian Pratt, Keir Fraser, Xen list

> On Wed, 2004-03-10 at 13:44, Ian Pratt wrote:
> > > On Wed, 2004-03-10 at 13:20, Jacob Gorm Hansen wrote:
> 
> > The interface is just about to undergo some further changes, but
> > this should work for now. console is now bidirectional, so you
> > should be able to login if you run a getty on 'console' e.g. in
> > /etc/inittab
> > 
> > C:2345:respawn:/sbin/mingetty console
> 
> Right now it seems my domain is locking up when kernel/printk.c calls
> console->setup(). Do I need any special console=... arguments in the
> boot parameter string?

Are you running 'xend'? The current console implementation is
blocking, and hence you could stall after filling up the buffer
if you haven't run the daemon to read it out.

It's expected that 'xend' will be run in every domain0, and will
be taking on other functionality in the future too (such as
potentially reaping dead domains).

Ian



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

* Re: HYPERVISOR_console_write gone?
  2004-03-10 13:32           ` Ian Pratt
@ 2004-03-10 13:48             ` Jacob Gorm Hansen
  2004-03-10 14:33               ` Keir Fraser
  2004-03-10 14:35               ` Ian Pratt
  0 siblings, 2 replies; 11+ messages in thread
From: Jacob Gorm Hansen @ 2004-03-10 13:48 UTC (permalink / raw)
  To: Ian Pratt; +Cc: Xen list

On Wed, 2004-03-10 at 14:32, Ian Pratt wrote:

> Are you running 'xend'? The current console implementation is
> blocking, and hence you could stall after filling up the buffer
> if you haven't run the daemon to read it out.

Yes, xend is running. For now, I've hacked printk to call good old
HYPERVISOR_console_write, and skipped the call to register_console().

Jacob



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

* Re: HYPERVISOR_console_write gone?
  2004-03-10 13:48             ` Jacob Gorm Hansen
@ 2004-03-10 14:33               ` Keir Fraser
  2004-03-10 14:35               ` Ian Pratt
  1 sibling, 0 replies; 11+ messages in thread
From: Keir Fraser @ 2004-03-10 14:33 UTC (permalink / raw)
  To: Jacob Gorm Hansen; +Cc: Ian Pratt, Xen list

> On Wed, 2004-03-10 at 14:32, Ian Pratt wrote:
> 
> > Are you running 'xend'? The current console implementation is
> > blocking, and hence you could stall after filling up the buffer
> > if you haven't run the daemon to read it out.
> 
> Yes, xend is running. For now, I've hacked printk to call good old
> HYPERVISOR_console_write, and skipped the call to register_console().

Sound slike that's the best plan for now. Only xc_dom_create.py sets
up the shared comms with teh DOM0 console daemon, so this
necessary initialisation is missing from the resume tools at the
moment.  We can work on integrating this later.

 -- Keir



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

* Re: HYPERVISOR_console_write gone?
  2004-03-10 13:48             ` Jacob Gorm Hansen
  2004-03-10 14:33               ` Keir Fraser
@ 2004-03-10 14:35               ` Ian Pratt
  1 sibling, 0 replies; 11+ messages in thread
From: Ian Pratt @ 2004-03-10 14:35 UTC (permalink / raw)
  To: Jacob Gorm Hansen; +Cc: Ian Pratt, Xen list


> On Wed, 2004-03-10 at 14:32, Ian Pratt wrote:
> 
> > Are you running 'xend'? The current console implementation is
> > blocking, and hence you could stall after filling up the buffer
> > if you haven't run the daemon to read it out.
> 
> Yes, xend is running. For now, I've hacked printk to call good old
> HYPERVISOR_console_write, and skipped the call to register_console().

Odd. This is with a xenolinux built from the same repository,
right?

I think using HYPERVISOR_console_write is probably best for what
you're doing anyhow -- the new xend console stuff has yet to be
integrated with suspend/resume yet, but this should be
straightforward.


Ian



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

end of thread, other threads:[~2004-03-10 14:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-09 15:54 HYPERVISOR_console_write gone? Jacob Gorm Hansen
2004-03-09 20:39 ` Keir Fraser
2004-03-10 12:20   ` Jacob Gorm Hansen
2004-03-10 12:27     ` Jacob Gorm Hansen
2004-03-10 12:38     ` Jacob Gorm Hansen
2004-03-10 12:44       ` Ian Pratt
2004-03-10 13:20         ` Jacob Gorm Hansen
2004-03-10 13:32           ` Ian Pratt
2004-03-10 13:48             ` Jacob Gorm Hansen
2004-03-10 14:33               ` Keir Fraser
2004-03-10 14:35               ` Ian Pratt

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.