From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Williamson Subject: Re: [Qemu-devel] [RFC PATCH v5 0/7] vfio IGD assignment Date: Mon, 25 Apr 2016 08:11:53 -0600 Message-ID: <20160425081153.4aafcf23@ul30vt.home> References: <20160421151333.15059.4309.stgit@gimli.home> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: qemu-devel , allen.m.kay@intel.com, Gerd Hoffmann , "kvm@vger.kernel.org" To: nicolas prochazka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:44832 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754716AbcDYOLz (ORCPT ); Mon, 25 Apr 2016 10:11:55 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: 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