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 594912 - kvm_vm_ioctl_assign_irq() requires CAP_SYS_RAWIO breaking libvirt device assignment
Summary: kvm_vm_ioctl_assign_irq() requires CAP_SYS_RAWIO breaking libvirt device assi...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.0
Hardware: All
OS: Linux
high
medium
Target Milestone: beta
: ---
Assignee: Alex Williamson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 559709 595495
TreeView+ depends on / blocked
 
Reported: 2010-05-21 22:18 UTC by Alex Williamson
Modified: 2010-11-11 15:43 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-11 15:43:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
upstream patch backported to rhel6 (1.05 KB, patch)
2010-05-26 19:28 UTC, Alex Williamson
no flags Details | Diff

Description Alex Williamson 2010-05-21 22:18:22 UTC
Description of problem:

kvm_vm_ioctl_assign_irq() checks for CAP_SYS_RAWIO, which is not present for qemu processes launched via libvirt.  This check really isn't necessary since it can only operate on devices previously assigned via the assign_device ioctl.  Remove the check.

Version-Release number of selected component (if applicable):
2.6.32-28.el6

How reproducible:
always

Steps to Reproduce:
1. assign passthrough device via libvirt
2. fail (note this isn't the only problem blocking this path)
3.
  
Actual results:
assign_irq ioctl fails

Expected results:
works

Additional info:

Comment 3 Alex Williamson 2010-05-26 19:28:59 UTC
Created attachment 416999 [details]
upstream patch backported to rhel6

Here's the patch posted to rhkernel-list.  This was accepted upstream.  assign_irq only works on devices already registered through assign_device, so it doesn't make much sense to enforce RAWIO here.

Comment 5 Aristeu Rozanski 2010-05-28 20:38:23 UTC
Patch(es) available on kernel-2.6.32-31.el6

Comment 8 lihuang 2010-08-18 14:09:57 UTC
Tested on  kernel-2.6.32-63.el6
PASS

Comment 9 releng-rhel@redhat.com 2010-11-11 15:43:29 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.


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