This series does the generalization that we've spoken about recently Might be a good time to change the function names as well. Radim Krčmář (2): KVM: x86: generalize guest_cpuid_has_ helpers KVM: x86: use general helpers for some cpuid manipulation arch/x86/kvm/cpuid.h | 205 ++++++++++++++++++--------------------------------- arch/x86/kvm/mmu.c | 7 +- arch/x86/kvm/mtrr.c | 2 +- arch/x86/kvm/svm.c | 7 +- arch/x86/kvm/vmx.c | 33 ++++----- arch/x86/kvm/x86.c | 52 ++++++------- 6 files changed, 116 insertions(+), 190 deletions(-) -- 2.13.3