Messages in this thread | | | Subject | Re: Shut up unhandled MSR warnings | From | Paolo Bonzini <> | Date | Thu, 12 Nov 2015 11:33:33 +0100 |
| |
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
| |