D
D
donater472020-02-10 23:40:22
linux
donater47, 2020-02-10 23:40:22

Where does libvirt/qemu get CPU information from?

Interested in where Libvirt / qemu get information about the name of the processor, and how it can be replaced. It is necessary because I took the Intel confidential processor from Ali and many do not like this derivation of the name.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Melkij, 2020-02-10
@melkij

From man qemu-cpu-models
Accordingly, replace the use of Host passthrough with some suitable model from the list.

K
Karpion, 2020-02-10
@Karpion

For different companies (Intel, AMD) and for different generations, the ways of finding out the exact brand of the processor varied. Up to the fact that the exact brand of the processor had to be determined by indirect signs such as the length of the pipeline, determined experimentally by a self-modifying program (EMNIP - it ended on the Pentium).
For modern processors, most likely, PnP is used, which gives the code (number) of the manufacturer and device. And then - in the program d.b. a table that contains the human-readable names of each processor brand.
You can check this by looking at the source codes of the programs you specified. If there is a file with names, then I'm right.
PS: And who exactly and why " such a derivation of the name does not suit "?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question