From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754243AbbKLKdo (ORCPT ); Thu, 12 Nov 2015 05:33:44 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52282 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753565AbbKLKdm (ORCPT ); Thu, 12 Nov 2015 05:33:42 -0500 Subject: Re: Shut up unhandled MSR warnings To: Borislav Petkov References: <20151112101317.GA3649@pd.tnic> Cc: =?UTF-8?B?SsO2cmcgUsO2ZGVs?= , kvm ML , lkml From: Paolo Bonzini X-Enigmail-Draft-Status: N1110 Message-ID: <56446AFD.4030800@redhat.com> Date: Thu, 12 Nov 2015 11:33:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151112101317.GA3649@pd.tnic> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/11/2015 11:13, Borislav Petkov wrote: > Hey Paolo, > > do we apply stuff like that below? If we really need to, we do. > When booting guests all the time here, dmesg gets filled up with those > "unhandled rdmsr" useless warnings. The patch below shuts them up. > > The only problem is that the IC CFG MSR has those fields > defined starting from F15h and I don't see a way to check the > family/model/stepping of the guest CPU in kvm. Is there? Yes, see guest_cpuid_has_* for an example of reading the CPUID values. But if it's defined for _all_ models starting at family 21, we can just do it unconditionally. Paolo