[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 3/3] Modify stubdom-dm.



This patch modifies stubdom-dm to use "--console_timestamp" option of
xm create.

We can add date and domid to stubdom's log with this patch.

  # xm create CentOS-Stub

  # cat /var/log/xen/qemu-dm-CentOS-Stub.log 

    Using config file "/etc/xen/CentOS-Stub-dm".
    Started domain CentOS-Stub-dm (id=2)
    [2009-01-05 10:57:20 2] xs_read_watch() -> 
/local/domain/0/device-model/1/command dm-command
    [2009-01-05 10:57:20 2] xs_read(/local/domain/0/device-model/1/command): 
ENOENT
    [2009-01-05 10:57:20 2] resize to 720x400@0, 0 required
    [2009-01-05 10:57:20 2] xs_read_watch() -> 
/local/domain/0/device-model/1/logdirty/next-active logdirty
    [2009-01-05 10:57:20 2] 
xs_read(/local/domain/0/device-model/1/logdirty/key): ENOENT
    [2009-01-05 10:57:20 2] I/O request not ready: 0, ptr: 0, port: e9, data: 
a, count: 1, size: 1
    [2009-01-05 10:57:20 2] ******************* FBFRONT for 
/local/domain/2/device/vfb/0 **********
    [2009-01-05 10:57:20 2] 
    [2009-01-05 10:57:20 2] 
    [2009-01-05 10:57:20 2] /local/domain/0/backend/vkbd/2/0 connected
    [2009-01-05 10:57:20 2] backend at /local/domain/0/backend/vfb/2/0
    ...

I know qemu's log will have timestamp function in the future.
When qemu comes to output timestamp by itself, please remove this patch.

Thanks,
--
Yuji Shimada

Signed-off-by: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>

diff -r af1d9af1a993 stubdom/stubdom-dm
--- a/stubdom/stubdom-dm        Wed Jan 21 14:44:43 2009 +0000
+++ b/stubdom/stubdom-dm        Mon Jan 26 12:04:08 2009 +0900
@@ -72,7 +72,7 @@ do
        sleep 1
 done
 
-creation="xm create -c $domname-dm target=$domid memory=32 extra=\"$extra\""
+creation="xm create -c --console_timestamp $domname-dm target=$domid memory=32 
extra=\"$extra\""
 
 (while true ; do sleep 60 ; done) | /bin/sh -c "$creation" &
 #xterm -geometry +0+0 -e /bin/sh -c "$creation ; echo ; echo press ENTER to 
shut down ; read" &


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.