Bug 807016

Summary: RFE: Better power management support for KVM device assignment
Product: Red Hat Enterprise Linux 7 Reporter: Alex Williamson <alex.williamson>
Component: qemu-kvmAssignee: Hai Huang <hhuang>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: acathrow, akong, bsarathy, chayang, flang, hhuang, juzhang, knoel, michen, mkenneth, qiguo, shuang, virt-maint
Target Milestone: rcKeywords: FutureFeature, TestOnly
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.10 kernel; qemu 1.5 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 13:15:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.