* ioport 0x12 logfile writing
@ 2013-12-24 6:28 James Harper
2013-12-24 9:10 ` Paul Durrant
0 siblings, 1 reply; 3+ messages in thread
From: James Harper @ 2013-12-24 6:28 UTC (permalink / raw)
To: xen-devel@lists.xenproject.org
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?
Thanks
James
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ioport 0x12 logfile writing
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
0 siblings, 1 reply; 3+ messages in thread
From: Paul Durrant @ 2013-12-24 9:10 UTC (permalink / raw)
To: James Harper, xen-devel@lists.xenproject.org
> -----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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ioport 0x12 logfile writing
2013-12-24 9:10 ` Paul Durrant
@ 2013-12-24 16:34 ` Don Slutz
0 siblings, 0 replies; 3+ messages in thread
From: Don Slutz @ 2013-12-24 16:34 UTC (permalink / raw)
To: Paul Durrant; +Cc: xen-devel@lists.xenproject.org, James Harper
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-24 16:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.