From: Don Slutz <dslutz@verizon.com>
To: Paul Durrant <Paul.Durrant@citrix.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
James Harper <james.harper@bendigoit.com.au>
Subject: Re: ioport 0x12 logfile writing
Date: Tue, 24 Dec 2013 11:34:21 -0500 [thread overview]
Message-ID: <52B9B78D.5040709@terremark.com> (raw)
In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD01C1D77@AMSPEX01CL01.citrite.net>
On 12/24/13 04:10, Paul Durrant wrote:
>> -----Original Message-----
>> From: xen-devel-bounces@lists.xen.org [mailto:xen-devel-
>> bounces@lists.xen.org] On Behalf Of James Harper
>> Sent: 24 December 2013 06:28
>> To: xen-devel@lists.xenproject.org
>> Subject: [Xen-devel] ioport 0x12 logfile writing
>>
>> Under xen 4.1 and the old qemu I could write to /var/log/xen/qemu-dm-
>> <domu name>.log from inside the vm by writing to ioport 0x12. Is that
>> functionality replaced in any way in qemu upstream? Does qemu have its
>> own logging mechanism?
>>
> That logging mechanism (via qemu tracing: see http://repo.or.cz/w/qemu/stefanha.git/blob_plain/refs/heads/tracing:/docs/tracing.txt) is still there, but unfortunately off by default. I think recent xen builds now compile upstream qemu with a stderr trace backend by default at least so all you should need to do is create a events file by doing:
>
> Echo xen_platform_log > /tmp/events
>
> And then adding "-trace events=/tmp/events" to your qemu command line via your xl.cfg:
>
> device_model_args = ['-trace', 'events=/tmp/events']
>
> Port 0x12 logging should then appear as before.
>
> Paul
QEMU tracing is on only for "debug=y" builds (tools/Makefile):
ifeq ($(debug),y)
QEMU_XEN_ENABLE_DEBUG := --enable-debug --enable-trace-backend=stderr
else
QEMU_XEN_ENABLE_DEBUG :=
endif
-Don Slutz
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
prev parent reply other threads:[~2013-12-24 16:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-24 6:28 ioport 0x12 logfile writing James Harper
2013-12-24 9:10 ` Paul Durrant
2013-12-24 16:34 ` Don Slutz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52B9B78D.5040709@terremark.com \
--to=dslutz@verizon.com \
--cc=Paul.Durrant@citrix.com \
--cc=james.harper@bendigoit.com.au \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.