virt-manager/f87e96d3-hostdev-use-method-get_mdev_uuid.patch
Charles Arnold bd13425fed - jsc#SLE-20855 KVM: Enable vfio-ccw and vfio-ap in virt-* tools
965480e8-virt-install-add-mediated-device.patch
  f87e96d3-hostdev-use-method-get_mdev_uuid.patch
  9d4002ee-tests-verify-MDEV-support.patch
  9363e1e6-virt-xml-add-support-for-mediated-devices.patch
  0e15cd51-virt-manager-enable-MDEV-support.patch
- jsc#SLE-17764 - Dev: Support Oracle Linux as a guest VM. See also
  add-missing-oracle-linux-versions.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=554
2022-01-13 20:53:05 +00:00

23 lines
858 B
Diff

Subject: hostdev: use method get_mdev_uuid()
From: Shalini Chellathurai Saroja shalini@linux.ibm.com Mon May 31 21:54:27 2021 +0200
Date: Tue Jun 1 17:07:36 2021 -0400:
Git: f87e96d3d40891f1403601abc389c24800ba1069
Use method get_mdev_uuid() to retrieve the UUID of MDEV node device
object.
Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Shalini Chellathurai Saroja <shalini@linux.ibm.com>
--- a/virtinst/devices/hostdev.py
+++ b/virtinst/devices/hostdev.py
@@ -78,7 +78,7 @@ class DeviceHostdev(Device):
_("Don't know how to generate nodedev for mdev type id '%s'") %
nodedev.type_id)
- self.uuid = nodedev.name[5:].replace('_', '-')
+ self.uuid = nodedev.get_mdev_uuid()
else:
raise ValueError(_("Unknown node device type %s") % nodedev)