[libvirt] [PATCH] Fix virsh sched-credit for xend

john.levon at sun.com john.levon at sun.com
Fri Jan 23 01:49:00 UTC 2009


# HG changeset patch
# User john.levon at sun.com
# Date 1232675291 28800
# Node ID 415bfd87e0ecd7751ed6df372e82da0e3991d617
# Parent  68e14fe50dfa88a4694bc4c7a68d2f73f41c6171
Fix virsh sched-credit for xend

Need to pass domain in the xend op for shut-down domains.
(This also requires xend fixes, but this patch doesn't make things
worse.)

Signed-off-by: John Levon <john.levon at sun.com>

diff --git a/src/xend_internal.c b/src/xend_internal.c
--- a/src/xend_internal.c
+++ b/src/xend_internal.c
@@ -4665,7 +4665,7 @@ xenDaemonSetSchedulerParameters(virDomai
 
             ret = xend_op(domain->conn, domain->name, "op",
                           "domain_sched_credit_set", "weight", buf_weight,
-                          "cap", buf_cap, NULL);
+                          "cap", buf_cap, "dom", domain->name, NULL);
             break;
         }
         default:




More information about the libvir-list mailing list