[Libvirt-cim] [PATCH] Don't avoid setting VirtualQuantity if vcpu count is zero

Dan Smith danms at us.ibm.com
Wed Dec 10 20:42:08 UTC 2008


# HG changeset patch
# User Dan Smith <danms at us.ibm.com>
# Date 1228941722 28800
# Node ID 3557859610b4eaf8a2bdcb28d7002121e3e776b1
# Parent  da7aba7f560d7a3622f1ff3325d634a6470bad29
Don't avoid setting VirtualQuantity if vcpu count is zero

Signed-off-by: Dan Smith <danms at us.ibm.com>

diff -r da7aba7f560d -r 3557859610b4 src/Virt_RASD.c
--- a/src/Virt_RASD.c	Tue Dec 09 10:51:09 2008 -0800
+++ b/src/Virt_RASD.c	Wed Dec 10 12:42:02 2008 -0800
@@ -126,7 +126,7 @@
         else
                 count = dev->dev.vcpu.quantity;
 
-        if (count > 0)
+        if (count >= 0)
                 CMSetProperty(inst,
                               "VirtualQuantity",
                               (CMPIValue *)&count,




More information about the Libvirt-cim mailing list