From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonas Pfoh Subject: pci pass-through on AMD architecture Date: Wed, 05 Aug 2009 11:54:15 +0200 Message-ID: <4A7956C7.4030804@sec.in.tum.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mail-out1.informatik.tu-muenchen.de ([131.159.0.8]:49486 "EHLO mail-out1.informatik.tu-muenchen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933178AbZHEKB1 (ORCPT ); Wed, 5 Aug 2009 06:01:27 -0400 Received: from files.sec.in.tum.de (files.sec.in.tum.de [131.159.50.1]) by services.sec.in.tum.de (Postfix) with ESMTP id 7A9C8804BC43F for ; Wed, 5 Aug 2009 11:54:21 +0200 (CEST) Received: from smtps.sec.in.tum.de (smtps.sec.in.tum.de [131.159.50.6]) by files.sec.in.tum.de (Postfix) with ESMTP id 59DBE8057946 for ; Wed, 5 Aug 2009 11:54:20 +0200 (CEST) Received: from [131.159.50.21] (warbler.sec.in.tum.de [131.159.50.21]) by smtps.sec.in.tum.de (Postix Mailer @ mail) with ESMTPSA id A12A565C0 for ; Wed, 5 Aug 2009 11:54:20 +0200 (CEST) Sender: kvm-owner@vger.kernel.org List-ID: Hello, I seem to be having some issues making the pci pass-through work from the command line. Interestingly, a hot-plug works (i.e., passing the device through via the qemu console). Any help would be appreciated. Thanks, Jonas Pfoh Below the attempt and error msgs: # /usr/local/kvm/bin/qemu-system-x86_64 -m 2048 -hda /srv/kvm/suseimg.img -vnc localhost:1 -pcidevice host=00:09.0 -net none create_userspace_phys_mem: Invalid argument assigned_dev_iomem_map: Error: create new mapping failed dmesg output: ... pci-stub 0000:00:09.0: PCI INT A -> Link[LMAD] -> GSI 21 (level, low) -> IRQ 21 pci-stub 0000:00:09.0: irq 31 for MSI/MSI-X pci-stub 0000:00:09.0: PCI INT A disabled /proc/cpuinfo (one of two identical procs): processor : 0 vendor_id : AuthenticAMD cpu family : 15 model : 107 model name : AMD Athlon(tm) Dual Core Processor 5050e stepping : 2 cpu MHz : 1000.000 cache size : 512 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow rep_good extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch bogomips : 1999.98 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: ts fid vid ttp tm stc 100mhzsteps lspci -v: ... 00:09.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a3) Subsystem: nVidia Corporation Device cb84 Flags: 66MHz, fast devsel, IRQ 21 Memory at feaf5000 (32-bit, non-prefetchable) [size=4K] I/O ports at b080 [size=8] Memory at feafa000 (32-bit, non-prefetchable) [size=256] Memory at feaf4c00 (32-bit, non-prefetchable) [size=16] Capabilities: [44] Power Management version 2 Capabilities: [70] MSI-X: Enable- Mask- TabSize=8 Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+ Count=1/8 Enable- Capabilities: [6c] HyperTransport: MSI Mapping Enable- Fixed+ Kernel driver in use: pci-stub Kernel modules: forcedeth ...