From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: snd_intel8x0_inside_vm() Date: Tue, 18 Feb 2014 19:48:11 -0800 Message-ID: <5304297B.8050201@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail.zytor.com (terminus.zytor.com [198.137.202.10]) by alsa0.perex.cz (Postfix) with ESMTP id 2EAF92652AA for ; Wed, 19 Feb 2014 04:48:24 +0100 (CET) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Konstantin Ozerkov , "Denis V. Lunev" , Takashi Iwai , Jaroslav Kysela , Linux Kernel Mailing List , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org 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