ALSA: intel8x0: improve virtual environment detection
authorKonstantin Ozerkov <kozerkov@parallels.com>
Wed, 9 Nov 2011 15:28:55 +0000 (19:28 +0400)
committerTakashi Iwai <tiwai@suse.de>
Wed, 9 Nov 2011 17:34:28 +0000 (18:34 +0100)
commit7fb4f392bd27e5b0e2444430d241370837bcc8fa
treea7488f66f50f8469919e78865a25a781b06547d0
parent65c397d6b58d5e401bee7c24608d3a33a220a63a
ALSA: intel8x0: improve virtual environment detection

Detection code improved by PCI SSID usage. VM optimization
now enabled only for known devcices (skip host devices forwarded
to VM by VT-d or same kind of technology).
For debug/troubleshooting purposes optimization can be
forced (on/off) by module parameter: "inside_vm" (boolean).

Known devices (PCI SSID):
1af4:1100: Reserved for KVM devices. Note this is not yet
           implemented for KVM's ICH/AC'97 emulation.
1ab8:xxxx: Parallels ICH/AC'97 emulated sound.

[ fixed a minor coding-style issue by tiwai]

Signed-off-by: Konstantin Ozerkov <kozerkov@parallels.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/intel8x0.c