Bug 2002761
Summary: | RFE: Support to define automatically start mdev device after reboot by 'virsh nodedev-define' | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | John Ferlan <jferlan> |
Component: | libvirt | Assignee: | Jonathon Jongsma <jjongsma> |
libvirt sub component: | General | QA Contact: | zhentang <zhetang> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | unspecified | ||
Priority: | unspecified | CC: | jdenemar, jjongsma, jsuchane, lmen, smitterl, virt-maint, xuzhang, yafu, zhguo |
Version: | 9.0 | Keywords: | AutomationTriaged, FutureFeature, Triaged |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-7.8.0-1.el9 | Doc Type: | Enhancement |
Doc Text: | Story Points: | --- | |
Clone Of: | 1965140 | Environment: | |
Last Closed: | 2022-05-17 12:45:32 UTC | Type: | Feature Request |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | 7.8.0 |
Embargoed: | |||
Bug Depends On: | 1965140 | ||
Bug Blocks: | 1980343 |
Description
John Ferlan
2021-09-09 16:09:23 UTC
Direct assignment to same owner as cloned from bug 1965140 Support for autostarting mediated devices has been merged upstream and will be included in the upcoming libvirt 7.8.0 release. These are the relevant commits: 0cb4550305 virsh: add nodedev-info 24ffeef09c nodedev: Implement virNodeDeviceIsPersistent()/IsActive() 6d0b85d792 api: add virNodeDeviceIsPersistent()/IsActive() 16d078eded virsh: add nodedev-autostart 592031a580 nodedev: Add tests for mdevctl autostart command dc60f91530 nodedev: implement virNodeDevice(Get|Set)Autostart() c6607a25b9 api: add virNodeDevice(Get|Set)Autostart() Tested on libvirt-7.8.0-1.el9, pass Tested on libvirt-7.9.0-1.el9 ====================================== 1. define a mdev device and set autostart # virsh nodedev-list --inactive mdev_56601dfd_d2a8_4e4a_8008_b99fe3185aea_0000_00_02_0 # virsh nodedev-info mdev_56601dfd_d2a8_4e4a_8008_b99fe3185aea_0000_00_02_0 Name: mdev_56601dfd_d2a8_4e4a_8008_b99fe3185aea_0000_00_02_0 Parent: pci_0000_00_02_0 Active: no Persistent: yes Autostart: no # virsh nodedev-autostart mdev_56601dfd_d2a8_4e4a_8008_b99fe3185aea_0000_00_02_0 Device mdev_56601dfd_d2a8_4e4a_8008_b99fe3185aea_0000_00_02_0 marked as autostarted # mdevctl list -d 56601dfd-d2a8-4e4a-8008-b99fe3185aea 0000:00:02.0 i915-GVTg_V5_4 auto # reboot # virsh nodedev-info mdev_56601dfd_d2a8_4e4a_8008_b99fe3185aea_0000_00_02_0 Name: mdev_56601dfd_d2a8_4e4a_8008_b99fe3185aea_0000_00_02_0 Parent: pci_0000_00_02_0 Active: yes Persistent: yes Autostart: yes 2. disable autostart # virsh nodedev-autostart --disable mdev_56601dfd_d2a8_4e4a_8008_b99fe3185aea_0000_00_02_0 Device mdev_56601dfd_d2a8_4e4a_8008_b99fe3185aea_0000_00_02_0 unmarked as autostarted # virsh nodedev-info mdev_56601dfd_d2a8_4e4a_8008_b99fe3185aea_0000_00_02_0 Name: mdev_56601dfd_d2a8_4e4a_8008_b99fe3185aea_0000_00_02_0 Parent: pci_0000_00_02_0 Active: yes Persistent: yes Autostart: no # reboot # virsh nodedev-info mdev_56601dfd_d2a8_4e4a_8008_b99fe3185aea_0000_00_02_0 Name: mdev_56601dfd_d2a8_4e4a_8008_b99fe3185aea_0000_00_02_0 Parent: pci_0000_00_02_0 Active: no Persistent: yes Autostart: no Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (new packages: libvirt), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:2390 |