WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 3/3] Modify stubdom-dm.
From: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>
Date: Wed, 28 Jan 2009 13:41:06 +0900
Cc:
Delivery-date: Tue, 27 Jan 2009 20:42:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090128131435.107B.SHIMADA-YXB@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20090128131435.107B.SHIMADA-YXB@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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