]> git.proxmox.com Git - mirror_qemu.git/commit
target/ppc/spapr_caps: Add support for tristate spapr_capabilities
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Fri, 19 Jan 2018 05:00:01 +0000 (16:00 +1100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 6 Feb 2018 01:07:37 +0000 (19:07 -0600)
commite9a8747cd2fcfe783148132819b013d395178e66
treeb1e7d76663bac5c1d13b2f293aec03b9efb4ba51
parent49b1fa33a39c14bb1116507ea689454f8a052dcb
target/ppc/spapr_caps: Add support for tristate spapr_capabilities

spapr_caps are used to represent the level of support for various
capabilities related to the spapr machine type. Currently there is
only support for boolean capabilities.

Add support for tristate capabilities by implementing their get/set
functions. These capabilities can have the values 0, 1 or 2
corresponding to broken, workaround and fixed.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
(cherry picked from commit 6898aed77f4636c3e77af9c12631f583f22cb5db)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ppc/spapr_caps.c
include/hw/ppc/spapr.h