wrote on 2008-10-30 23:56:15:

> Guo Lian Yun wrote:
> >
> > +1 from me.
> >
> > I have a question of ModifySystemSettings() and ModifyResourceSettings().
> > ModifySystemSettings() method modify the attributes of VSSD, and
> > ModifyResourceSettings()
> > intends to modify RASD properties, right?
> The VSSD and RASD instances are just a way of representing the
> properties of the guest.  So these functions really aren't modifying the
> VSSD or RASD instances themselves.
> > I have to pass both RASD and
> > VSSD instances to
> > DefineSystem() when I try to define a vs. Would you please explain more
> > about VSSD and RASD instance
> > for me?
> The RASD describes the guest resources.  When you define a system, you
> pass a RASD for each resource you want the guest to have.  If you want
> it to have a disk, you pass in a DiskRASD.  Same thing for proc, mem,
> network, etc.
> The RASD is then used by the DefineSystem() call to determine what
> virtual resources to add to the guest. In the case of disk, the DiskRASD
> tells us the path to the disk we're adding.
> ModifyResourceSettings() works in a similar way.  If a guest has a disk
> with path /boot/myimage and we want to change it to /boot/not_myimage,
> we set the Address of the DiskRASD to "/boot/not_myimage" and pass that
> DiskRASD to ModifyResourceSettings().
> The VSSD is a similar concept, except that it describes the properties
> of the guest itself.  So, we set the VirtualSystemIdentifier attribute
> of the VSSD to give the guest a name. This is passed to the
> DefineSystem() call, so the provider knows what kinds of settings the
> guest should have.
> ModifySystemSettings() is used to modify the guest's settings.

  Thanks a lot - Kaitlin.
  I'm so grateful for your clear explanation.

> --
> Kaitlin Rupert
> IBM Linux Technology Center
> _______________________________________________
> Libvirt-cim mailing list