Bug 807016 - RFE: Better power management support for KVM device assignment
Summary: RFE: Better power management support for KVM device assignment
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Hai Huang
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-26 18:56 UTC by Alex Williamson
Modified: 2014-06-18 03:15 UTC (History)
13 users (show)

Fixed In Version: 3.10 kernel; qemu 1.5
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 13:15:54 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Alex Williamson 2012-03-26 18:56:55 UTC
Description of problem:
The power management registers for an assigned device are read-only for the guest.  This works fine for most drivers, but some (tg3) refuse to release the device because of being unable to transition the power state.  Investigate either allowing power state transitions or emulating them (more likely).

Version-Release number of selected component (if applicable):
qemu-kvm-0.12.1.2-2.265.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Attempt to hot-unplug and assigned BCM5755 or similar tg3 device
2.
3.
  
Actual results:
Guest refuses to release the device

Expected results:
Normal hotunplug

Additional info:
libvirt fails to notice the hotunplug failed

Comment 2 RHEL Program Management 2012-07-10 08:52:47 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 RHEL Program Management 2012-07-11 02:04:19 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 6 wrob0123 2013-04-05 15:05:17 UTC
How can I get a copy of RHEL 7 to try now?

Comment 7 Alex Williamson 2013-04-05 15:46:55 UTC
(In reply to comment #6)
> How can I get a copy of RHEL 7 to try now?

There's no beta available yet.  The support we'll be targeting for this is the new vfio-based device assignment where power management is already accessible to userspace.  The 3.9 kernel has a fix to enable this and an additional fix will be in QEMU 1.5.  Please contact me if you need help getting vfio setup.  There's not yet libvirt support, but it should be available in the next upstream release.  Thanks.

Comment 8 Hai Huang 2013-08-12 12:35:23 UTC
For RHEL7, this functionality requested by this BZ is provided by VFIO, 
which is available in the 3.10 kernel and qemu 1.5.

Setting this BZ to POST (on Alex's behalf).

Comment 16 Ludek Smid 2014-06-13 13:15:54 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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