WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] vga passthrough xen 4.1.1 ubuntu 11.10 kernel 3.1.0-0301rc9-

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] vga passthrough xen 4.1.1 ubuntu 11.10 kernel 3.1.0-0301rc9-generic x86_64
From: Martin Wolf <mwolf@xxxxxxxxxxxxxx>
Date: Tue, 18 Oct 2011 23:33:05 +0200
Delivery-date: Tue, 18 Oct 2011 14:34:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
hello,

i hope i did not sent it twice since im not sure if the first one was posted.

okay now to the problem


im trying to get a vm with vga passthrough running but i get always this
error:  Error: pci: PCI Backend and pci-stub don't own device 0000:00:02.0

The PC contains an Intel DQ67SW mainboard (q67 chipset) and an i5-2400s.
according to xm dmesg | grep I/O
(XEN) I/O virtualisation enabled
 vt-d is active.

im using kernel 3.1.0-0301rc9-generic x86_64 with CONFIG_XEN_PCIDEV_BACKEND=m
and i loaded the module with following options in /etc/modprobe.d/xen-pciback
options xen-pciback passthrough=1
dmesg shows that with
[   15.566815] xen-pciback: backend is passthrough

and this is my config file for the vm:


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 = 6144

# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
shadow_memory = 32
name = "xenwin7"
vif = [ 'type=ioemu, bridge=virbr0' ]
acpi = 1
apic = 1
#disk = [ 'phy:/dev/sdb,hda,w' ]
#disk = [ 'phy:/dev/sdb,hda,w', 'phy:/dev/cdrom,hdc:cdrom.r' ]
#disk = [ 'file:/home/xen/xenwin7.img,hda,w', 'file:/home/xen/windows7.iso,hdc:$
disk = [ 'file:/home/martin/xenwin7.img,hda,w', 'phy:/dev/cdrom,hdc:cdrom,r' ]


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

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

serial='pty'
usbdevice='tablet'

gfx_passthru=1
pci=['00:02.0']

this is the lspci output of the videocard.

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
        Subsystem: Intel Corporation Device 2008
        Flags: bus master, fast devsel, latency 0, IRQ 307
        Memory at fe000000 (64-bit, non-prefetchable) [size=4M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at f000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: <access denied>
        Kernel driver in use: i915
        Kernel modules: i915


i really hope you can give me an idea where to continue.

best wishes and thanks in advance.
martin





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