On Mon, 25 Apr 2016 11:59:17 +0200
nicolas prochazka <prochazka.nico...@gmail.com> 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

Reply via email to