From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yolkfull Chow Subject: Re: PCI Passthrough Problem Date: Fri, 22 Jan 2010 13:47:52 +0800 Message-ID: <20100122054752.GA2438@aFu.nay.redhat.com> References: <8ec0428d1001212124s5612718n190f51996c9354a9@mail.gmail.com> Reply-To: Yolkfull Chow Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Aaron Clausen Return-path: Received: from mx1.redhat.com ([209.132.183.28]:5839 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751027Ab0AVFry (ORCPT ); Fri, 22 Jan 2010 00:47:54 -0500 Content-Disposition: inline In-Reply-To: <8ec0428d1001212124s5612718n190f51996c9354a9@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Jan 21, 2010 at 09:24:36PM -0800, Aaron Clausen wrote: > I'm trying once again to get PCI passthrough working (KVM 84 on Ubuntu > 9.10), and I'm getting this error : > > LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin > /usr/bin/kvm -S -M pc-0.11 -m 4096 -smp 4 -name mailserver -uuid > 76a83471-e94a-3658-fa61-8eceaa74ffc2 -monitor > unix:/var/run/libvirt/qemu/mailserver.monitor,server,nowait -localtime > -boot c -drive file=,if=ide,media=cdrom,index=2 -drive > file=/var/lib/libvirt/images/mailserver.img,if=virtio,index=0,boot=on > -drive file=/var/lib/libvirt/images/mailserver-2.img,if=virtio,index=1 > -net nic,macaddr=54:52:00:1b:b2:56,vlan=0,model=virtio,name=virtio.0 > -net tap,fd=17,vlan=0,name=tap.0 -serial pty -parallel none -usb > -usbdevice tablet -vnc 127.0.0.1:0 -k en-us -vga cirrus -pcidevice > host=0a:01.0 > char device redirected to /dev/pts/0 > get_real_device: /sys/bus/pci/devices/0000:0a:01.0/config: Permission denied > init_assigned_device: Error: Couldn't get real device (0a:01.0)! > Failed to initialize assigned device host=0a:01.0 Seems libvirt initialize the PCI devices problem, you could manually unbind this device from host kernel driver and try above command again. For unbind this device please refer to : http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM > > Any thoughts? > > -- > Aaron Clausen > mightymartianca@gmail.com > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html