Thread (6 messages) flat view 6 messages, 4 authors, 2016-07-19

Re: [1/1] KVM: PPC: Introduce KVM_CAP_PPC_HTM

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2016-07-08 10:49:50
Also in: kvm, qemu-devel

On Wed, 2016-06-07 at 06:05:54 UTC, Sam bobroff wrote:
quoted hunk ↗ jump to hunk
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
index 02416fe..06d79bc 100644
--- a/arch/powerpc/kvm/powerpc.c
+++ b/arch/powerpc/kvm/powerpc.c
@@ -588,6 +588,10 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
 		r = 1;
 		break;
 #endif
+	case KVM_CAP_PPC_HTM:
+		r = cpu_has_feature(CPU_FTR_TM)
+		    && is_kvmppc_hv_enabled(kvm);
I think it should be using CPU_FTR_TM_COMP.

And AFAICS you don't need to break that line.

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help