snd_intel8x0_inside_vm()

From: H. Peter Anvin
Date: Tue Feb 18 2014 - 22:48:57 EST


I just stumbled upon the function snd_intel8x0_inside_vm(), and quite
frankly the code seems bizarre:

/* detect KVM and Parallels virtual environments */
result = kvm_para_available();
#ifdef X86_FEATURE_HYPERVISOR
result = result || boot_cpu_has(X86_FEATURE_HYPERVISOR);
#endif
if (!result)
goto fini;

Why don't we simply rely on the PCI SSIDs?

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/