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 1264749 - any_layout does not work if the peer netdev is vhost-user.
Summary: any_layout does not work if the peer netdev is vhost-user.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: jason wang
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-21 06:54 UTC by Qian Guo
Modified: 2023-09-14 03:05 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-23 01:05:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Qian Guo 2015-09-21 06:54:31 UTC
Description of problem:
When set any_layout=on, it is not enabled inside guest and via "info qtree"

Version-Release number of selected component (if applicable):
qemu-kvm-rhev-2.3.0-24.el7.x86_64

guest&host kernel-3.10.0-316.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Boot guest with vhost-user, and set any_layout enabled:

/usr/libexec/qemu-kvm \
-name rhel71-br0-1 \
-S \
-machine pc-i440fx-rhel7.2.0,accel=kvm,usb=off \
-cpu IvyBridge \
-m 4096 -realtime mlock=off -smp 4,sockets=4,cores=1,threads=1 \
-object memory-backend-file,prealloc=yes,mem-path=/dev/hugepages/qemu,share=on,size=4096M,id=ram-node0 \
-numa node,nodeid=0,cpus=0-3,memdev=ram-node0 \
-uuid 7907dc99-aa2d-4a3e-9fca-6087f3cfbbe6 \
-no-user-config -nodefaults  \
-rtc base=utc,driftfix=slew \
-global kvm-pit.lost_tick_policy=discard \
-no-hpet -no-shutdown -boot menu=on \
-drive file=/home/rhel72cp1.qcow2,if=none,id=drive-virtio-disk0,format=qcow2 \
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 \
-chardev socket,id=charnet0,path=/var/run/openvswitch/vhost-user1 \
-netdev type=vhost-user,id=hostnet0,chardev=charnet0 \
-device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:01:0b:11,bus=pci.0,addr=0x9,any_layout=on  \
-chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 \
-spice port=5901,disable-ticketing,seamless-migration=on \
-device qxl,id=video0,ram_size=67108864,vram_size=67108864,vgamem_mb=16,bus=pci.0,addr=0xe  \
-msg timestamp=on -monitor stdio \


2. Check info qtree
(qemu) info qtree

3.Check inside guest.

Actual results:
(qemu) info qtree
...
            any_layout = false

Guest # cat /sys/class/net/ens9/device/features 
0000010000000001011001000000000000000000000000000000000000000000

The 27th bit is "0"

Expected results:
any_layout should be enabled if it is set on in qemu cli

Additional info:
1.This bug is not regression, I tried with qemu-kvm-rhev-2.1.2-23.el7.x86_64(7.1GA), can hit such issue too.

2.With tun/tap, works well.

Comment 1 jason wang 2015-09-23 01:05:02 UTC
(In reply to Qian Guo from comment #0)
> Description of problem:
> When set any_layout=on, it is not enabled inside guest and via "info qtree"
> 
> Version-Release number of selected component (if applicable):
> qemu-kvm-rhev-2.3.0-24.el7.x86_64
> 
> guest&host kernel-3.10.0-316.el7.x86_64
> 
> How reproducible:
> 100%
> 
> Steps to Reproduce:
> 1.Boot guest with vhost-user, and set any_layout enabled:
> 
> /usr/libexec/qemu-kvm \
> -name rhel71-br0-1 \
> -S \
> -machine pc-i440fx-rhel7.2.0,accel=kvm,usb=off \
> -cpu IvyBridge \
> -m 4096 -realtime mlock=off -smp 4,sockets=4,cores=1,threads=1 \
> -object
> memory-backend-file,prealloc=yes,mem-path=/dev/hugepages/qemu,share=on,
> size=4096M,id=ram-node0 \
> -numa node,nodeid=0,cpus=0-3,memdev=ram-node0 \
> -uuid 7907dc99-aa2d-4a3e-9fca-6087f3cfbbe6 \
> -no-user-config -nodefaults  \
> -rtc base=utc,driftfix=slew \
> -global kvm-pit.lost_tick_policy=discard \
> -no-hpet -no-shutdown -boot menu=on \
> -drive file=/home/rhel72cp1.qcow2,if=none,id=drive-virtio-disk0,format=qcow2
> \
> -device
> virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,
> id=virtio-disk0,bootindex=1 \
> -chardev socket,id=charnet0,path=/var/run/openvswitch/vhost-user1 \
> -netdev type=vhost-user,id=hostnet0,chardev=charnet0 \
> -device
> virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:01:0b:11,bus=pci.0,
> addr=0x9,any_layout=on  \
> -chardev pty,id=charserial0 -device
> isa-serial,chardev=charserial0,id=serial0 \
> -spice port=5901,disable-ticketing,seamless-migration=on \
> -device
> qxl,id=video0,ram_size=67108864,vram_size=67108864,vgamem_mb=16,bus=pci.0,
> addr=0xe  \
> -msg timestamp=on -monitor stdio \
> 
> 
> 2. Check info qtree
> (qemu) info qtree
> 
> 3.Check inside guest.
> 
> Actual results:
> (qemu) info qtree
> ...
>             any_layout = false
> 
> Guest # cat /sys/class/net/ens9/device/features 
> 0000010000000001011001000000000000000000000000000000000000000000
> 
> The 27th bit is "0"
> 
> Expected results:
> any_layout should be enabled if it is set on in qemu cli

It was actually done through negotiation which mean if backend (vhost-user) does not support this, it was still disabled. You may need to check the features that supported by your backend. Anyway, it was not a bug of qemu. So I will close this as not a bug :)

> 
> Additional info:
> 1.This bug is not regression, I tried with
> qemu-kvm-rhev-2.1.2-23.el7.x86_64(7.1GA), can hit such issue too.
> 
> 2.With tun/tap, works well.

Comment 3 Red Hat Bugzilla 2023-09-14 03:05:37 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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