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 2065381 - Libvirt multiqueue support for vDPA [rhel-9.1.0]
Summary: Libvirt multiqueue support for vDPA [rhel-9.1.0]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: libvirt
Version: 9.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Jonathon Jongsma
QA Contact: yalzhang@redhat.com
URL:
Whiteboard:
Depends On: 2024406
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-17 18:45 UTC by RHEL Program Management Team
Modified: 2022-11-15 10:39 UTC (History)
17 users (show)

Fixed In Version: libvirt-8.2.0-1.el9
Doc Type: Enhancement
Doc Text:
Clone Of: 2024406
Environment:
Last Closed: 2022-11-15 10:03:40 UTC
Type: Feature Request
Target Upstream Version: 8.2.0
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github autotest tp-libvirt pull 4127 0 None Merged vDPA: Add some test scenarios for interface queues 2022-05-09 07:19:22 UTC
Red Hat Issue Tracker LIBVIRTAT-12832 0 None None None 2022-06-23 03:12:59 UTC
Red Hat Issue Tracker LIBVIRTAT-12839 0 None None None 2022-06-23 03:12:59 UTC
Red Hat Issue Tracker RHELPLAN-115995 0 None None None 2022-03-17 18:54:28 UTC
Red Hat Product Errata RHSA-2022:8003 0 None None None 2022-11-15 10:04:28 UTC

Comment 1 Jiri Denemark 2022-03-18 11:50:12 UTC
Pushed upstream as

commit a5e659f071ae5f5fc9aadb46ad7c31736425f8cf
Author:     Jonathon Jongsma <jjongsma>
AuthorDate: Tue Mar 1 16:55:21 2022 -0600
Commit:     Jonathon Jongsma <jjongsma>
CommitDate: Wed Mar 9 16:23:02 2022 -0600

    qemu: support multiqueue for vdpa net device
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2024406
    
    Signed-off-by: Jonathon Jongsma <jjongsma>
    Reviewed-by: Martin Kletzander <mkletzan>

Comment 2 yalzhang@redhat.com 2022-04-12 06:33:33 UTC
Test with below packages:
# rpm -q libvirt qemu-kvm kernel iproute 
libvirt-8.2.0-1.el9.x86_64
qemu-kvm-6.2.0-12.el9.x86_64
kernel-5.14.0-77.kpq0.el9_0.x86_64
iproute-5.15.0-2.2.el9_0.x86_64

Start vm with multiqueue:
1. create the vdpa devices with multiqueues
# sh ovs_init.sh  0000:5e:00.0  4
(the script includes command "vdpa dev add name vdpa${i} mgmtdev pci/$pci_addr mac 00:11:22:33:44:${i}${i} max_vqp 8")

2. start vm with multiqueue:
# virsh edit rhel
...
<vcpu placement='static'>4</vcpu>
...
<interface type='vdpa'>
      <mac address='00:11:22:33:44:00'/>
      <source dev='/dev/vhost-vdpa-0'/>
      <model type='virtio'/>
      <driver queues='8'/>
      <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
    </interface>

# virsh start rhel 
Domain 'rhel' started

3. login vm and check the queues:
[root@localhost ~]# ip l show enp7s0
3: enp7s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 00:11:22:33:44:00 brd ff:ff:ff:ff:ff:ff
[root@localhost ~]# ethtool -l enp7s0
Channel parameters for enp7s0:
Pre-set maximums:
RX:		n/a
TX:		n/a
Other:		n/a
Combined:	8
Current hardware settings:
RX:		n/a
TX:		n/a
Other:		n/a
Combined:	4
[root@localhost ~]# ethtool -L enp7s0 combined 6 
[root@localhost ~]# ethtool -l enp7s0
Channel parameters for enp7s0:
Pre-set maximums:
RX:		n/a
TX:		n/a
Other:		n/a
Combined:	8
Current hardware settings:
RX:		n/a
TX:		n/a
Other:		n/a
Combined:	6

4. On the host, configure the ip address for enp94s0f0np0_br
# ifconfig enp94s0f0np0_br 100.100.100.100/24
On the guest, configure the interface's ip as 100.100.100.50/24
On host, ping guest:
# ping 100.100.100.50 -c 3
PING 100.100.100.50 (100.100.100.50) 56(84) bytes of data.
64 bytes from 100.100.100.50: icmp_seq=1 ttl=64 time=0.228 ms
64 bytes from 100.100.100.50: icmp_seq=2 ttl=64 time=0.272 ms
......

hotplug vdpa interface with multiqueue:
1. start vm without vdpa interface;
2. hotplug vdpa interface with multiqueue:
# cat vdpa_interface.xml 
<interface type='vdpa'>
      <mac address='00:11:22:33:44:00'/>
      <source dev='/dev/vhost-vdpa-0'/>
      <model type='virtio'/>
      <driver queues='8'/>
    </interface>
# virsh attach-device rhel vdpa_interface.xml 
Device attached successfully

login vm and check:
[root@localhost ~]# ip l show enp7s0
3: enp7s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 00:11:22:33:44:00 brd ff:ff:ff:ff:ff:ff

[root@localhost ~]# ethtool -l enp7s0
Channel parameters for enp7s0:
Pre-set maximums:
RX:		n/a
TX:		n/a
Other:		n/a
Combined:	8
Current hardware settings:
RX:		n/a
TX:		n/a
Other:		n/a
Combined:	4
[root@localhost ~]# 
[root@localhost ~]# ethtool -L enp7s0  combined 8 
[root@localhost ~]# ethtool -l enp7s0
Channel parameters for enp7s0:
Pre-set maximums:
RX:		n/a
TX:		n/a
Other:		n/a
Combined:	8
Current hardware settings:
RX:		n/a
TX:		n/a
Other:		n/a
Combined:	8

[root@localhost ~]# ping 100.100.100.100
PING 100.100.100.100 (100.100.100.100) 56(84) bytes of data.
64 bytes from 100.100.100.100: icmp_seq=1 ttl=64 time=25.1 ms

--- 100.100.100.100 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 25.120/25.120/25.120/0.000 ms

Comment 5 yalzhang@redhat.com 2022-04-19 08:31:04 UTC
Test the scenarios in comment 2 again, the result is as expected.

Comment 7 errata-xmlrpc 2022-11-15 10:03:40 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 (Low: libvirt security, bug fix, and enhancement update), 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/RHSA-2022:8003


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