[libvirt] [PATCH 04/10] qemu: Improve error message in virDomainGetVcpus

Peter Krempa pkrempa at redhat.com
Wed Aug 3 08:10:56 UTC 2016


If the VM is offline we can't retrieve the runtime statistical
information. Pinning could be retrieved but there are separate APIs for
that.
---
 src/qemu/qemu_driver.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 11db9a5..061c16f 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -5284,9 +5284,8 @@ qemuDomainGetVcpus(virDomainPtr dom,
         goto cleanup;

     if (!virDomainObjIsActive(vm)) {
-        virReportError(VIR_ERR_OPERATION_INVALID,
-                       "%s",
-                       _("cannot list vcpu pinning for an inactive domain"));
+        virReportError(VIR_ERR_OPERATION_INVALID, "%s",
+                       _("cannot retrieve vcpu information for inactive domain"));
         goto cleanup;
     }

-- 
2.9.2




More information about the libvir-list mailing list