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

[Xen-devel] PCI tuners with XEN



Dear XEN Developers,

Sorry for my English. I would like to use my PCI TV tuners under Win XP virtual images (the specified tuner software works under windows only) on Ubuntu 8.04.3 with XEN 3.2.1-rc1. I got an error message, when I start the image.. In this message found your e-mail address. Maybe you will be found something useful for this e-mail.
I used Ubuntu original XEN packages. Maybe my motherboard not good for PCI passthrough (ASUS P5QL Pro /Intel P43 + ICH10/) or my CPU (Intel Core2 Quad Q9650 3GHz) not allowed this virtual functions.

Here are configuration parameters and some result messages:

/boot/grub/menu.lst
title           Xen 3.2 / Ubuntu 8.04.3 LTS, kernel 2.6.24-24-xen
root            (hd0,0)
kernel          /boot/xen-3.2.gz vtd=1 pci=nommconf dom0_mem=524288
module          /boot/vmlinuz-2.6.24-24-xen root=/dev/hda1 ro console=tty0 pciback.permissive pciback.hide=(00:1b.0)(05:00.0)(05:01.0)(05:02.0)
module          /boot/initrd.img-2.6.24-24-xen quiet

I would like the following PCI devices to use under winxp (from lspci):
00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller
05:00.0 Multimedia controller: Philips Semiconductors SAA7133/SAA7135 Video Broadcast Decoder (rev d0)
05:01.0 Multimedia controller: Philips Semiconductors SAA7133/SAA7135 Video Broadcast Decoder (rev d1)
05:02.0 Multimedia controller: Philips Semiconductors SAA7133/SAA7135 Video Broadcast Decoder (rev d1)

Xen DMESG message:
~# xm dmesg
 __  __            _____  ____    _             _
 \ \/ /___ _ __   |___ / |___ \  / |   _ __ ___/ |   _ __  _ __ ___
  \  // _ \ '_ \    |_ \   __) | | |__| '__/ __| |__| '_ \| '__/ _ \
  /  \  __/ | | |  ___) | / __/ _| |__| | | (__| |__| |_) | | |  __/
 /_/\_\___|_| |_| |____(_)_____(_)_|  |_|  \___|_|  | .__/|_|  \___|
                                                    |_|
(XEN) Xen version 3.2.1-rc1-pre (buildd@buildd) (gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4)) Sat Feb 21 03:01:02 UTC 2009
(XEN) Latest ChangeSet: unavailable
(XEN) Command line: vtd=1 pci=nommconf dom0_mem=524288
(XEN) Video information:
(XEN)  VGA is text mode 80x25, font 8x16
(XEN)  VBE/DDC methods: V2; EDID transfer time: 1 seconds
(XEN)  EDID info not retrieved because of reasons unknown
(XEN) Disc information:
(XEN)  Found 1 MBR signatures
(XEN)  Found 1 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN)  0000000000000000 - 000000000009cc00 (usable)
(XEN)  000000000009cc00 - 00000000000a0000 (reserved)
(XEN)  00000000000e4000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 00000000cff80000 (usable)
(XEN)  00000000cff80000 - 00000000cff8e000 (ACPI data)
(XEN)  00000000cff8e000 - 00000000cffd0000 (ACPI NVS)
(XEN)  00000000cffd0000 - 00000000d0000000 (reserved)
(XEN)  00000000fee00000 - 00000000fee01000 (reserved)
(XEN)  00000000fff00000 - 0000000100000000 (reserved)
(XEN)  0000000100000000 - 0000000130000000 (usable)
(XEN) System RAM: 4095MB (4193392kB)
(XEN) Xen heap: 14MB (14952kB)
(XEN) Domain heap initialised: DMA width 32 bits
(XEN) Processor #0 7:7 APIC version 20
(XEN) Processor #1 7:7 APIC version 20
(XEN) Processor #2 7:7 APIC version 20
(XEN) Processor #3 7:7 APIC version 20
(XEN) IOAPIC[0]: apic_id 4, version 32, address 0xfec00000, GSI 0-23
(XEN) Enabling APIC mode:  Flat.  Using 1 I/O APICs
(XEN) [VT-D]ACPI DMAR:No DMAR devices found
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 2997.118 MHz processor.
(XEN) HVM: VMX enabled
(XEN) CPU0: Intel(R) Core(TM)2 Quad CPU    Q9650  @ 3.00GHz stepping 0a
(XEN) Booting processor 1/1 eip 8c000
(XEN) CPU1: Intel(R) Core(TM)2 Quad CPU    Q9650  @ 3.00GHz stepping 0a
(XEN) Booting processor 2/2 eip 8c000
(XEN) CPU2: Intel(R) Core(TM)2 Quad CPU    Q9650  @ 3.00GHz stepping 0a
(XEN) Booting processor 3/3 eip 8c000
(XEN) CPU3: Intel(R) Core(TM)2 Quad CPU    Q9650  @ 3.00GHz stepping 0a
(XEN) Total of 4 processors activated.
(XEN) ENABLING IO-APIC IRQs
(XEN)  -> Using old ACK method
(XEN) Platform timer overflows in 14998 jiffies.
(XEN) Platform timer is 14.318MHz HPET
(XEN) Brought up 4 CPUs
(XEN) xenoprof: Initialization failed. Intel processor model 23 for P6 class family is not supported
(XEN) AMD IOMMU: Disabled
(XEN) *** LOADING DOMAIN 0 ***
(XEN)  Xen  kernel: 64-bit, lsb, compat32
(XEN)  Dom0 kernel: 64-bit, lsb, paddr 0xffffffff80200000 -> 0xffffffff806d68c8
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN)  Dom0 alloc.:   000000012a000000->000000012c000000 (122880 pages to be allocated)
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: ffffffff80200000->ffffffff806d68c8
(XEN)  Init. ramdisk: ffffffff806d7000->ffffffff81bb5e00
(XEN)  Phys-Mach map: ffffffff81bb6000->ffffffff81cb6000
(XEN)  Start info:    ffffffff81cb6000->ffffffff81cb64a4
(XEN)  Page tables:   ffffffff81cb7000->ffffffff81cca000
(XEN)  Boot stack:    ffffffff81cca000->ffffffff81ccb000
(XEN)  TOTAL:         ffffffff80000000->ffffffff82000000
(XEN)  ENTRY ADDRESS: ffffffff80200000
(XEN) Dom0 has maximum 4 VCPUs
(XEN) Initrd len 0x14dee00, start at 0xffffffff806d7000
(XEN) Scrubbing Free RAM: ...................................done.
(XEN) Xen trace buffers: disabled
(XEN) Std. Loglevel: Errors and warnings
(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen)
(XEN) Freed 100kB init memory.
(XEN) mtrr: type mismatch for d0000000,10000000 old: write-back new: write-combining

/sys/bus/pci/drivers/pciback/quirks I found the following:
05:02.0
        1131:7133:1043:4845
                00000004:2:00000000
                0000003c:1:00000000
                0000003d:1:00000000
                0000000c:1:00000000
                0000000d:1:00000000
                0000000f:1:00000000
                00000010:4:00000000
                00000014:4:00000000
                00000018:4:00000000
                0000001c:4:00000000
                00000020:4:00000000
                00000024:4:00000000
                00000030:4:00000000
                00000040:2:00000000
                00000042:2:00000000
                00000044:2:00000000
                00000046:1:00000000
                00000047:1:00000000
05:01.0
        1131:7133:1043:4876
                00000004:2:00000000
                0000003c:1:00000000
                0000003d:1:00000000
                0000000c:1:00000000
                0000000d:1:00000000
                0000000f:1:00000000
                00000010:4:00000000
                00000014:4:00000000
                00000018:4:00000000
                0000001c:4:00000000
                00000020:4:00000000
                00000024:4:00000000
                00000030:4:00000000
                00000040:2:00000000
                00000042:2:00000000
                00000044:2:00000000
                00000046:1:00000000
		00000047:1:00000000
05:00.0
        1131:7133:1043:4876
                00000004:2:00000000
                0000003c:1:00000000
                0000003d:1:00000000
                0000000c:1:00000000
                0000000d:1:00000000
                0000000f:1:00000000
                00000010:4:00000000
                00000014:4:00000000
                00000018:4:00000000
                0000001c:4:00000000
                00000020:4:00000000
                00000024:4:00000000
                00000030:4:00000000
                00000040:2:00000000
                00000042:2:00000000
                00000044:2:00000000
                00000046:1:00000000
                00000047:1:00000000
00:1b.0
        8086:3a3e:1043:82fe
                00000004:2:00000000
                0000003c:1:00000000
                0000003d:1:00000000
                0000000c:1:00000000
                0000000d:1:00000000
                0000000f:1:00000000
                00000010:4:00000000
                00000014:4:00000000
                00000018:4:00000000
                0000001c:4:00000000
                00000020:4:00000000
                00000024:4:00000000
                00000030:4:00000000
                00000050:2:00000000
                00000052:2:00000000
                00000054:2:00000000
                00000056:1:00000000
                00000057:1:00000000
My first test XEN image: winxp1.cfg (I would like to dedicate "05:00.0" PCI device for this image):
kernel = '/usr/lib/xen/boot/hvmloader'
device_model = '/usr/lib/xen/bin/qemu-dm'
builder = 'hvm'
memory = '786'
cpus = '2'
vcpus = '1'
name = 'winxp1'
disk = ['tap:aio:/xen/winxp1.img,hda,w','phy:/dev/scd0,hdc:cdrom,r']
dhcp = 'off'
vif = ['type=ioemu,ip=192.168.0.21,mac=00:16:3E:1A:2B:21,bridge=xenbr0,vifname=vif1.0']
netmask = '255.255.255.0'
gateway = '192.168.0.1'
hostname = 'winxp.localtest'
pci = ['05:00.0']
boot='c'
vnc=1
vncviewer=1
vncdisplay=0
sdl=0
Without "pci" directives the winxp image works well, but when I enabled the "pci = ['05:00.0']" row, I got an error message on create:
~# xm create winxp1.cfg
Using config file "/etc/xen/winxp1.cfg".
VNC= 1
Unexpected error: <type 'exceptions.OSError'>

Please report to xen-devel@xxxxxxxxxxxxxxxxxxx
Traceback (most recent call last):
  File "/usr/sbin/xm", line 10, in <module>
    main.main(sys.argv)
  File "/usr/lib/python2.5/site-packages/xen/xm/main.py", line 2535, in main
    _, rc = _run_cmd(cmd, cmd_name, args)
  File "/usr/lib/python2.5/site-packages/xen/xm/main.py", line 2559, in _run_cmd
    return True, cmd(args)
  File "<string>", line 1, in <lambda>
  File "/usr/lib/python2.5/site-packages/xen/xm/main.py", line 1309, in xm_importcommand
    cmd.main([command] + args)
  File "/usr/lib/python2.5/site-packages/xen/xm/create.py", line 1190, in main
    dom = make_domain(opts, config)
  File "/usr/lib/python2.5/site-packages/xen/xm/create.py", line 1053, in make_domain
    os.kill(vncpid, signal.SIGKILL)
OSError: [Errno 3] No such process

If you found something, I can do tests.

Regards,
William

_______________________________________________
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®.