Bug 1231808

Summary: REST API for host device passthrough
Product: Red Hat Enterprise Virtualization Manager Reporter: Michal Skrivanek <michal.skrivanek>
Component: ovirt-engineAssignee: Martin Betak <mbetak>
Status: CLOSED CURRENTRELEASE QA Contact: Nisim Simsolo <nsimsolo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.6.0CC: bazulay, gklein, istein, knoel, lpeer, lsurette, mavital, michal.skrivanek, mpoledni, nsimsolo, rbalakri, Rhev-m-bugs, sherold, srevivo, ykaul
Target Milestone: ovirt-3.6.0-rc   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
URL: http://www.ovirt.org/Features/hostdev_passthrough
Whiteboard:
Fixed In Version: 3.6.0-4 alpha3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 825045 Environment:
Last Closed: 2016-04-20 01:10:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 825045    
Bug Blocks:    

Description Michal Skrivanek 2015-06-15 12:37:22 UTC
REST API for host device passthrough (PCI, USB) is currently missing

Comment 1 Karen Noel 2015-06-15 15:17:49 UTC
Is this for device passthrough or PCI device assignment? Or both? What libvirt APIs or XML are used? Thanks.

Comment 2 Martin Polednik 2015-06-16 11:01:04 UTC
It is for both as the feature "host device passthrough" currently means pci and usb passthrough. Libvirt's virNodeDevice is used for device manipulation and "hostdev" XML element is used for the device itself.

Comment 3 Nisim Simsolo 2015-11-18 15:38:27 UTC
Verified using build: rhevm-3.6.0.3-0.1.el6 (3.6.0-20)
Verification scenario: 
1. Get host devices.
2. Get specific host device.
3. Post host devices to VM, run VM and verify devices are attached.
4. Get VM attached host devices.
5. Verify VM host device cannot be deleted when VM is running.
6. Power off VM and delete host devices.

Test plan added to external tracker.