xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* VGA passthough still not working
@ 2012-01-20 13:05 Sandi Romih
  2012-01-20 15:47 ` Pasi Kärkkäinen
  0 siblings, 1 reply; 63+ messages in thread
From: Sandi Romih @ 2012-01-20 13:05 UTC (permalink / raw)
  To: xen-devel, xen-users


[-- Attachment #1.1: Type: text/plain, Size: 6412 bytes --]

Hello,

I have spent a lot of time trying to get gfx passthru working on my system
without success.

I looked onto my hardware capabilities again to make sure that it does
support VT-d and I am not too sure that it does fully.

My hardware is as follows:
- Supermicro X8DTH-6F motherboard (5520 chipset which supports VT-d)
- single Xeon X5650 CPU (which is listed as supporting VT-x, no mention of
VT-d at ark.intel.com)

Now, according to the VTdHowTo <http://wiki.xen.org/wiki/VTdHowTo>, the
motherboard BIOS, chipset AND CPU need to support VT-d.
What confuses me is, why is the 55x0 chipset listed there if none of the
CPU's supported, that I know of, dont have the VT-d feature option, only
VT-x.

Browsing around a bit, I read that the VT-d is a memory related feature
which was included in the chipsets because memory was interfaced via the
chipset, but now-a-days when the memory controller is in the CPU, VT-d
should be in the CPU. Why does the 5520 chipset support VT-d and the X5650
not?

Could anyone who has experience with a similar platform to mine (5520
chipset and Xeon CPU) please share their experiences with PCI passthu and
gfx passthru.

My setup quickly:
- onboard VGA (primary) used by dom0 (Debian with the 3.1.9 kernel)
- EVGA GTX 480 (secondary) passed thru to domU (Windows)

The only errors that I see are:

cat /var/log/xen/qemu-dm-winxp.log |grep -i er
xs_read(/local/domain/0/device-model/2/xen_extended_power_mgmt): read error
xs_read(): vncpasswd get error.
/vm/d04a58cf-037a-4219-80a1-73abe49b81ab/vncpasswd.
vcpu-set: watch node error.
xs_read(/local/domain/2/log-throttling): read error
pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No
such file or directory: 0x3:0x0.0x0
pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No
such file or directory: 0x3:0x0.0x1

I cant find much info about this error...

cat /var/log/xen/xl-winxp.log
Waiting for domain winxp (domid 1) to die [pid 3038]
Domain 1 is dead
Action for shutdown reason code 3 is restart
Domain 1 needs to be cleaned up: destroying the domain
libxl: error: libxl_pci.c:776:libxl__device_pci_reset: The kernel doesn't
support reset from sysfs for PCI device 0000:03:00.0
libxl: error: libxl_pci.c:776:libxl__device_pci_reset: The kernel doesn't
support reset from sysfs for PCI device 0000:03:00.1
Done. Rebooting now
xc: info: VIRTUAL MEMORY ARRANGEMENT:
  Loader:        0000000000100000->0000000000182bb4
  TOTAL:         0000000000000000->000000003f800000
  ENTRY ADDRESS: 0000000000100000
xc: info: PHYSICAL MEMORY ALLOCATION:
  4KB PAGES: 0x0000000000000200
  2MB PAGES: 0x00000000000001fb
  1GB PAGES: 0x0000000000000000
libxl: error: libxl_pci.c:776:libxl__device_pci_reset: The kernel doesn't
support reset from sysfs for PCI device 0000:03:00.0
libxl: error: libxl_pci.c:776:libxl__device_pci_reset: The kernel doesn't
support reset from sysfs for PCI device 0000:03:00.1
Waiting for domain winxp (domid 2) to die [pid 3038]

dmesg |grep 03:00
[    0.000000] Command line: placeholder
root=UUID=d5f5207b-d2aa-4f19-b51d-bc2c727b9e8f ro nomodeset
xen-pciback.passthrough=1 xen-pciback.permissive
xen-pciback.hide=(03:00.0)(03:00.1) quiet
[    5.948984] Kernel command line: placeholder
root=UUID=d5f5207b-d2aa-4f19-b51d-bc2c727b9e8f ro nomodeset
xen-pciback.passthrough=1 xen-pciback.permissive
xen-pciback.hide=(03:00.0)(03:00.1) quiet
[    6.152642] pci 0000:03:00.0: [10de:06c0] type 0 class 0x000300
[    6.152663] pci 0000:03:00.0: reg 10: [mem 0xf8000000-0xf9ffffff]
[    6.152685] pci 0000:03:00.0: reg 14: [mem 0xd8000000-0xdfffffff 64bit
pref]
[    6.152707] pci 0000:03:00.0: reg 1c: [mem 0xd4000000-0xd7ffffff 64bit
pref]
[    6.152723] pci 0000:03:00.0: reg 24: [io  0xdc00-0xdc7f]
[    6.152738] pci 0000:03:00.0: reg 30: [mem 0xfae80000-0xfaefffff pref]
[    6.152831] pci 0000:03:00.1: [10de:0be5] type 0 class 0x000403
[    6.152851] pci 0000:03:00.1: reg 10: [mem 0xfae7c000-0xfae7ffff]
[    6.222176] vgaarb: device added:
PCI:0000:03:00.0,decodes=io+mem,owns=none,locks=none
[    6.222205] vgaarb: bridge control possible 0000:03:00.0
[    6.276478] pciback 0000:03:00.0: seizing device
[    6.276483] pciback 0000:03:00.1: seizing device
[    6.549901] pciback 0000:03:00.0: Signaling PME through PCIe PME
interrupt
[    6.549903] pciback 0000:03:00.1: Signaling PME through PCIe PME
interrupt
[    6.550408] pciback 0000:03:00.1: PCI INT B -> GSI 25 (level, low) ->
IRQ 25
[    6.550417] pciback 0000:03:00.1: PCI INT B disabled
[    6.550454] pciback 0000:03:00.0: enabling device (0146 -> 0147)
[    6.550470] pciback 0000:03:00.0: PCI INT A -> GSI 26 (level, low) ->
IRQ 26
[    6.550477] pciback 0000:03:00.0: PCI INT A disabled
[12048.241890] pciback 0000:03:00.0: device has been assigned to another
domain! Over-writting the ownership, but beware.
[12048.243009] pciback 0000:03:00.1: device has been assigned to another
domain! Over-writting the ownership, but beware.

PCI device 03:00.x is the GTX 480.

xl list
Name                                        ID   Mem VCPUs State Time(s)
Domain-0                                     0  1024    12     r-----
 1507.2
winxp                                        2  1015     1     r-----
212.2


When I create the winxp domain, my primary graphics goes blank...
(This confuses me the most).


And lastly, my xen cfg file...

cat /xen-vms/xenwinxp.cfg
kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory =1024
# shadow_memory = 1024
name = "winxp"
vcpus='1'
# vif = [ 'bridge=eth0,mac=00:14:3e:00:8f:c2' ]
# disk =
['file:/xen-vms/winxp/xenwinxp.img,hda,w','file:/xen-vms/isos/winxp.iso,hdc:cdrom,r']
disk = ['file:/xen-vms/winxp/xenwinxp.img,hda,w','phy:/dev/sr0,hdc:cdrom,r']
boot="cd"
sdl=0
# vnc=1
# vnclisten="0.0.0.0"
# vncconsole=1
# vncpasswd=''
acpi=1
apic=1
xen_extended_power_mgmt=1
pae=1
arch='x86_64'
hpet = 1
hap = 1
viridian = 1
monitor=1
serial='pty'
# keymap='fr'
# soundhw = "all"
# audio="on"
ne2000=0
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'
xen_platform_pci=1
gfx_passthru=1
pci  = [ '03:00.0','03:00.1' ]
pci_msitranslate=0
pci_power_mgmt=0
acpi_s3 = 1
acpi_s4 = 1


If anyone has any ideas, or things I should check or try, please let me
know. Also, if there is a way for me to get more debug info from xen that
might help me figure out what I am doing wrong in my configuration, I
would appreciate that info too.

Sandi

[-- Attachment #1.2: Type: text/html, Size: 8660 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 63+ messages in thread

end of thread, other threads:[~2012-02-01 18:05 UTC | newest]

Thread overview: 63+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-20 13:05 VGA passthough still not working Sandi Romih
2012-01-20 15:47 ` Pasi Kärkkäinen
2012-01-20 16:49   ` Sandi Romih
2012-01-20 18:53     ` [Xen-devel] " Likarpenkov Alexander
2012-01-20 19:24       ` [Xen-users] " chris
2012-01-20 19:46         ` [Xen-devel] " John Sherwood
2012-01-20 19:56           ` Likarpenkov Alexander
2012-01-23 11:45           ` [Xen-users] " Sandi Romih
2012-01-23 11:49             ` [Xen-devel] " Likarpenkov Alexander
2012-01-23 12:01               ` Likarpenkov Alexander
2012-01-24  1:53             ` [Xen-users] " Konrad Rzeszutek Wilk
2012-01-20 19:48         ` [Xen-devel] " Likarpenkov Alexander
2012-01-23 11:25         ` [Xen-users] " Sandi Romih
2012-01-23 11:39           ` Ian Campbell
2012-01-23 11:47             ` [Xen-devel] " Likarpenkov Alexander
2012-01-23 13:17             ` [Xen-users] " Tobias Geiger
2012-01-23 13:36               ` [Xen-devel] " Likarpenkov Alexander
2012-01-23 15:43               ` Re : [Xen-users] " David TECHER
2012-01-24  1:50               ` Konrad Rzeszutek Wilk
2012-01-24 14:12                 ` djmagee
2012-01-24 14:33                   ` [Xen-devel] " Likarpenkov Alexander
2012-01-24 18:41                     ` [Xen-users] " Doug Magee
2012-01-25  8:26                       ` [Xen-devel] " Likarpenkov Alexander
2012-01-25 16:52                         ` [Xen-users] " Doug Magee
2012-01-25 19:29                           ` Pavel Matěja
2012-01-25 19:52                             ` Pavel Matěja
2012-01-25 20:29                               ` Doug Magee
2012-01-25 20:48                                 ` Pavel Matěja
2012-01-25 21:29                                   ` Doug Magee
2012-01-26  8:19                                     ` Pavel Mateja
2012-01-25 20:55                                 ` Pavel Matěja
2012-01-31 21:54                               ` Konrad Rzeszutek Wilk
2012-02-01  8:23                                 ` Pavel Mateja
2012-01-26 10:53                           ` [Xen-devel] " Likarpenkov Alexander
2012-01-26 14:28                           ` Likarpenkov Alexander
2012-01-25 16:54                         ` Future of xend and xl (Was: Re: [Xen-users] VGA passthough still not working) Ian Campbell
2012-01-25 19:43                           ` [Xen-users] Future of xend and xl (Was: " Florian Heigl
2012-01-26 11:31                             ` Ian Campbell
2012-01-27 10:38                               ` xl vs xm - hernya (bad results) Likarpenkov Alexander
2012-01-27 11:02                                 ` Likarpenkov Alexander
2012-02-01 18:05                                   ` [Xen-users] " Stefano Stabellini
2012-01-26 11:49                             ` [Xen-users] Future of xend and xl (Was: Re: VGA passthough still not working) Stefano Stabellini
2012-01-26 14:36                               ` [Xen-devel] " Likarpenkov Alexander
2012-01-26 15:34                               ` [Xen-users] " Jim Fehlig
2012-01-24 14:37                   ` [Xen-users] VGA passthough still not working Tobias Geiger
2012-01-24 14:54                     ` [Xen-devel] " Likarpenkov Alexander
2012-01-24 15:15                     ` Likarpenkov Alexander
2012-01-24 16:21                       ` [Xen-users] " Tobias Geiger
2012-01-24 16:36                       ` Tobias Geiger
2012-01-24 16:52                       ` Tobias Geiger
2012-01-24 18:31                     ` Doug Magee
2012-01-25  9:39                       ` Tobias Geiger
2012-01-25 17:23                         ` Doug Magee
2012-01-26 11:49                           ` Tobias Geiger
2012-01-24 11:32               ` [Xen-devel] " Likarpenkov Alexander
2012-01-23 11:43           ` Likarpenkov Alexander
2012-01-23 11:15       ` [Xen-users] " Sandi Romih
2012-01-23 11:33         ` [Xen-devel] " Likarpenkov Alexander
2012-01-20 20:32     ` Pasi Kärkkäinen
2012-01-23 11:53       ` Sandi Romih
2012-01-24  1:55         ` Konrad Rzeszutek Wilk
2012-02-01 10:31           ` [Xen-devel] " Likarpenkov Alexander
2012-02-01 11:12             ` Likarpenkov Alexander

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).