Bug 1371817

Summary: Cannot install VF driver in windows 2008 R2 guest
Product: Red Hat Enterprise Linux 7 Reporter: xixizhang <xixzhang>
Component: qemu-kvm-rhevAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: juzhang, virt-maint, yfu
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-31 09:24:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description xixizhang 2016-08-31 08:12:06 UTC
Description of problem:
bring up VFs with parent Qlogic nic, unbind and assign a VF to a guest. In the guest, we cannot install the VF driver, while we can install the PF driver.

Version-Release number of selected component (if applicable):
host:
     kernel:kernel-3.10.0-495.el7.x86_64
     qemu-kvm:qemu-kvm-rhev-2.6.0-22.el7.x86_64
guest:  windows_server_2008_r2_standard_enterprise_datacenter_and_web_with_sp1_x64_dvd_617601


How reproducible:
100%

Steps to Reproduce:
1.bring up VFs with parent Qlogic nic:
# echo 8 > /sys/bus/pci/devices/0000\:07\:00.0/sriov_numvfs
2.unbind a VF and assign it to vfio-pci:
# echo 0000:07:02.0 > /sys/bus/pci/devices/0000\:07\:02.0/driver/unbind
# echo 1077 8430 > /sys/bus/pci/drivers/vfio-pci/new_id
# echo 1077 8430 > /sys/bus/pci/drivers/vfio-pci/remove_id
3.boot guest with assigned VF
-device vfio-pci,host=07:02.0,id=vf0 \
4.remote-viewer vnc://10.73.73.73:5900
5.download driver and install driver for VF
http://driverdownloads.qlogic.com/QLogicDriverDownloads_UI/SearchByProduct.aspx?ProductCategory=322&Product=1186&Os=190

Actual results:
In qemu,
(qemu) info pci
Bus  0, device   4, function 0:
    Ethernet controller: PCI device 1077:8430
      BAR0: 64 bit prefetchable memory at 0xfe800000 [0xfe803fff].
      BAR2: 64 bit prefetchable memory at 0xfe804000 [0xfe805fff].
      BAR4: 64 bit prefetchable memory at 0xfe806000 [0xfe806fff].
      id "vf0"
In guest,there is an Ethernet Controller (Location: PCI Slot 4) in Device Manager. When installing the driver, it shows:
      Windows was unable to install your Ethernet Controller
      Windows could not find driver software for your device.
      If you know the manufacture of your device, you can visit its website and check the support section for driver software.

Expected results:
the driver can be installed successfully.

Additional info:
We have tried the previous version of the driver, neither of them can be installed.

Comment 1 xixizhang 2016-08-31 09:24:48 UTC
submit the bug repeatly