KVM: x86: add pcommit support
[deliverable/linux.git] / arch / x86 / kvm / cpuid.h
index dd05b9cef6ae332d42ebee6c2cb41554e8eef632..aed7bfeeaf0d63f1e18243a4b988829eebaf63fc 100644 (file)
@@ -133,4 +133,12 @@ static inline bool guest_cpuid_has_mpx(struct kvm_vcpu *vcpu)
        best = kvm_find_cpuid_entry(vcpu, 7, 0);
        return best && (best->ebx & bit(X86_FEATURE_MPX));
 }
+
+static inline bool guest_cpuid_has_pcommit(struct kvm_vcpu *vcpu)
+{
+       struct kvm_cpuid_entry2 *best;
+
+       best = kvm_find_cpuid_entry(vcpu, 7, 0);
+       return best && (best->ebx & bit(X86_FEATURE_PCOMMIT));
+}
 #endif
This page took 0.024896 seconds and 5 git commands to generate.