On Mon, 2012-11-19 at 19:33 +0200, Florin Ardelian wrote:
> I have defined a single hardware profile with cpu (1..48) and memory
> (256..192*1024). What feature should I enable in my class so the user can
> select the number of CPUs and the amount of RAM he wants?

There's no special feature that needs to be set - if your HWP's
advertise ranges or enums for certain parameters, clients know they can
override these when they create an instance. You will have to have code
in the create_instance method of your driver to make sure you process
those overrides.

Have a look at create_instance in the mock driver to see the details;
the most interesting bit for this is the InstanceProfile that gets
created. An InstanceProfile is a HWP + any changes the user made for
that specific instance.

David


Reply via email to