From: Michal Privoznik Date: Tue, 18 Sep 2018 09:01:53 +0000 (+0200) Subject: virsh: Display vhostuser socket path in domiflist X-Git-Tag: v4.8.0-rc1~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c846767bfaea8ea0e7b57001a3d0563ad75562cc;p=thirdparty%2Flibvirt.git virsh: Display vhostuser socket path in domiflist https://bugzilla.redhat.com/show_bug.cgi?id=1630164 The domiflist command is designed to show a brief information on domain interfaces. One piece of information that is shows is "Source" - source network, device, name, bridge. However, it's ignoring vhostuser for which we can show the unix socket it's associated with. Signed-off-by: Michal Privoznik Reviewed-by: Andrea Bolognani --- diff --git a/tools/virsh-domain-monitor.c b/tools/virsh-domain-monitor.c index 8962586d76..35c2216137 100644 --- a/tools/virsh-domain-monitor.c +++ b/tools/virsh-domain-monitor.c @@ -715,7 +715,8 @@ cmdDomiflist(vshControl *ctl, const vshCmd *cmd) source = virXPathString("string(./source/@bridge" "|./source/@dev" "|./source/@network" - "|./source/@name)", ctxt); + "|./source/@name" + "|./source/@path)", ctxt); target = virXPathString("string(./target/@dev)", ctxt); model = virXPathString("string(./model/@type)", ctxt);