Change in vdsm[master]: hostdev: add support for reporting scsi addresses

mpolednik at redhat.com mpolednik at redhat.com
Tue Dec 2 12:04:34 UTC 2014


Martin Polednik has uploaded a new change for review.

Change subject: hostdev: add support for reporting scsi addresses
......................................................................

hostdev: add support for reporting scsi addresses

This patch extends the addr field in hostdev tree that holds map of
address fields relevant to the device. This is required in order to
passthrough a scsi device

Change-Id: I5219108fb820f302d0abbde598183e8e8de534c2
Signed-off-by: Martin Polednik <mpolednik at redhat.com>
---
M vdsm/hostdev.py
1 file changed, 6 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/83/35783/1

diff --git a/vdsm/hostdev.py b/vdsm/hostdev.py
index 733e6d4..e8cdc0a 100644
--- a/vdsm/hostdev.py
+++ b/vdsm/hostdev.py
@@ -35,11 +35,16 @@
     return _parse_address(caps, ('domain', 'bus', 'slot', 'function'))
 
 
+def _parse_scsi_address(caps):
+    return _parse_address(caps, ('host', 'bus', 'target', 'lun'))
+
+
 def _parse_device_params(device_xml):
     """
     Process device_xml and return dict of found known parameters
     """
-    address_parser = {'pci': _parse_pci_address}
+    address_parser = {'pci': _parse_pci_address,
+                      'scsi': _parse_scsi_address}
 
     params = {}
 


-- 
To view, visit http://gerrit.ovirt.org/35783
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5219108fb820f302d0abbde598183e8e8de534c2
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Martin Polednik <mpolednik at redhat.com>


More information about the vdsm-patches mailing list