KVM: PPC: Introduce KVM_CAP_PPC_HTM
authorSam Bobroff <sam.bobroff@au1.ibm.com>
Wed, 20 Jul 2016 03:41:36 +0000 (13:41 +1000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Aug 2016 17:42:06 +0000 (19:42 +0200)
commit23528bb21ee2c9b27f3feddd77a2a3351a8df148
treeeb17f1c15fa51cc04a606cd79658c806637eaddb
parent40a2df49858eb40ccfe979da69b74d8b203a869b
KVM: PPC: Introduce KVM_CAP_PPC_HTM

Introduce a new KVM capability, KVM_CAP_PPC_HTM, that can be queried to
determine if a PowerPC KVM guest should use HTM (Hardware Transactional
Memory).

This will be used by QEMU to populate the pa-features bits in the
guest's device tree.

Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/powerpc/kvm/powerpc.c
include/uapi/linux/kvm.h