os-cmpi-xen

changeset 101:e3a930759ffc

Fix conversion of processor RASD to xen_vm_record structure in VirtualSystemManagementService.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
author Jim Fehlig <jfehlig@novell.com>
date Thu Apr 19 16:00:52 2007 -0600 (2007-04-19)
parents 891f3ab3933b
children 1903faaf4d37
files ChangeLog src/Xen_VirtualSystemManagementService.c
line diff
     1.1 --- a/ChangeLog	Thu Apr 19 15:52:48 2007 -0600
     1.2 +++ b/ChangeLog	Thu Apr 19 16:00:52 2007 -0600
     1.3 @@ -1,3 +1,11 @@
     1.4 +-------------------------------------------------------------------
     1.5 +Thu Apr 19 15:57:27 MDT 2007 - jfehlig@novell.com
     1.6 +
     1.7 +        - Move providers to xen-unstable.  Patches provided by
     1.8 +          Raj Subrahmanian.
     1.9 +        - Fix conversion of processor RASD to xen_vm_record
    1.10 +          structure in VirtualSystemManagementService.
    1.11 +
    1.12  -------------------------------------------------------------------
    1.13  Thu Mar 29 16:05:05 MDT 2007 - jfehlig@novell.com
    1.14  
     2.1 --- a/src/Xen_VirtualSystemManagementService.c	Thu Apr 19 15:52:48 2007 -0600
     2.2 +++ b/src/Xen_VirtualSystemManagementService.c	Thu Apr 19 16:00:52 2007 -0600
     2.3 @@ -1808,15 +1808,11 @@ static int proc_rasd2vmconfig(CMPIInstan
     2.4         * TODO:
     2.5         * 1. Handle defaults if processors not specified.
     2.6         * 2. CPU weights and other scheduling parameters?
     2.7 -	
     2.8         */
     2.9 -   if (vm_rec->metrics->is_record)
    2.10 -	vm_rec->metrics->u.record->vcpus_number=propertyvalue.value.uint64;
    2.11 -   else	
    2.12 -	xen_vm_metrics_set_vcpus_number(session, propertyvalue.value.uint64, vm_rec->metrics->u.handle);	
    2.13 -    return 1;
    2.14 +      vm_rec->vcpus_at_startup = propertyvalue.value.uint64;
    2.15 +      return 1;
    2.16     }
    2.17 -
    2.18 +   
    2.19     return 0;
    2.20  }
    2.21