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

richardm at br.ibm.com richardm at br.ibm.com
Thu Dec 11 09:16:54 UTC 2008


+1

Best Regards,

Richard Maciel, MSc
Software Engineer - LTC Brazil
--------------------------
"'Would you tell me, please, which way I ought to go from here?'
'That depends a good deal on where you want to get to,'
'I don't know where. . .'
'Then it doesn't matter which way you go,' said the Cat. "
- Alice's Adventures in the Wonderland


libvirt-cim-bounces at redhat.com wrote on 10/12/2008 18:42:08:

> # 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,
> 
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20081211/d5d525d4/attachment.htm>


More information about the Libvirt-cim mailing list