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)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 28 Oct 2015 02:13:08 +0000 (22:13 -0400)
commit1e4f2890f92a32b41fdae434cee45eb93d239ad4
treec773ab1ef31664b7b77477623e52c89241f8e83f
parent7cb9685d817e262c8dce4e3bd369f243bc6961f8
Use WARN_ON_ONCE for missing X86_FEATURE_NRIPS

[ Upstream commit d2922422c48df93f3edff7d872ee4f3191fefb08 ]

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.

Cc: stable@vger.kernel.org
Signed-off-by: Dirk Mueller <dmueller@suse.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/x86/kvm/svm.c