Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156926866
D39140.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
593 B
Referenced Files
None
Subscribers
None
D39140.id.diff
View Options
diff --git a/sys/dev/smbios/smbios_subr.c b/sys/dev/smbios/smbios_subr.c
--- a/sys/dev/smbios/smbios_subr.c
+++ b/sys/dev/smbios/smbios_subr.c
@@ -69,6 +69,14 @@
char *p;
int i;
+ /*
+ * Some platforms, e.g., amd64, have other ways of detecting what kind
+ * of hypervisor we may be running under. Make sure we don't clobber a
+ * more specific vm_guest that's been previously detected.
+ */
+ if (vm_guest != VM_GUEST_NO && vm_guest != VM_GUEST_VM)
+ return;
+
/*
* XXX: Some of these entries may not be needed since they were
* added to FreeBSD before the checks above.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 18, 10:12 AM (3 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33211547
Default Alt Text
D39140.id.diff (593 B)
Attached To
Mode
D39140: x86: gate smbios hypervisor identification behind vm_guest
Attached
Detach File
Event Timeline
Log In to Comment