<br><tt><font size=2>libvirt-cim-bounces@redhat.com wrote on 2008-10-30
23:56:15:<br>
<br>
> Guo Lian Yun wrote:<br>
> > <br>
> > +1 from me.<br>
> > <br>
> > I have a question of ModifySystemSettings() and ModifyResourceSettings().<br>
> > ModifySystemSettings() method modify the attributes of VSSD,
and <br>
> > ModifyResourceSettings()<br>
> > intends to modify RASD properties, right? <br>
> <br>
> The VSSD and RASD instances are just a way of representing the <br>
> properties of the guest.  So these functions really aren't modifying
the <br>
> VSSD or RASD instances themselves.<br>
> <br>
> > I have to pass both RASD and <br>
> > VSSD instances to<br>
> > DefineSystem() when I try to define a vs. Would you please explain
more <br>
> > about VSSD and RASD instance<br>
> > for me?<br>
> <br>
> The RASD describes the guest resources.  When you define a system,
you <br>
> pass a RASD for each resource you want the guest to have.  If
you want <br>
> it to have a disk, you pass in a DiskRASD.  Same thing for proc,
mem, <br>
> network, etc.<br>
> <br>
> The RASD is then used by the DefineSystem() call to determine what
<br>
> virtual resources to add to the guest. In the case of disk, the DiskRASD
<br>
> tells us the path to the disk we're adding.<br>
> <br>
> ModifyResourceSettings() works in a similar way.  If a guest
has a disk <br>
> with path /boot/myimage and we want to change it to /boot/not_myimage,
<br>
> we set the Address of the DiskRASD to "/boot/not_myimage"
and pass that <br>
> DiskRASD to ModifyResourceSettings().<br>
> <br>
> The VSSD is a similar concept, except that it describes the properties
<br>
> of the guest itself.  So, we set the VirtualSystemIdentifier
attribute <br>
> of the VSSD to give the guest a name. This is passed to the <br>
> DefineSystem() call, so the provider knows what kinds of settings
the <br>
> guest should have.<br>
> <br>
> ModifySystemSettings() is used to modify the guest's settings.</font></tt>
<br>
<br><tt><font size=2>  Thanks a lot - Kaitlin.</font></tt>
<br><tt><font size=2>  I'm so grateful for your clear explanation.</font></tt>
<br>
<br><tt><font size=2>  <br>
> <br>
> -- <br>
> Kaitlin Rupert<br>
> IBM Linux Technology Center<br>
> kaitlin@linux.vnet.ibm.com<br>
> <br>
> _______________________________________________<br>
> Libvirt-cim mailing list<br>
> Libvirt-cim@redhat.com<br>
> https://www.redhat.com/mailman/listinfo/libvirt-cim<br>
</font></tt>