Bug 536793

Summary: Impossible to add pci-hardware to a virtual machine
Product: [Fedora] Fedora Reporter: Klaus Spithost <k.spithost>
Component: qemuAssignee: Glauber Costa <gcosta>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: berrange, dwmw2, gcosta, itamar, jaswinder, jforbes, markmc, quintela, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-19 05:34:32 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Klaus Spithost 2009-11-11 07:17:08 EST
Description of problem:
When trying to add a physical pci-device to a virtual machine through the GUI
the virtual machine will not run.

Version-Release number of selected component (if applicable):
QEMU PC emulator version 0.10.6 (qemu-kvm-0.10.6), Copyright (c) 2003-2008
Fabrice Bellard

How reproducible:
Add a physical pci-device through the GUI. Try to start the virtual machine
from the GUI. The GUI states that the machine does not appear.

Steps to Reproduce:

1. add a physical hardware device through the GUI
2. run the machine (or if running, stop the machine and run it)

Actual results:

A virtual machine that does not run

Expected results:

A running virtual machine with dedicated access to the physical pci-device

Additional info:

The log in /var/log/libvirt/qemu states:

LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin /usr/bin/qemu -S -M pc -m 512 -smp
1 -name XP_doosje -uuid 32dd18d6-f0a7-309b-7a57-86faf5ba8ab6 -monitor pty
-pidfile /var/run/libvirt/qemu//XP_doosje.pid -boot d -drive
file=/var/lib/libvirt/images/XP_doosje.img,if=ide,index=0 -drive
file=/var/lib/libvirt/images/xp-virt-d-drive.img,if=ide,index=1 -drive
file=/home/klaus/xp.iso,if=ide,media=cdrom,index=2 -net
nic,macaddr=54:52:00:5b:6c:58,vlan=0 -net tap,fd=20,vlan=0 -serial pty
-parallel none -usb -vnc -pcidevice host=03:00.0 
/usr/bin/qemu: invalid option -- '-pcidevice'

Without the added hardware the virtual machine runs perfectly.

The Fedora 11 I try it on is updated uptil today (Nov 10th 2009).
Comment 1 Mark McLoughlin 2009-11-19 05:34:32 EST
qemu does not support PCI device assignment, only qemu-kvm does

Also, device assignment requires Intel VT-d or AMD IOMMU support

See also https://fedoraproject.org/wiki/Features/KVM_PCI_Device_Assignment

Thanks for the report