summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorRadim Krčmář2017-08-05 00:12:49 +0200
committerPaolo Bonzini2017-08-07 16:11:50 +0200
commitd6321d493319bfd406c484e8359c6101cbda39d3 (patch)
tree97b80d5e78b3b5490e377942ca0fbe43bf65a21f /arch/powerpc
parentKVM: x86: X86_FEATURE_NRIPS is not scattered anymore (diff)
downloadkernel-qcow2-linux-d6321d493319bfd406c484e8359c6101cbda39d3.tar.gz
kernel-qcow2-linux-d6321d493319bfd406c484e8359c6101cbda39d3.tar.xz
kernel-qcow2-linux-d6321d493319bfd406c484e8359c6101cbda39d3.zip
KVM: x86: generalize guest_cpuid_has_ helpers
This patch turns guest_cpuid_has_XYZ(cpuid) into guest_cpuid_has(cpuid, X86_FEATURE_XYZ), which gets rid of many very similar helpers. When seeing a X86_FEATURE_*, we can know which cpuid it belongs to, but this information isn't in common code, so we recreate it for KVM. Add some BUILD_BUG_ONs to make sure that it runs nicely. Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/powerpc')
0 files changed, 0 insertions, 0 deletions