RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1549587 - [NetKVM] Add support in virtio-net Windows driver for VIRTIO_F_IOMMU_PLATFORM virtio feature
Summary: [NetKVM] Add support in virtio-net Windows driver for VIRTIO_F_IOMMU_PLATFORM...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virtio-win
Version: 7.6
Hardware: Unspecified
OS: Windows
medium
medium
Target Milestone: rc
: ---
Assignee: Yvugenfi@redhat.com
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1549577 1558351
TreeView+ depends on / blocked
 
Reported: 2018-02-27 13:21 UTC by Yvugenfi@redhat.com
Modified: 2019-11-15 06:28 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
NO_DOCS
Clone Of:
Environment:
Last Closed: 2018-10-30 16:21:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3413 0 None None None 2018-10-30 16:22:51 UTC

Description Yvugenfi@redhat.com 2018-02-27 13:21:48 UTC
Description of problem:
virtio-win drivers are not reporting VIRTIO_F_IOMMU_PLATFORM feature.

There are several things that should be done to fix it:

1. Ensure that Windows drivers are using Windows kernel DMA (easier for storage and network drivers that are already using framework specific APIs, additional work should be done for WDF based drivers).

2. Report the feature.

Additional BZs will be opened for each of the drivers.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Yvugenfi@redhat.com 2018-03-19 16:21:04 UTC
Please test on Windows 10 and Windows Server 2016.

To test virtio-net device add:

-device intel-iommu,intremap=on,caching-mode=on,eim=on,device-iotlb=on 
-device virtio-net-pci,netdev=hostnet2,...,iommu_platform=on,ats=on,disable-legacy=on,disable-modern=off \

With the old driver, the installation will fail. With the new driver, it will succeed.

Comment 3 Yu Wang 2018-04-17 09:07:33 UTC
With build 149, cannot install driver successfully, code10
With build 150, can install driver successfully ,can get valid ip and ping out.

version:
kernel-3.10.0-871.el7.x86_64
qemu-kvm-rhev-2.10.0-21.el7.x86_64
virtio-win-prewhql-150

boot command line:

/usr/libexec/qemu-kvm -M pc,kernel-irqchip=split -name acceptance -enable-kvm -m 2G -smp 2 -uuid 2fd41914-5019-4d17-a6cc-fa688ba516f5 -nodefconfig -nodefaults -rtc base=localtime,driftfix=slew -boot order=cd,menu=on -object iothread,id=thread0 -drive file=win10-64-virtio.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,serial=mike_cao,cache=none -device virtio-blk-pci,iothread=thread0,scsi=off,drive=drive-virtio-disk0,id=virtio-disk0 -drive file=/home/whql_autotest/en_windows_7_ultimate_with_sp1_x86_dvd_u_677460.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=1,drive=drive-ide0-1-0,id=ide0-1-0 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=isa_serial0 -vnc 0.0.0.0:1 -vga std -qmp tcp:0:4448,server,nowait -monitor stdio -cdrom /home/virtio-win-prewhql-0.1-150.iso -device virtio-net-pci,mac=9a:86:87:88:89:8a,id=idRB0WNk,vectors=4,netdev=idb3O1YX,disable-legacy=on,disable-modern=off,iommu_platform=on,ats=on -netdev tap,id=idb3O1YX,vhost=on,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown,vhostforce

Comment 4 Yu Wang 2018-04-17 09:10:24 UTC
Hi Yan,

Are "installing driver successfully" and "getting valid ip and ping out." enough ?
Do we have other method to check this feature?

Thanks
Yu Wang

Comment 5 Yvugenfi@redhat.com 2018-04-17 09:17:04 UTC
(In reply to Yu Wang from comment #4)
> Hi Yan,
> 
> Are "installing driver successfully" and "getting valid ip and ping out."
> enough ?
> Do we have other method to check this feature?
> 
> Thanks
> Yu Wang

Yes, it is enough. Thanks a lot!

Comment 6 Yu Wang 2018-04-17 09:26:08 UTC
According to comment#3 and comment#5 , change status to verified

Comment 7 lijin 2018-04-17 09:56:15 UTC
(In reply to Yan Vugenfirer from comment #2)
> Please test on Windows 10 and Windows Server 2016.

Does this means iommu is only enabled on windows 10 and windows 2016 only?
If yes, is there any reason for it?

Comment 8 Yvugenfi@redhat.com 2018-04-17 10:54:50 UTC
(In reply to lijin from comment #7)
> (In reply to Yan Vugenfirer from comment #2)
> > Please test on Windows 10 and Windows Server 2016.
> 
> Does this means iommu is only enabled on windows 10 and windows 2016 only?
> If yes, is there any reason for it?

The reason is the availability of OS support. Even in Windows 10 we cannot be 100% sure if Windows chooses to use IOMMU or not.

Comment 9 Danilo de Paula 2018-08-21 14:09:17 UTC
Can we have QA, PM and Release flags for this, please?

Comment 10 Danilo de Paula 2018-08-21 14:37:59 UTC
Can we have QA, PM and Release flags for this, please?

Li Jin, do you know who can provide that ack? I can't build an official 
package without it.

Comment 11 Danilo de Paula 2018-08-21 14:41:42 UTC
Martin, can you provide pm_ack+, please?

Thanks

Comment 13 errata-xmlrpc 2018-10-30 16:21:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3413

Comment 14 Yu Wang 2018-11-23 09:42:20 UTC
Hi Yan,

I have a question about this bug:
Can our windows driver (including netkvm/viostor) "truely" support iommu function? Or this driver only can be installed successfully with "iommu_platform=on"

Thanks
Yu Wang


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