Page MenuHomeFreeBSD

cloud: Add GCE VM Product Name to magic string detection list
Needs ReviewPublic

Authored by wac_gmail.com on Sun, Jan 11, 10:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 15, 1:41 AM
Unknown Object (File)
Wed, Jan 14, 9:12 PM
Unknown Object (File)
Mon, Jan 12, 8:16 AM
Unknown Object (File)
Mon, Jan 12, 4:28 AM
Unknown Object (File)
Mon, Jan 12, 2:06 AM
Unknown Object (File)
Sun, Jan 11, 8:13 PM

Details

Reviewers
andrew
Summary

Recognize "Google Compute Engine" in smbios system information product name as an indicator of KVM-based virtualization. Working hypervisor detection is necessary on GCE in order to apply PCI_QUIRK_ENABLE_MSI_VM.

Test Plan

Tested on c4a and c4 family VMs.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

This is a much more GCE specific change for hypervisor detection. Works on arm64 and amd64 VM types.

And how does a "-metal" (ie: Bare metal) Google Compute Engine behave with this patch?

Currently bare metal is not supported with FreeBSD on Google Compute Engine, but there are plans to support it soon. However, this change would indeed cause future bare metal instances to be incorrectly marked as using KVM-based virtualization. From some internal investigation, it is not immediately clear if there are consistent differences between virtualized versus bare metal instances in terms of info in the SMBIOS tables.

When I get a chance I'll fire up some bare metal vms and see what I get out of dmidecode. On vacation this week so it'll be a little bit.