Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1267874
| From | Borislav Petkov <bp@alien8.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: Shut up unhandled MSR warnings |
| Date | 2015-11-12 13:20 +0100 |
| Message-ID | <qtZ18-kl-9@gated-at.bofh.it> (permalink) |
| References | <qtX92-7C4-37@gated-at.bofh.it> <qtXsm-7Iy-9@gated-at.bofh.it> <qtXVo-87O-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Nov 12, 2015 at 11:59:58AM +0100, Borislav Petkov wrote:
> On Thu, Nov 12, 2015 at 11:33:33AM +0100, Paolo Bonzini wrote:
> > 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.
>
> The thing is, those bits are Reserved again on the next family 22. Lemme
> take a look at guest_cpuid_has_* and see how ugly it gets.
Ok, I see there's guest_cpuid_is_amd() but I'd need also family and model.
How about adding also
guest_cpuid_family(), guest_cpuid_model(), guest_cpuid_stepping()? Those
could be quite useful in other contexts maybe.
Or, I can do a single function which simply returns CPUID_1_EAX of the
guest vcpu and caller can then pick stuff apart...
Thoughts?
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Shut up unhandled MSR warnings Borislav Petkov <bp@alien8.de> - 2015-11-12 11:20 +0100
Re: Shut up unhandled MSR warnings Paolo Bonzini <pbonzini@redhat.com> - 2015-11-12 11:40 +0100
Re: Shut up unhandled MSR warnings Borislav Petkov <bp@alien8.de> - 2015-11-12 12:10 +0100
Re: Shut up unhandled MSR warnings Borislav Petkov <bp@alien8.de> - 2015-11-12 13:20 +0100
Re: Shut up unhandled MSR warnings Paolo Bonzini <pbonzini@redhat.com> - 2015-11-12 13:30 +0100
csiph-web