From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH OSSTEST] stubdom: Arrange for guest serial to go to a host logfile Date: Wed, 7 Oct 2015 10:34:02 +0100 Message-ID: <1444210442-27743-1-git-send-email-ian.campbell@citrix.com> References: <1444145468.5302.223.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1444145468.5302.223.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org Cc: wei.liu2@citrix.com, Ian Campbell List-Id: xen-devel@lists.xenproject.org By pointing the serial port at 'file:/var/log/dm-serial.log' it will end up on mini-os's console and therefore in /var/log/xen/qemu-dm-$guest.log. Signed-off-by: Ian Campbell --- Osstest/TestSupport.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 69da459..f9eba6b 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -1822,7 +1822,10 @@ END my $stubdom = guest_var_boolean($gho, 'stubdom'); if ($stubdom) { $cfg .= "device_model_stubdomain_override=1\n"; - $cfg .= "serial='pty'\n"; + # MINI-OS turns any open of a path starting /var/log/ into a + # fd pointing to mini-os's console. IOW any such path used + # here ends up in the host logs in /var/log/xen/qemu-dm-$guest.log + $cfg .= "serial='file:/var/log/dm-serial.log'\n"; } else { $cfg .= "serial='file:/dev/stderr'\n"; } -- 2.5.3