[libvirt] qemu logging/tracing option in domain xml

Hi all, QEMU has the '-d' command line option to configure logs/traces. As I can see, <qemu:commandline> is the only way to set it in domain xml. <qemu:commandline> makes a configuration tainted and doesn't allow to update tracing/logging configuration in runtime. The ability to update configuration in runtime will be very useful for us in Virtuozzo for QEMU problem investigation and development. So I want to ask you will you mind if I prepare a patch-set that introduces a new section for domain xml with next scheme: <element name="debug"> <zeroOrMore> <element name="log"> <attribute name="name"> <ref name="filter-param-value"/> </attribute> </element> </zeroOrMore> </element> Is this acceptable?

On 12/14/2015 04:52 PM, Dmitry Andreev wrote:
Hi all,
QEMU has the '-d' command line option to configure logs/traces. As I can see, <qemu:commandline> is the only way to set it in domain xml.
<qemu:commandline> makes a configuration tainted and doesn't allow to update tracing/logging configuration in runtime. The ability to update configuration in runtime will be very useful for us in Virtuozzo for QEMU problem investigation and development.
So I want to ask you will you mind if I prepare a patch-set that introduces a new section for domain xml with next scheme:
<element name="debug"> <zeroOrMore> <element name="log"> <attribute name="name"> <ref name="filter-param-value"/> </attribute> </element> </zeroOrMore> </element>
Is this acceptable?
we are asking as tracing becomes a part of logging API with this patchset http://comments.gmane.org/gmane.comp.emulators.qemu/375071 which is scheduled for QEMU 2.6 and some libvirt counfiguration would be perfectly fine. Den

On Mon, Dec 14, 2015 at 04:52:43PM +0300, Dmitry Andreev wrote:
Hi all,
QEMU has the '-d' command line option to configure logs/traces. As I can see, <qemu:commandline> is the only way to set it in domain xml.
<qemu:commandline> makes a configuration tainted and doesn't allow to update tracing/logging configuration in runtime. The ability to update configuration in runtime will be very useful for us in Virtuozzo for QEMU problem investigation and development.
So I want to ask you will you mind if I prepare a patch-set that introduces a new section for domain xml with next scheme:
<element name="debug"> <zeroOrMore> <element name="log"> <attribute name="name"> <ref name="filter-param-value"/> </attribute> </element> </zeroOrMore> </element>
Is this acceptable?
IMHO I've always considered <qemu:commandline> to be appropriate for these ad-hoc developer debugging flags. In addition I'm not hugely interested in adding APIs for controlling QEMU's debugging facilities, since I think these QEMU monitor commands are inherantly hypervisor specific. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
participants (3)
-
Daniel P. Berrange
-
Denis V. Lunev
-
Dmitry Andreev