HYPERVISOR_console_write gone?
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
Quoted 8 lines
hi,
in the unstable tree,
HYPERVISOR_console_writeappears 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
Quoted 4 lines · Keir Fraser
Guest OSes should send their console output via domain 0 now.
HYPERVISOR_console_writeis still available in debug builds -- if you want this capability without a full debug build of Xen then you will need to manually editcommon/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
Quoted 2 lines · Jacob Gorm Hansen
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
Quoted 4 lines · Jacob Gorm Hansen
Btw, there is no
common/console.cin neither Xen nor Xenolinux. I would really like to haveHYPERVISOR_console_writeback, so I have re-added the definition toasm/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
Quoted 9 lines · Jacob Gorm Hansen
Quoted 5 lines
Btw, there is no
common/console.cin neither Xen nor Xenolinux. I would really like to haveHYPERVISOR_console_writeback, so I have re-added the definition toasm/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.cto 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
Quoted 8 lines · Ian Pratt
Quoted 1 line · Jacob Gorm Hansen
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/inittabC: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
Quoted 8 lines · Ian Pratt
Quoted 7 lines
Quoted 1 line · Jacob Gorm Hansen
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
Quoted 5 lines
Quoted 1 line
C:2345:respawn:/sbin/mingetty console
Right now it seems my domain is locking up when
kernel/printk.ccallsconsole->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
Quoted 3 lines · Ian Pratt
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
Quoted 8 lines · Ian Pratt
Quoted 4 lines
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 toregister_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
Quoted 9 lines · Ian Pratt
Quoted 4 lines
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 toregister_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