On 7/14/21 4:37 PM, Stephen Morris wrote:
On 14/7/21 22:43, Ed Greshko wrote:
On 14/07/2021 20:30, Patrick O'Callaghan wrote:
On Wed, 2021-07-14 at 21:34 +1000, Stephen Morris wrote:
The OS in the VM can't see any of the hardware on the host system
unless the VM specifically passes it through. Normally, all
"hardware" in the VM is virtual. qemu has an option to add a TPM
by
either creating a virtual one or passing the hardware one through.
I
have no idea about vmware or virtualbox.
I thought that if the tpm is in the cpu as the bios in my motherboard
is
indicating, whether the vm supported adding the hardware tpm as a
device
or not, because the vm has access to the cpu, the tpm would then be
automatically available to the vm.
None of your hardware is automatically available. The virtual CPU may
not even be the same as the real one.
That's for sure. My VM's think they have Intel i7 CPU's while my host
system is actually
i5.
If I look at /proc/cpuinfo and it lists the 4 cpu's I've given to the vm
as being the same name as the physical cpu and that it is an 8 core cpu
in the modelname section and in the vendorid section is says it is an
AuthenticAMD, isn't that telling me the vm is seeing the physical cpu?
Not really. It depends on the VM system, but at least for some, the
default is to pass the real CPU's cpuid into the VM's "CPU". The
virtual OS is running on the physical CPU (emulation is *SLOW*), but the
bits that identify the CPU are special instructions. These are
intercepted by the VM and adjusted to give the answers you want. I
suspect that the actual extended instructions (like AVX, SSEx, or
whatever) would still be usable even if the cpuid was adjusted to
exclude them.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure