diff options
author | Suraj Jitindar Singh | 2018-01-19 06:00:01 +0100 |
---|---|---|
committer | David Gibson | 2018-01-29 04:24:55 +0100 |
commit | 6898aed77f4636c3e77af9c12631f583f22cb5db (patch) | |
tree | 3e0c433b4e735218e5ac47d03c9f6c9a6b7f42c8 /include | |
parent | target/ppc/kvm: Add cap_ppc_safe_[cache/bounds_check/indirect_branch] (diff) | |
download | qemu-6898aed77f4636c3e77af9c12631f583f22cb5db.tar.gz qemu-6898aed77f4636c3e77af9c12631f583f22cb5db.tar.xz qemu-6898aed77f4636c3e77af9c12631f583f22cb5db.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/ppc/spapr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h index eded0ea57d..61bb3632c4 100644 --- a/include/hw/ppc/spapr.h +++ b/include/hw/ppc/spapr.h @@ -69,6 +69,10 @@ typedef enum { /* Bool Caps */ #define SPAPR_CAP_OFF 0x00 #define SPAPR_CAP_ON 0x01 +/* Broken | Workaround | Fixed Caps */ +#define SPAPR_CAP_BROKEN 0x00 +#define SPAPR_CAP_WORKAROUND 0x01 +#define SPAPR_CAP_FIXED 0x02 typedef struct sPAPRCapabilities sPAPRCapabilities; struct sPAPRCapabilities { |