From 00ce10c700993e054532baca28d0c0d2b22c5571 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Fri, 11 Dec 2015 16:58:13 +0000 Subject: [PATCH] conf: allow use of a logfile with chardev backends Extend the chardev source XML so that there is a new optional element, which is applicable to all character device backend types. For example, to log output of a TCP backed serial port Not all hypervisors will support use of logfiles. Signed-off-by: Daniel P. Berrange --- docs/formatdomain.html.in | 14 ++++++++++++++ docs/schemas/domaincommon.rng | 12 ++++++++++++ src/conf/domain_conf.c | 30 ++++++++++++++++++++++++++++++ src/conf/domain_conf.h | 2 ++ 4 files changed, 58 insertions(+) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 4e4922806b..41f24889c2 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -5283,6 +5283,20 @@ qemu-kvm -net nic,model=? /dev/null "on" and "off" (default). Since 1.3.1.

+

+ Regardless of thetype, character devices can + have an optional log file associated with them. This is + expressed via a log sub-element, with a + file attribute. There can also be a append + attribute which takes teh same values described above. + 1.3.3. +

+ +
+  ...
+  <log file="/var/log/libvirt/qemu/guestname-serial0.log" append="off"/>
+  ...
+

Each character device element has an optional sub-element <address> which can tie the diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 6ca937c07a..8c6287d8bf 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -3299,6 +3299,18 @@ + + + + + + + + + + + +