Use WARN_ON_ONCE for missing X86_FEATURE_NRIPS
authorDirk Müller <dmueller@suse.com>
Thu, 1 Oct 2015 11:43:42 +0000 (13:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:37:49 +0000 (14:37 -0700)
commitfb7eff9cfdffc4cb2f3d75024bda6c2a56ab12e6
tree1c40a6a3e2f65c7544fc0c1d3fa955c1bd692712
parent9870892fc277debf23fd5f6bef2fef5ae77b97fb
Use WARN_ON_ONCE for missing X86_FEATURE_NRIPS

commit d2922422c48df93f3edff7d872ee4f3191fefb08 upstream.

The cpu feature flags are not ever going to change, so warning
everytime can cause a lot of kernel log spam
(in our case more than 10GB/hour).

The warning seems to only occur when nested virtualization is
enabled, so it's probably triggered by a KVM bug.  This is a
sensible and safe change anyway, and the KVM bug fix might not
be suitable for stable releases anyway.

Signed-off-by: Dirk Mueller <dmueller@suse.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/svm.c