lkml.org 
[lkml]   [2014]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectsnd_intel8x0_inside_vm()
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


\
 
 \ /
  Last update: 2014-02-19 05:21    [W:0.029 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site