target/ppc/kvm: Add cap_ppc_safe_[cache/bounds_check/indirect_branch]
commit8acc2ae5e91681ceda3ff4cf946ebf163f6012e9
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Fri, 19 Jan 2018 04:59:59 +0000 (19 15:59 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 29 Jan 2018 03:24:55 +0000 (29 14:24 +1100)
tree72a795fd139dc1e7a77f8a6749eba02bb3373b0b
parent9cbe305b60cc49cfcd134765b85c28be95b1b57d
target/ppc/kvm: Add cap_ppc_safe_[cache/bounds_check/indirect_branch]

Add three new kvm capabilities used to represent the level of host support
for three corresponding workarounds.

Host support for each of the capabilities is queried through the
new ioctl KVM_PPC_GET_CPU_CHAR which returns four uint64 quantities. The
first two, character and behaviour, represent the available
characteristics of the cpu and the behaviour of the cpu respectively.
The second two, c_mask and b_mask, represent the mask of known bits for
the character and beheviour dwords respectively.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
[dwg: Correct some compile errors due to name change in final kernel
 patch version]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
include/hw/ppc/spapr.h
target/ppc/kvm.c
target/ppc/kvm_ppc.h