Skip to contentSkip to conversation

Xen primary VGA pass through problems

DISCUSSION Ferdinand Nölscher 2 participants 2 messages Oct 14, 2012

lore
Share & tools
lore
#0 lore raw

Hi!

Recently, I tried setting up VGA pass through with my machine. The set up is as follows:
I have two AMD vga adapters - I want to pass through the second one.

I compiled xen 4.2 from source and set everything up.
Attached to this message, you can find my windows 7 domU configuration file.

Whenever I want to pass through the device, I use "xl pci-assignable-add BDF" to unbind the adapter, before I create the domU. Pciback is loaded as module and is not compiled statically in the kernel.

Unless I do not specify "gfx_passthru = 1" in my configuration file, this works fine. The vga adapter gets detected and I can use it as secondary vga, with very limited performance. If I do set "gfx_passthru = 1" the domU doesnt boot at all. It just switches state from "r" (for running) to "-----" (which is nothing, i guess?) every few seconds. I can't find anything in the logs indicating an error.

Any ideas on how to fix that?

kind regards,
Ferdinand

kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 3096
vcpus=6

shadow_memory = 8
name = "xenwin7"

vif = [ 'ip=10.0.0.2 bridge=xenbr0' ]
dhcp = "off"

acpi = 1
apic = 1
disk = [ 'file:/home/user/vms/windows7/xenwin7.img,hda,w' ]

device_model = '/usr/lib/xen/bin/qemu-dm'

boot="cd"
sdl=0
vnc=0
# vncpasswd='1234'

# vncdisplay = 1

serial='pty'
usbdevice='tablet'

# vga pass-through stuff
gfx_passthru=0
pci = [ '02:00.0', '02:00.1' ]
pci_msitranslate = 1
pci_power_mgmt = 1

acpi_s3 = 1
acpi_s4 = 1

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw

Am Sonntag 14 Oktober 2012, 12:09:14 schrieb Ferdinand Nölscher:

Quoted 22 lines

Hi!

Recently, I tried setting up VGA pass through with my machine. The set up is as follows:
I have two AMD vga adapters - I want to pass through the second one.

I compiled xen 4.2 from source and set everything up. Attached to this message, you can find my windows 7 domU configuration file.

Whenever I want to pass through the device, I use "xl pci-assignable-add BDF" to unbind the adapter, before I create the domU. Pciback is loaded as module and is not compiled statically in the kernel.

Unless I do not specify "gfx_passthru = 1" in my configuration file, this works fine. The vga adapter gets detected and I can use it as secondary vga, with very limited performance.
If I do set "gfx_passthru = 1" the domU doesnt boot at all. It just switches state from "r" (for running) to "-----" (which is nothing, i guess?) every few seconds. I can't find anything in the logs indicating an error.

Quoted 4 lines

Any ideas on how to fix that?

kind regards,
Ferdinand

Hi Ferdinand,

can you try with gfx_passthru = 0 and eject the device after booting domu? the secondary amd should show up within the devicemanager icon in the taskbar, there you can eject it.

Here this trick helps for the poor performance problem - although this only shows up after a domU reboot - performance is fine until the first domu reboot here, so i wonder if this tricks helps with our scenario...

Greetings
Tobias