KVM: x86: Add return value to kvm_cpuid().
Return false in kvm_cpuid() when it fails to find the cpuid entry. Also, this routine(and its caller) is optimized with a new argument - check_limit, so that the check_cpuid_limit() fall back can be avoided. Signed-off-by:Yu Zhang <yu.c.zhang@linux.intel.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- arch/x86/include/asm/kvm_emulate.h 2 additions, 2 deletionsarch/x86/include/asm/kvm_emulate.h
- arch/x86/kvm/cpuid.c 13 additions, 4 deletionsarch/x86/kvm/cpuid.c
- arch/x86/kvm/cpuid.h 2 additions, 1 deletionarch/x86/kvm/cpuid.h
- arch/x86/kvm/emulate.c 6 additions, 6 deletionsarch/x86/kvm/emulate.c
- arch/x86/kvm/svm.c 1 addition, 1 deletionarch/x86/kvm/svm.c
- arch/x86/kvm/trace.h 7 additions, 4 deletionsarch/x86/kvm/trace.h
- arch/x86/kvm/x86.c 3 additions, 3 deletionsarch/x86/kvm/x86.c
Please register or sign in to comment