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

Re: [Xen-users] VGA Passthrough



On Sun, Dec 26, 2010 at 04:55:54PM +0100, Rome Pierce wrote:
> I didn't modify the XEN kernel. It's a debian squeeze installation. It comes 
> with precompiled XEN kernel 4.0.1. I got a integrated GPU in my intel 
> clarkdale (i5-650) CPU. I read that the intel integrated GPUs would work with 
> XEN. Couldn't find anything in the wiki or on the list, so i thought it would 
> work out of the box with Intel GPUs.
> 
> Here comes the complete "xm dmesg" with iommu=verbose:
> 

Ok. How about dom0 linux "dmesg" output? Anything related in it? 
Also check /var/log/xen/*

-- Pasi

> 
> (XEN) Xen version 4.0.1 (Debian 4.0.1-1) (waldi@xxxxxxxxxx) (gcc version 
> 4.4.5 20100824 (prerelease) (Debian 4.4.4-11) ) Fri Sep  3 15:38:12 UTC 2010
> (XEN) Bootloader: GRUB 1.98+20100804-10
> (XEN) Command line: placeholder iommu=verbose
> (XEN) Video information:
> (XEN)  VGA is text mode 80x25, font 8x16
> (XEN)  VBE/DDC methods: none; EDID transfer time: 0 seconds
> (XEN)  EDID info not retrieved because no DDC retrieval method detected
> (XEN) Disc information:
> (XEN)  Found 1 MBR signatures
> (XEN)  Found 1 EDD information structures
> (XEN) Xen-e820 RAM map:
> (XEN)  0000000000000000 - 000000000009e800 (usable)
> (XEN)  000000000009e800 - 00000000000a0000 (reserved)
> (XEN)  00000000000e0000 - 0000000000100000 (reserved)
> (XEN)  0000000000100000 - 00000000b3780000 (usable)
> (XEN)  00000000b3780000 - 00000000b378e000 (ACPI data)
> (XEN)  00000000b378e000 - 00000000b37d0000 (ACPI NVS)
> (XEN)  00000000b37d0000 - 00000000b37e0000 (reserved)
> (XEN)  00000000b37ed000 - 00000000c0000000 (reserved)
> (XEN)  00000000fee00000 - 00000000fee01000 (reserved)
> (XEN)  00000000ffe00000 - 0000000100000000 (reserved)
> (XEN)  0000000100000000 - 0000000138000000 (usable)
> (XEN) ACPI: RSDP 000FA2A0, 0014 (r0 ACPIAM)
> (XEN) ACPI: RSDT B3780000, 0044 (r1 7636MS A7636100 20100914 MSFT       97)
> (XEN) ACPI: FACP B3780200, 0084 (r1 7636MS A7636100 20100914 MSFT       97)
> (XEN) ACPI: DSDT B37805E0, 747E (r1  A7636 A7636100      100 INTL 20051117)
> (XEN) ACPI: FACS B378E000, 0040
> (XEN) ACPI: APIC B3780390, 008C (r1 7636MS A7636100 20100914 MSFT       97)
> (XEN) ACPI: MCFG B3780420, 003C (r1 7636MS OEMMCFG  20100914 MSFT       97)
> (XEN) ACPI: OEMB B378E040, 0072 (r1 7636MS A7636100 20100914 MSFT       97)
> (XEN) ACPI: HPET B378A5E0, 0038 (r1 7636MS OEMHPET  20100914 MSFT       97)
> (XEN) ACPI: GSCI B378E0C0, 2024 (r1 7636MS GMCHSCI  20100914 MSFT       97)
> (XEN) ACPI: DMAR B37900F0, 0140 (r1    AMI  OEMDMAR        1 MSFT       97)
> (XEN) ACPI: SSDT B3791C80, 0363 (r1 DpgPmm    CpuPm       12 INTL 20051117)
> (XEN) System RAM: 3767MB (3857528kB)
> (XEN) Domain heap initialised
> (XEN) Processor #0 6:5 APIC version 21
> (XEN) Processor #4 6:5 APIC version 21
> (XEN) Processor #1 6:5 APIC version 21
> (XEN) Processor #5 6:5 APIC version 21
> (XEN) IOAPIC[0]: apic_id 6, version 32, address 0xfec00000, GSI 0-23
> (XEN) Enabling APIC mode:  Flat.  Using 1 I/O APICs
> (XEN) [VT-D]dmar.c:687: Host address width 36
> (XEN) [VT-D]dmar.c:702: found ACPI_DMAR_DRHD:
> (XEN) [VT-D]dmar.c:398:   dmaru->address = fed90000
> (XEN) [VT-D]iommu.c:1081: drhd->address = fed90000 iommu->reg = 
> ffff82c3fff57000
> (XEN) [VT-D]iommu.c:1083: cap = c9008020e30272 ecap = 1000
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:1b.0
> (XEN) [VT-D]dmar.c:702: found ACPI_DMAR_DRHD:
> (XEN) [VT-D]dmar.c:398:   dmaru->address = fed91000
> (XEN) [VT-D]iommu.c:1081: drhd->address = fed91000 iommu->reg = 
> ffff82c3fff56000
> (XEN) [VT-D]iommu.c:1083: cap = c0000020230272 ecap = 1000
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:2.0
> (XEN) [VT-D]dmar.c:702: found ACPI_DMAR_DRHD:
> (XEN) [VT-D]dmar.c:398:   dmaru->address = fed93000
> (XEN) [VT-D]iommu.c:1081: drhd->address = fed93000 iommu->reg = 
> ffff82c3fff55000
> (XEN) [VT-D]iommu.c:1083: cap = c9008020630272 ecap = 1000
> (XEN) [VT-D]dmar.c:412:   flags: INCLUDE_ALL
> (XEN) [VT-D]dmar.c:707: found ACPI_DMAR_RMRR:
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:1d.0
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:1d.1
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:1d.2
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:1d.3
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:1a.0
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:1a.1
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:1a.2
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:1a.3
> (XEN) [VT-D]dmar.c:579:   RMRR region: base_addr ed000 end_address effff
> (XEN) [VT-D]dmar.c:707: found ACPI_DMAR_RMRR:
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:2.0
> (XEN) [VT-D]dmar.c:579:   RMRR region: base_addr b7c00000 end_address bfffffff
> (XEN) [VT-D]dmar.c:707: found ACPI_DMAR_RMRR:
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:1d.0
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:1d.1
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:1d.2
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:1d.3
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:1a.0
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:1a.1
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:1a.2
> (XEN) [VT-D]dmar.c:335:   endpoint: 0:1a.3
> (XEN) [VT-D]dmar.c:579:   RMRR region: base_addr b37ed000 end_address b37fffff
> (XEN) Using scheduler: SMP Credit Scheduler (credit)
> (XEN) Detected 3192.071 MHz processor.
> (XEN) Initing memory sharing.
> (XEN) VMX: Supported advanced features:
> (XEN)  - APIC MMIO access virtualisation
> (XEN)  - APIC TPR shadow
> (XEN)  - Extended Page Tables (EPT)
> (XEN)  - Virtual-Processor Identifiers (VPID)
> (XEN)  - Virtual NMI
> (XEN)  - MSR direct-access bitmap
> (XEN)  - Unrestricted Guest
> (XEN) EPT supports 2MB super page.
> (XEN) HVM: ASIDs enabled.
> (XEN) HVM: VMX enabled
> (XEN) HVM: Hardware Assisted Paging detected.
> (XEN) Intel VT-d Snoop Control not supported.
> (XEN) Intel VT-d DMA Passthrough not supported.
> (XEN) Intel VT-d Queued Invalidation not supported.
> (XEN) Intel VT-d Interrupt Remapping not supported.
> (XEN) I/O virtualisation enabled
> (XEN)  - Dom0 mode: Relaxed
> (XEN) Enabled directed EOI with ioapic_ack_old on!
> (XEN) Total of 4 processors activated.
> (XEN) ENABLING IO-APIC IRQs
> (XEN)  -> Using old ACK method
> (XEN) TSC is reliable, synchronization unnecessary
> (XEN) Platform timer is 14.318MHz HPET
> (XEN) Allocated console ring of 16 KiB.
> (XEN) Brought up 4 CPUs
> (XEN) *** LOADING DOMAIN 0 ***
> (XEN)  Xen  kernel: 64-bit, lsb, compat32
> (XEN)  Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x16b6000
> (XEN) PHYSICAL MEMORY ARRANGEMENT:
> (XEN)  Dom0 alloc.:   0000000130000000->0000000134000000 (902692 pages to be 
> allocated)
> (XEN) VIRTUAL MEMORY ARRANGEMENT:
> (XEN)  Loaded kernel: ffffffff81000000->ffffffff816b6000
> (XEN)  Init. ramdisk: ffffffff816b6000->ffffffff8326ea00
> (XEN)  Phys-Mach map: ffffffff8326f000->ffffffff83972120
> (XEN)  Start info:    ffffffff83973000->ffffffff839734b4
> (XEN)  Page tables:   ffffffff83974000->ffffffff83995000
> (XEN)  Boot stack:    ffffffff83995000->ffffffff83996000
> (XEN)  TOTAL:         ffffffff80000000->ffffffff83c00000
> (XEN)  ENTRY ADDRESS: ffffffff81506200
> (XEN) Dom0 has maximum 4 VCPUs
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = 0:0.0
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = 0:2.0
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = 0:16.0
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = 0:1a.0
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = 0:1a.1
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = 0:1a.2
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = 0:1a.3
> (XEN) [VT-D]iommu.c:1332: d0:PCIe: map bdf = 0:1b.0
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = 0:1d.0
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = 0:1d.1
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = 0:1d.2
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = 0:1d.3
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = 0:1f.0
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = 0:1f.2
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = 0:1f.3
> (XEN) [VT-D]iommu.c:1332: d0:PCIe: map bdf = 1:0.0
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = ff:0.0
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = ff:0.1
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = ff:2.0
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = ff:2.1
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = ff:2.2
> (XEN) [VT-D]iommu.c:1339: d0:PCI: map bdf = ff:2.3
> (XEN) [VT-D]iommu.c:698: iommu_enable_translation: iommu->reg = 
> ffff82c3fff56000
> (XEN) [VT-D]iommu.c:821: iommu_fault_status: Fault Overflow
> (XEN) [VT-D]iommu.c:824: iommu_fault_status: Primary Pending Fault
> (XEN) [VT-D]iommu.c:799: DMAR:[DMA Write] Request device [00:02.0] fault addr 
> ffffff000, iommu reg = ffff82c3fff56000
> (XEN) DMAR:[fault reason 05h] PTE Write access is not set
> (XEN) print_vtd_entries: iommu = ffff830137cf8950 bdf = 0:2.0 gmfn = ffffff
> (XEN)     root_entry = ffff830137c3b000
> (XEN)     root_entry[0] = 7737001
> (XEN)     context = ffff830007737000
> (XEN)     context[10] = 1_80fe001
> (XEN)     l3 = ffff8300080fe000
> (XEN)     l3_index = 3f
> (XEN)     l3[3f] = 0
> (XEN)     l3[3f] not present
> (XEN) [VT-D]iommu.c:698: iommu_enable_translation: iommu->reg = 
> ffff82c3fff57000
> (XEN) [VT-D]iommu.c:698: iommu_enable_translation: iommu->reg = 
> ffff82c3fff55000
> (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 176kB init memory.
> (XEN) save.c:72:d0 Domain 1 expects freq 3192MHz but host's freq is 3192MHz: 
> trap and emulate rdtsc
> (XEN) save.c:72:d0 Domain 2 expects freq 3192MHz but host's freq is 3192MHz: 
> trap and emulate rdtsc
> (XEN) save.c:72:d0 Domain 3 expects freq 3192MHz but host's freq is 3192MHz: 
> trap and emulate rdtsc
> 
> greets
> Romep
> 
> -------- Original-Nachricht --------
> > Datum: Sun, 26 Dec 2010 16:12:00 +0200
> > Von: "Pasi Kärkkäinen" <pasik@xxxxxx>
> > An: Rome Pierce <romep@xxxxxx>
> > CC: tknchris@xxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx
> > Betreff: Re: [Xen-users] VGA Passthrough
> 
> > On Sun, Dec 26, 2010 at 01:45:06PM +0100, Rome Pierce wrote:
> > > Hello,
> > > 
> > > i think it has something to do with this:
> > > 
> > > (XEN) [VT-D]iommu.c:821: iommu_fault_status: Fault Overflow
> > > (XEN) [VT-D]iommu.c:824: iommu_fault_status: Primary Pending Fault
> > > (XEN) [VT-D]iommu.c:799: DMAR:[DMA Write] Request device [00:02.0] fault
> > addr ffffff000, iommu reg = ffff82c3fff56000
> > > (XEN) DMAR:[fault reason 05h] PTE Write access is not set
> > > (XEN) print_vtd_entries: iommu = ffff830137cf8950 bdf = 0:2.0 gmfn =
> > ffffff
> > > (XEN)     root_entry = ffff830137c3b000
> > > (XEN)     root_entry[0] = 7737001
> > > (XEN)     context = ffff830007737000
> > > (XEN)     context[10] = 1_80fe001
> > > (XEN)     l3 = ffff8300080fe000
> > > (XEN)     l3_index = 3f
> > > (XEN)     l3[3f] = 0
> > > (XEN)     l3[3f] not present
> > > 
> > > 
> > > VT-d is supported and enabled in bios. Kernel Parameter are vtd=1 and
> > intel_iommu=on
> > > 
> > 
> > vtd=1 is an old option, and it's ignored by new Xen versions.
> > You should have iommu=verbose parameter set for *Xen* hypervisor (xen.gz).
> > 
> > But yeah, the above looks like the problem..
> > 
> > Did you modify Xen sources manually? Many VGA cards require manual 
> > tuning and won't work out-of-the-box ..
> > 
> > -- Pasi
> > 
> > 
> > > Merry X-max
> > > Romep
> > > 
> > > 
> > > -------- Original-Nachricht --------
> > > > Datum: Tue, 21 Dec 2010 10:55:26 +0100
> > > > Von: "Rome Pierce" <romep@xxxxxx>
> > > > An: "Pasi Kärkkäinen" <pasik@xxxxxx>, tknchris@xxxxxxxxx
> > > > CC: xen-users@xxxxxxxxxxxxxxxxxxx
> > > > Betreff: Re: [Xen-users] VGA Passthrough
> > > 
> > > > Well, i don't comment on these answers .. I solved it on my own now.
> > > > 
> > > > 
> > > > My Windows 7 Pro virtual machine installs but when Windows installs
> > all
> > > > the updates (Intel HD graphics driver) i can't start the machine
> > again. I got
> > > > a clarkdale cpu with integrated gpu and the Intel gpu's should work?
> > > > 
> > > > 
> > > > 
> > > > 
> > > > -------- Original-Nachricht --------
> > > > > Datum: Mon, 20 Dec 2010 22:24:21 +0200
> > > > > Von: "Pasi Kärkkäinen" <pasik@xxxxxx>
> > > > > An: chris <tknchris@xxxxxxxxx>
> > > > > CC: Rome Pierce <romep@xxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
> > > > > Betreff: Re: [Xen-users] VGA Passthrough
> > > > 
> > > > > On Mon, Dec 20, 2010 at 02:10:44PM -0500, chris wrote:
> > > > > > http://wiki.xensource.com/xenwiki/XenVGAPassthrough
> > > > > > 
> > > > > 
> > > > > And this one, also linked on the wiki page above:
> > > > > http://wiki.xensource.com/xenwiki/XenPCIpassthrough
> > > > > 
> > > > > -- Pasi
> > > > > 
> > > > > > On Mon, Dec 20, 2010 at 1:20 PM, Rome Pierce <romep@xxxxxx> wrote:
> > > > > > > Hello,
> > > > > > >
> > > > > > > i just installed Debian Squeeze and the Xen 4.0.1 debian
> > packages. I
> > > > > want to passthrough vga to a Windows 7 virtual machine. But i always
> > get
> > > > an
> > > > > error (Error: pci: PCI Backend and pci-stub don't own device
> > > > 0000:00:02.0).
> > > > > What am i doing wrong? My config file looks like this:
> > > > > > >
> > > > > > > name = 'win7'
> > > > > > > kernel = '/usr/lib/xen/boot/hvmloader'
> > > > > > > builder = 'hvm'
> > > > > > > device_model = '/usr/lib64/xen/bin/qemu-dm'
> > > > > > > memory = 1024
> > > > > > > acpi=1
> > > > > > > apic=1
> > > > > > >
> > > > > > > vif = [ 'bridge=eth0' ]
> > > > > > >
> > > > > > > disk = [ 'file:/path/to/win7.img,hda,w',
> > > > > 'file:/path/to/win7.iso,hdc:cdrom,r' ]
> > > > > > >
> > > > > > > boot='dc'
> > > > > > > usbdevice='tablet'
> > > > > > >
> > > > > > > vnc=1
> > > > > > > vnclisten = '0.0.0.0'
> > > > > > > vncpasswd=''
> > > > > > > sdl=0
> > > > > > >
> > > > > > > stdvga=0
> > > > > > > serial='pty'
> > > > > > >
> > > > > > > gfx_passthru=0
> > > > > > > pci=[ '00:02.0' ]
> > > > > > > --
> > > > > > > GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt auch mit
> > > > > > > gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > Xen-users mailing list
> > > > > > > Xen-users@xxxxxxxxxxxxxxxxxxx
> > > > > > > http://lists.xensource.com/xen-users
> > > > > > >
> > > > > > 
> > > > > > _______________________________________________
> > > > > > Xen-users mailing list
> > > > > > Xen-users@xxxxxxxxxxxxxxxxxxx
> > > > > > http://lists.xensource.com/xen-users
> > > > > 
> > > > > _______________________________________________
> > > > > Xen-users mailing list
> > > > > Xen-users@xxxxxxxxxxxxxxxxxxx
> > > > > http://lists.xensource.com/xen-users
> > > > 
> > > > -- 
> > > > GRATIS! Movie-FLAT mit über 300 Videos. 
> > > > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome
> > > > 
> > > > _______________________________________________
> > > > Xen-users mailing list
> > > > Xen-users@xxxxxxxxxxxxxxxxxxx
> > > > http://lists.xensource.com/xen-users
> > > 
> > > -- 
> > > NEU: FreePhone - kostenlos mobil telefonieren und surfen!                 
> > > Jetzt informieren: http://www.gmx.net/de/go/freephone
> > 
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-users
> 
> -- 
> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> belohnen Sie mit bis zu 100,- Euro! https://freundschaftswerbung.gmx.de

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


 


Rackspace

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