Skip to contentSkip to conversation

debug console display problem

DISCUSSION 杜雨阳 3 participants 3 messages Sep 6, 2008

lore
Share & tools
lore

杜雨阳

author
#0 lore raw

Dear Xen developers,

My very first guest kernel is:

void start_kernel(start_info_t * start_info)

{
        HYPERVISOR_console_io(CONSOLEIO_write,12,"Hello World\n");
        while(1);
}

My Xen hypervisor is the latest xen-3.3.0, however, I never get the message: Hello World.

How can I get this? Please give me complete setup.

Crave for your help.

Shawn

2008-09-06

杜雨阳

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Provide these command-line options:

loglvl=all guest_loglvl=all console_to_ring

in your bootloader to the Xen hypervisor. The message will then appear in xm dmesg.

Chris

杜雨阳 wrote:

| Dear Xen developers,
|
| My very first guest kernel is:
|
| void start_kernel(start_info_t * start_info)
| {
|         HYPERVISOR_console_io(CONSOLEIO_write,12,"Hello World\n");
|         while(1);
| }
|
| My Xen hypervisor is the latest xen-3.3.0, however, I never get the
| message: Hello World.
|
| How can I get this? Please give me complete setup.
|
| Crave for your help.
|
| Shawn
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: GnuPT 2.7.2
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjCrcYACgkQiD2svb/jCb70lACffodUe0+AC94Qgi1kAVwJFVFC AWIAn0jEwNtFJnz/E/wJNM5QEhQ00r93
=8U+h
-----END PGP SIGNATURE-----

#2 lore raw

Also you need a debug build (debug=y make) of Xen. Guests (anything other than dom0) are supposed to talk to xenconsoled in dom0, but a debug build makes allowances for guest OS development.

-- Keir

Quoted 46 lines · Christopher Head

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Provide these command-line options:

loglvl=all guest_loglvl=all console_to_ring

in your bootloader to the Xen hypervisor. The message will then appear in xm dmesg.

Chris

杜雨阳 wrote:

| Dear Xen developers,
|
| My very first guest kernel is:
|
| void start_kernel(start_info_t * start_info)
| {
|         HYPERVISOR_console_io(CONSOLEIO_write,12,"Hello World\n");
|         while(1);
| }
|
| My Xen hypervisor is the latest xen-3.3.0, however, I never get the
| message: Hello World.
|
| How can I get this? Please give me complete setup.
|
| Crave for your help.
|
| Shawn
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: GnuPT 2.7.2
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjCrcYACgkQiD2svb/jCb70lACffodUe0+AC94Qgi1kAVwJFVFC AWIAn0jEwNtFJnz/E/wJNM5QEhQ00r93
=8U+h
-----END PGP SIGNATURE-----

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel