[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Re: Audio Controller Passthrough to Windows HVM Guest


  • To: "Han, Weidong" <weidong.han@xxxxxxxxx>
  • From: "Mr. Teo En Ming (Zhang Enming)" <space.time.universe@xxxxxxxxx>
  • Date: Sat, 24 Oct 2009 01:41:55 +0800
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, space.time.universe@xxxxxxxxx
  • Delivery-date: Fri, 23 Oct 2009 10:42:24 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=TLre2k3VsNmUMXgY+hKS/gq+be8Qvf+1rV1Cjw1qGNgrPhIK9w3taoQlgoyBMyBUza 3/yHKRK/16CN3MzBhEM0M752W3sH992g47pd/XDZw9XvnvAJUy6xVbC2gsC4VutgCuBi BG+dJdHjwkSAf8P20l9hSOWHcJlX6liFG23/U=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

This is my Windows XP Home HVM configuration:

#import os, re
#arch = os.uname()[4]
#if re.search('64', arch):
#    arch_libdir = 'lib64'
#else:
#    arch_libdir = 'lib'

kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 3072

# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
#shadow_memory = 8
name = "winxphome32"
vif = [ 'bridge=eth0' ]
acpi = 1
apic = 1
disk = [ 'phy:/dev/virtualmachines/winxphome32,hda,w',
'phy:/dev/sr0,hdc:cdrom,r' ]

#device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
#device_model = '/usr/' + 'lib' + '/xen/bin/qemu-dm'
device_model = 'qemu-dm'

#-----------------------------------------------------------------------------
# boot on floppy (a), hard disk (c) or CD-ROM (d)
# default: hard disk, cd-rom, floppy
boot="cd"
sdl=0
vnc=1
vnclisten="192.168.1.2"
vncdisplay=1
vncunused=1
vncconsole=0
vncpasswd=''

#serial='pty'
#usbdevice='tablet'
# onboard
#pci = [ '00:02.0' ]
# nVidia Geforce 8400 GS & firewire controller & HD audio controller
pci = [ '01:00.0','02:01.0','00:1b.0' ]
vcpus=2
# No passthrough
#gfx_passthru=0
# onboard
#gfx_passthru=1
# nvidia
gfx_passthru=2

# Can only pass through one usb device at a time
usb=1
# USB Unity Green Mouse
#usbdevice = 'host:1bcf:0007'
# USB A1pro Black Mouse
usbdevice = 'host:15d9:0a41'
# USB Keyboard
#usbdevice = 'host:0603:00f2'
# USB Sony IC Recorder
#usbdevice = 'host:054c:0271'
# USB Lexmark X1270 Color Printer
#usbdevice = 'host:043d:00ff'
# USB Lexmark X1270 Photo Scanner
#usbdevice = 'host:043d:007d'
# USB Lexmark X1270 Generic Hub
#usbdevice = 'host:043d:007a'

-- 
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical
Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: space.time.universe@xxxxxxxxx
MSN: teoenming@xxxxxxxxxxx
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore



On Fri, Oct 23, 2009 at 10:30 PM, Mr. Teo En Ming (Zhang Enming)
<space.time.universe@xxxxxxxxx> wrote:
> Hi,
>
> I have successfully passed through the HD audio controller on the
> Intel Desktop Board DQ45CB to Windows XP Home HVM guest.
>
> The reason it did not work earlier was because I had forgotten to
> specifiy the BDF of the audio controller in the Windows XP HVM
> configuration file. So the audio controller detection did not pop up
> in Windows.
>
> After specifying the BDF of the audio controller in the HVM config, I
> downloaded the SoundMAX audio driver from the official Intel website
> and installed it. After a reboot, I finally have sound in my Windows
> XP virtual machine.
>
> I will post more details later on.
>
> --
> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical
> Engineering)
> Alma Maters:
> (1) Singapore Polytechnic
> (2) National University of Singapore
> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
> Email: space.time.universe@xxxxxxxxx
> MSN: teoenming@xxxxxxxxxxx
> Mobile Phone: +65-9648-9798
> Street: Bedok Reservoir Road
> Republic of Singapore
>
>
>
> On Fri, Oct 23, 2009 at 7:18 AM, Han, Weidong <weidong.han@xxxxxxxxx> wrote:
>> I think it doesn't matter to use pciback or pci-stub to hide device. Seems 
>> we also tested it with pv-ops dom0. I can double check it.
>>
>> pls post the qemu log (/var/log/xen/qemu-dm-xxx.log) and output of 'xm 
>> demsg'.
>>
>> Regards,
>> Weidong
>>
>> Mr. Teo En Ming (Zhang Enming) wrote:
>>> 2.6.18 dom0 is conventional xen using pciback and not using pvops?
>>>
>>>
>>> On Thu, Oct 22, 2009 at 9:59 PM, Han, Weidong <weidong.han@xxxxxxxxx>
>>> wrote:
>>>> We successfully passed through audio controller to hvm guest before
>>>> (with 2.6.18 dom0), but we didn't try it for a while.
>>>>
>>>> Can you see any error messages in 'xm dmesg' or qemu log?
>>>>
>>>> Regards,
>>>> Weidong
>>>>
>>>> Mr. Teo En Ming (Zhang Enming) wrote:
>>>>> Hi
>>>>>
>>>>> Has anybody passed through audio controller to HVM guests before?
>>>>>
>>>>>
>>>>> On Wed, Oct 21, 2009 at 10:42 PM, Mr. Teo En Ming (Zhang Enming)
>>>>> <space.time.universe@xxxxxxxxx> wrote:
>>>>>> Hi
>>>>>>
>>>>>> I have tried to passthrough the HD audio controller on the Intel
>>>>>> DQ45CB motherboard using the following method but the audio device
>>>>>> did not show up in Win XP domU.
>>>>>>
>>>>>> Are the below commands correct and sufficient?
>>>>>>
>>>>>> echo "8086 3a6e" > /sys/bus/pci/drivers/pci-stub/new_id
>>>>>> echo "0000:00:1b.0" >
>>>>>> /sys/bus/pci/devices/0000:00:1b.0/driver/unbind echo
>>>>>> "0000:00:1b.0" > /sys/bus/pci/drivers/pci-stub/bind
>>>>>>
>>>>>> rmmod snd_hda_intel
>>>>>>
>>>>>> I am also trying to passthrough the nVidia GeForce 8400 GS PCI
>>>>>> Express x16 graphics card and Firewire controller to Win XP domU
>>>>>> at the same time.
>>>>>>
>>>>>> VGA passthrough was successful but firewire and audio controller
>>>>>> passthrough are not working.
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics)
>>>>>> BEng(Hons)(Mechanical Engineering) Alma Maters:
>>>>>> (1) Singapore Polytechnic
>>>>>> (2) National University of Singapore
>>>>>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
>>>>>> Email: space.time.universe@xxxxxxxxx
>>>>>> MSN: teoenming@xxxxxxxxxxx
>>>>>> Mobile Phone: +65-9648-9798
>>>>>> Street: Bedok Reservoir Road
>>>>>> Republic of Singapore
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Xen-devel mailing list
>>>>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>>>>> http://lists.xensource.com/xen-devel
>>
>>
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.