]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/ppc/kvm: Add cap_ppc_safe_[cache/bounds_check/indirect_branch]
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Fri, 19 Jan 2018 04:59:59 +0000 (15:59 +1100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 6 Feb 2018 01:07:37 +0000 (19:07 -0600)
commit49b1fa33a39c14bb1116507ea689454f8a052dcb
tree1fababe1bee82b7d020209b3b05b5f5bbd071c87
parent43a29f00257e8fce59bf3838b818817655f1d364
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>
(cherry picked from commit 8acc2ae5e91681ceda3ff4cf946ebf163f6012e9)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
include/hw/ppc/spapr.h
target/ppc/kvm.c
target/ppc/kvm_ppc.h