RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 894287 - Pci-assign fails on q35 machine type
Summary: Pci-assign fails on q35 machine type
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Alex Williamson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-11 10:18 UTC by xhan
Modified: 2014-06-18 08:08 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-27 15:53:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description xhan 2013-01-11 10:18:01 UTC
Description of problem:

Pci-assign failed on RHEL7.0 and qemu-kvm 1.3.0.

Version-Release number of selected component (if applicable):



How reproducible:

100%

Steps to Reproduce:
1. Install RHEL7.0 and update to 
   kernel( kernel-3.7.0-0.30.el73.7) 
   seabios (seabios-1.7.2-0.2.gita810e4e7.el7) 
   qemu (qemu-kvm-1.3.0-3.el7)

2. start qemu-kvm guest with pci-assign for NIC.

/usr/libexec/qemu-kvm -nodefaults -device ich9-usb-uhci1,id=usb1,bus=pcie.0,addr=0x4 -drive file=/root/workspace/imgs/rhel7.img.qcow2,if=none,id=drive-virtio-disk1,media=disk,cache=unsafe,snapshot=off,format=qcow2,aio=native -device virtio-blk-pci,bus=pcie.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1 -device pci-assign,host=00:19.0,id=xmhannic0 -m 2G -smp 2,sockets=2,cores=1,threads=1 -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 -vnc :0 -vga cirrus -rtc base=utc,clock=host,driftfix=slew -boot order=cdn,once=c,menu=off -no-shutdown -enable-kvm -monitor stdio -qmp tcp:0:4444,server,nowait -M q35 -acpitable file=/root/workspace/seabios/seabios/out/q35-acpi-dsdt.aml -mem-path 
/mnt/kvm_hugepage

3. qemu-kvm prompts error:
   qemu-kvm: PCI: Bug - unimplemented PCI INTx routing (q35-pcihost)
  
Actual results:
PCI can not be initialized correctly.

Expected results:

PCI device can be assigned.

Additional info:

Comment 1 xhan 2013-01-11 10:30:31 UTC
Before executing the step2(start guest with NIC pass-through) need unbind the host network card :

echo "8086 1502" > /sys/bus/pci/drivers/pci-stub/new_id
echo 0000:00:19.0 > /sys/bus/pci/devices/0000:00:19.0/driver/unbind
echo 0000:00:19.0 > /sys/bus/pci/drivers/pci-stub/bind

Comment 2 Alex Williamson 2013-01-15 16:25:02 UTC
As noted in the error log, the q35 machine type does not yet implement the INTx routing callback necessary for pci-assign.

Comment 3 juzhang 2013-01-28 07:35:18 UTC
According to comment2, add block flag. Currently, can not do pci assign feature.

Comment 5 Alex Williamson 2013-11-27 15:53:27 UTC
pci-assign is not supported on rhel7.  I suspect this issue has already been fixed, but there's no way to test it on current builds.  vfio-pci does not have this problem.


Note You need to log in before you can comment on or make changes to this bug.