From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konstantin Ozerkov Subject: Re: Wierd hack to sound/pci/intel8x0.c Date: Mon, 7 Nov 2011 12:52:47 +0300 Message-ID: <4EB7AA6F.5000909@parallels.com> References: <4EB69EDA.5000901@redhat.com> <4EB6B285.9050509@parallels.com> <4EB7A404.3070902@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Cc: Takashi Iwai , Denis Lunev , Avi Kivity , "Denis V. Lunev (openvz)" , Linus Torvalds , "alsa-devel@alsa-project.org" , KVM list , qemu-devel To: Gerd Hoffmann Return-path: Received: from mx2.parallels.com ([64.131.90.16]:40543 "EHLO mx2.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752208Ab1KGJxC (ORCPT ); Mon, 7 Nov 2011 04:53:02 -0500 In-Reply-To: <4EB7A404.3070902@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 07.11.11 12:25, Gerd Hoffmann wrote: > Hi, > >> Agreed. If we can know the virtual device for KVM in a better way >> (e.g. any specific PCI SSID or such), we can narrow the condition more >> safely. > PCI Subsystem ID 1af4:1100 is qemu/kvm (not only Intel HDA, most other > emulated pci devices have it too). Complete entry: > > 00:04.0 0403: 8086:2668 (rev 01) > Subsystem: 1af4:1100 > Physical Slot: 4 > Flags: bus master, fast devsel, latency 0, IRQ 11 > Memory at e2030000 (32-bit, non-prefetchable) [size=16K] > Kernel driver in use: HDA Intel > Kernel modules: snd-hda-intel > > cheers, > Gerd We discuss Intel ICH/AC'97 (snd-intel8x0) here, but I hope that PCI SSID is same. From Parallels VM side we also have specific PCI SSID (1ab8:0400): 00:1f.4 Multimedia audio controller: Intel Corporation 82801BA/BAM AC'97 Audio Controller (rev 02) Subsystem: Device 1ab8:0400 Flags: bus master, medium devsel, latency 0, IRQ 17 I/O ports at ee00 [size=256] I/O ports at f000 [size=256] Kernel driver in use: Intel ICH Kernel modules: snd-intel8x0 Now we can make detection code more adequate. I will make patch today.