Re: [RFC] x86 Host CPU features detection by MSRs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 09, 2025 at 09:53:40AM +0100, Daniel P. Berrangé via Devel wrote:
> On Wed, Jul 09, 2025 at 10:29:32AM +0200, Hector Cao wrote:
> > > >    3. if that fails too, load the msr module and try again;
> > >
> > > It seems like a modules-load file is simpler than having this manual
> > > kmod load + repeat.

Well, we can perform the load unconditionally too. I was concerned
that doing so would result in a failure on Fedora and other distros
that have msr built-in, but I just tried and it seems that modprobe
is smart enough to handle that scenario gracefully.

The other question is what to do if we can't read the msr
information. It seems that right now we report the incorrect CPU
model, which is obviously not ideal. Raising an error would probably
be better, but I'm not sure whether the APIs are really designed in a
way that makes that possible.

-- 
Andrea Bolognani / Red Hat / Virtualization




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux