<br><font size=2 face="sans-serif">+1 .</font>
<br>
<br><font size=2 face="sans-serif">Best,<br>
Regards<br>
<br>
Daisy (Ô˹úÁ«)<br>
VSM Team, China Systems & Technology Labs (CSTL)<br>
E-mail: yunguol@cn.ibm.com<br>
TEL: (86)-21-60922403<br>
Building 10, 399 Ke Yuan Rd, Pudong Shanghai, 201203<br>
</font>
<br>
<br><tt><font size=2>libvirt-cim-bounces@redhat.com wrote on 2009-02-26
06:04:10:<br>
<br>
> # HG changeset patch<br>
> # User Kaitlin Rupert <karupert@us.ibm.com><br>
> # Date 1235598357 28800<br>
> # Node ID 480583d078d980eccef14553b7ff8755aaed75ba<br>
> # Parent  a8e06182465825ccc61675ffddfff329343eda0e<br>
> Fix ResourceAllocation profile definition in profiles.h<br>
> <br>
> Since KVM_ResourcePool, Xen_ResourcePool, etc doesn't exist, the Resource<br>
> Allocation Profile needs to point to the specific pool (DiskPool,
etc).<br>
> <br>
> This is similar to how the Generic Device Resource Virtualization
profile is<br>
> handled.<br>
> <br>
> Sample query:<br>
> <br>
> wbemcli ain -ac KVM_ElementConformsToProfile 'http://localhost:<br>
> 5988/root/interop:KVM_RegisteredProfile.InstanceID="CIM:DSP1041-<br>
> ResourceAllocation-1.1.0c_p"'<br>
> <br>
> elm3b41/root/virt:KVM_ProcessorPool.InstanceID="ProcessorPool/0"<br>
> <br>
> Signed-off-by: Kaitlin Rupert <karupert@us.ibm.com><br>
> <br>
> diff -r a8e061824658 -r 480583d078d9 src/profiles.h<br>
> --- a/src/profiles.h   Wed Feb 25 13:06:01 2009 -0800<br>
> +++ b/src/profiles.h   Wed Feb 25 13:45:57 2009 -0800<br>
> @@ -124,13 +124,43 @@<br>
>          .scoping_profile = &SystemVirtualization<br>
>  };<br>
>  <br>
> -struct reg_prof ResourceAllocation = {<br>
> +struct reg_prof ResourceAllocation_Disk = {<br>
>          .reg_org = 2,<br>
> -        .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c",<br>
> +        .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_d",<br>
>          .reg_name = "Resource Allocation",<br>
>          .reg_version = "1.1.0c",<br>
>          .scoping_class = "ComputerSystem",<br>
> -        .central_class = "ResourcePool",<br>
> +        .central_class = "DiskPool",<br>
> +        .scoping_profile = &SystemVirtualization<br>
> +};<br>
> +<br>
> +struct reg_prof ResourceAllocation_Net = {<br>
> +        .reg_org = 2,<br>
> +        .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_n",<br>
> +        .reg_name = "Resource Allocation",<br>
> +        .reg_version = "1.1.0c",<br>
> +        .scoping_class = "ComputerSystem",<br>
> +        .central_class = "NetworkPool",<br>
> +        .scoping_profile = &SystemVirtualization<br>
> +};<br>
> +<br>
> +struct reg_prof ResourceAllocation_Proc = {<br>
> +        .reg_org = 2,<br>
> +        .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_p",<br>
> +        .reg_name = "Resource Allocation",<br>
> +        .reg_version = "1.1.0c",<br>
> +        .scoping_class = "ComputerSystem",<br>
> +        .central_class = "ProcessorPool",<br>
> +        .scoping_profile = &SystemVirtualization<br>
> +};<br>
> +<br>
> +struct reg_prof ResourceAllocation_Mem = {<br>
> +        .reg_org = 2,<br>
> +        .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_m",<br>
> +        .reg_name = "Resource Allocation",<br>
> +        .reg_version = "1.1.0c",<br>
> +        .scoping_class = "ComputerSystem",<br>
> +        .central_class = "MemoryPool",<br>
>          .scoping_profile = &SystemVirtualization<br>
>  };<br>
>  <br>
> @@ -145,7 +175,10 @@<br>
>          &VirtualSystemMigration,<br>
>          &KVMRedirection,<br>
>          &AllocationCapabilities,<br>
> -        &ResourceAllocation,<br>
> +        &ResourceAllocation_Disk,<br>
> +        &ResourceAllocation_Net,<br>
> +        &ResourceAllocation_Proc,<br>
> +        &ResourceAllocation_Mem,<br>
>          NULL<br>
>  };<br>
>  <br>
> <br>
> _______________________________________________<br>
> Libvirt-cim mailing list<br>
> Libvirt-cim@redhat.com<br>
> https://www.redhat.com/mailman/listinfo/libvirt-cim<br>
</font></tt>