computing-offload/generic_vdpa/libvirt/virsh-Display-vhostuser-socket-path-in-domblklist.patch
jiangdongxu 79c4324644 add generic_vdpa basecode
Change-Id: I2d302dda68298877c65c99147f5bf22186a59aac
2024-09-19 17:19:46 +08:00

34 lines
1.3 KiB
Diff

From d5de781c93c695ed92fa181764f9f0cfbb508074 Mon Sep 17 00:00:00 2001
From: dinglimin <dinglimin@cmss.chinamobile.com>
Date: Mon, 13 Dec 2021 11:18:09 +0800
Subject: [PATCH] virsh: Display vhostuser socket path in domblklist
The domblklist command is designed to show a brief information about the
blocks of a domain. One piece of information that is shows is "Target
"and "Source". Before the modification, the Vhost disk of SPDK is
displayed as "-". After the modification, the socket associated with it
can be displayed.
Signed-off-by: dinglimin <dinglimin@cmss.chinamobile.com>
---
tools/virsh-domain-monitor.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/virsh-domain-monitor.c b/tools/virsh-domain-monitor.c
index 9b8c69fa9d..74ff369597 100644
--- a/tools/virsh-domain-monitor.c
+++ b/tools/virsh-domain-monitor.c
@@ -665,7 +665,8 @@ cmdDomblklist(vshControl *ctl, const vshCmd *cmd)
"|./source/@dev"
"|./source/@dir"
"|./source/@name"
- "|./source/@volume)", ctxt);
+ "|./source/@volume"
+ "|./source/@path)", ctxt);
}
if (details) {
--
2.27.0