x86: vmware: look for DMI string in the product serial key
authorAlok Kataria <akataria@vmware.com>
Mon, 3 Nov 2008 23:50:38 +0000 (15:50 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 4 Nov 2008 21:59:00 +0000 (13:59 -0800)
commitfd8cd7e1919fc1c27fe2fdccd2a1cd32f791ef0f
treeb2b1482133a10f8de3d8c85a1a291fd93ead4b2c
parent6bdbfe99916398dbb28d83833cc04757110f2738
x86: vmware: look for DMI string in the product serial key

Impact: Should permit VMware detection on older platforms where the
vendor is changed.  Could theoretically cause a regression if some
weird serial number scheme contains the string "VMware" by pure
chance.  Seems unlikely, especially with the mixed case.

In some user configured cases, VMware may choose not to put a VMware specific
DMI string, but the product serial key is always there and is VMware specific.
Add a interface to check the serial key, when checking for VMware in the DMI
information.

Signed-off-by: Alok N Kataria <akataria@vmware.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/cpu/vmware.c
drivers/firmware/dmi_scan.c
include/linux/dmi.h