ppc/spapr-caps: Add support for custom spapr_capabilities
commit87175d1bc5272fff5cffb05c410b39f839dfc948
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Thu, 1 Mar 2018 06:37:59 +0000 (1 17:37 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 6 Mar 2018 02:16:29 +0000 (6 13:16 +1100)
tree6ed3acda9f3268d8bc0ff2ccafe49dd36beebafb
parentcb931c2108a59db0b4a22f0c439ee7362c4f95ab
ppc/spapr-caps: Add support for custom spapr_capabilities

There are currently 2 implemented types of spapr-caps, boolean and
tristate. However there may be a need for caps which don't fit either of
these options. Add a custom capability type for which a list of custom
valid strings can be specified and implement the get/set functions for
these. Also add a field for help text to describe the available options.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
[dwg: Change "help" option to "?" matching qemu conventions]
[dwg: Add ATTRIBUTE_UNUSED to avoid breaking bisect]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_caps.c