virt-manager/virtinst
Jonathon Jongsma 0c146b2503 Handle new nodedev name for mediated devices
libvirt recently changed the nodedev names for mediated devices due to
the fact that mdevctl supports defining multiple mediated devices with
the same UUID as long as only one is active at a time. This means that
the nodedev name changed from the format 'mdev_$UUID' to the format
'mdev_$UUID_$PARENT'.

Unfortunately, virt-install was parsing the nodedev name to extract the
UUID of a mediated device. This fails with the new name format.
Fortunately, in libvirt 7.3.0, a <uuid> field was added to the xml
schema for mdev devices, so we can simply use this instead, and fall
back to the name parsing if it doesn't exist.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
2021-11-10 14:58:07 +00:00
..
devices devices: interface: Add support for testing different mac addresses 2021-10-12 15:14:06 -04:00
domain cli: --cpu: code cleanup & reordering 2021-10-04 15:10:10 -04:00
install cloudinit: Rename variable to make codespell happy 2021-10-04 16:32:17 -04:00
__init__.py i18n: globally install also the ngettext function 2020-07-14 11:24:14 -04:00
_progresspriv.py tests: Add full test coverage for progress text output 2021-06-09 16:52:12 -04:00
buildconfig.py Prep for release 3.2.0 2020-11-14 16:15:22 -05:00
capabilities.py i18n: fix string puzzles in capabilities lookup error msgs 2020-09-17 15:38:42 -04:00
cli.py cli: --cloud-init add network-config option 2021-10-04 16:31:39 -04:00
cloner.py cloner: mark transient_shareBacking disk as shareable 2021-06-22 12:47:28 -04:00
connection.py Fix some pylint, exclude some new warnings 2021-10-04 16:04:33 -04:00
diskbackend.py progress: Some internal API cleanup 2021-05-22 14:56:10 -04:00
domcapabilities.py graphics: Check domcaps for whether spice is available 2021-06-08 10:36:19 -04:00
generatename.py generatename: Move libvirt collision handling to callers 2019-06-11 17:54:45 -04:00
guest.py cli: --boot: Completed options for host-based bootloader 2021-07-29 11:44:57 -04:00
logger.py tests: abide logging options for clitests 2019-12-11 17:57:28 -05:00
network.py hostnets: Remove SR-IOV info listing 2019-06-16 23:48:51 -04:00
nodedev.py Handle new nodedev name for mediated devices 2021-11-10 14:58:07 +00:00
osdict.py osdict: Handle possible conflicting os named 'generic' 2020-10-21 18:49:11 -04:00
pollhelpers.py objects: Erase the notion of connkey 2020-09-01 14:27:11 -04:00
progress.py progress: Drop tqdm and revert back to local urlgrabber copy 2021-06-09 16:52:11 -04:00
snapshot.py virtinst: move UI only functions into virtManager 2019-06-09 18:33:45 -04:00
storage.py virtinst: Use consistent format for meter filename strings 2021-05-22 14:56:10 -04:00
support.py Fix some pylint, exclude some new warnings 2021-10-04 16:04:33 -04:00
uri.py xmlutil: add a diff() helper 2020-09-05 15:49:55 -04:00
virtclone.py Remove shebangs from library paths 2021-06-22 19:54:37 -04:00
virtinstall.py Fix some pylint, exclude some new warnings 2021-10-04 16:04:33 -04:00
virtxml.py virt-xml: Don't regenerate defaults if both hotplugging and defining 2021-10-12 15:15:08 -04:00
xmlapi.py cli: Add --xml xpath option for virt-install and virt-xml 2020-09-11 15:04:37 -04:00
xmlbuilder.py xmlbuilder: Make embedded device XML print correctly 2021-10-12 15:10:39 -04:00
xmlutil.py xmlutil: add a diff() helper 2020-09-05 15:49:55 -04:00