From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auhF1-0006px-96 for qemu-devel@nongnu.org; Mon, 25 Apr 2016 10:12:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1auhEx-0002VV-VY for qemu-devel@nongnu.org; Mon, 25 Apr 2016 10:11:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auhEx-0002Ud-QO for qemu-devel@nongnu.org; Mon, 25 Apr 2016 10:11:55 -0400 Date: Mon, 25 Apr 2016 08:11:53 -0600 From: Alex Williamson Message-ID: <20160425081153.4aafcf23@ul30vt.home> In-Reply-To: References: <20160421151333.15059.4309.stgit@gimli.home> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH v5 0/7] vfio IGD assignment List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: nicolas prochazka Cc: qemu-devel , allen.m.kay@intel.com, Gerd Hoffmann , "kvm@vger.kernel.org" On Mon, 25 Apr 2016 11:59:17 +0200 nicolas prochazka wrote: > hello again, > I'm compiling linux kernel 4.6rc5 > i'm compiling your qemu and seabios git > > then , I unbind my vga card : > echo "0000:00:02.0" > /sys/bus/pci/devices/0000\:00\:02.0/driver/unbind > > and start qemu with this command line ( from ssh ) > > /usr/bin/qemu-kvm -name win -S -machine pc-i440fx-2.6,accel=kvm,usb=off > -cpu host,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff -m 14257 > -mem-prealloc -mem-path /dev/hugepages/libvirt/qemu -realtime mlock=off > -smp 2,sockets=1,cores=2,threads=1 -uuid > ab829652-e53a-32bf-9a18-6722c7e7f785 -global PIIX4_PM.disable_s3=1 -global > PIIX4_PM.disable_s4=1 -boot strict=on -device > piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device > virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x4 -drive > file=nbd:unix:/tmp/win.ctl,if=none,id=drive-ide0-0-0,format=raw -device > ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive > file=nbd:unix:/tmp/swap.ctl,if=none,id=drive-ide0-0-1,format=raw -device > ide-hd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -device > vfio-pci,host=0000:00:02.0,bus=pci.0,addr=02.0 -vga none > > *qemu-system-x86_64: -device > vfio-pci,host=0000:00:02.0,bus=pci.0,addr=02.0: PCI: slot 2 function 0 not > available for vfio-pci, in use by e1000* > > what is wrong ? QEMU has default devices for machine types and is apparently trying to install an e1000 NIC at guest address 02.0, you either need to disable these defaults with a '-nodefaults' option, disable the NIC with a '-net none' option, or place the NIC at a different address by explicitly defining it and setting the address. Thanks, Alex