Bug 1283708 - USB Device passthrough should not be disabled when host doesn't support PCI passthrough
Summary: USB Device passthrough should not be disabled when host doesn't support PCI p...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Virt
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-3.6.2
: 3.6.2
Assignee: Martin Betak
QA Contact: Nisim Simsolo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-19 16:09 UTC by Martin Betak
Modified: 2016-02-18 11:19 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-18 11:19:31 UTC
oVirt Team: Virt
Embargoed:
michal.skrivanek: ovirt-3.6.z?
rule-engine: planning_ack?
michal.skrivanek: devel_ack+
rule-engine: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 48833 0 master MERGED backend: Check Host's device passthrough flag only for PCI devices Never
oVirt gerrit 48992 0 ovirt-engine-3.6 MERGED backend: Check Host's device passthrough flag only for PCI devices Never

Description Martin Betak 2015-11-19 16:09:29 UTC
Description of problem:
The current check of host's device passthrough capability should only be applicable to PCI devices and not other types of passthrough (e.g: USB).

Version-Release number of selected component (if applicable): 3.6.0

How reproducible: 100%

Steps to Reproduce:
1. Have host which is not configured for PCI passthrough
2. Attach a USB device from this host to a VM
3. Try to run the VM

Actual results:
Vm fails to run because it fails to satisfy the HostDeviceFilterPolicyUnit.

Expected results:
Vm should run successfully.

Comment 1 Sandro Bonazzola 2015-12-23 13:43:17 UTC
oVirt 3.6.2 RC1 has been released for testing, moving to ON_QA

Comment 2 Nisim Simsolo 2016-02-08 15:06:10 UTC
Verified using build: 
rhevm-3.6.3-0.1.el6
qemu-kvm-rhev-2.3.0-31.el7.4.x86_64
vdsm-4.17.19-0.el7ev.noarch
libvirt-client-1.2.17-13.el7_2.2.x86_64

Verification scenario:
1. Verify PCI passthrough is disabled at BIOS level (no Intel vt-d or AMD vi enabled).
2. Verify host IOMMU is disabled (cat /proc/cmdline).
3. Verify host device passthrough is disabled at: webadmin ==> hosts tab ==> general tab.
4. Attach USB device to VM (can be keyboard/mouse/flash drive etc.).
5. Run VM.
6. Verify USB device is attached to VM.
7. Try to run another VM with same device attached and verify VM cannot be run and rejected by webadmin with an appropriate message.
8. Power of VM and verify no errors/exception occurs (vdsm and engine logs).

Test case attached to external trackers.


Note You need to log in before you can comment on or make changes to this bug.