Bug 683295 - qemu-kvm: Invalid parameter 'vhostforce'
Summary: qemu-kvm: Invalid parameter 'vhostforce'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.1
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: jason wang
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 580954 674562
TreeView+ depends on / blocked
 
Reported: 2011-03-09 02:12 UTC by Amos Kong
Modified: 2015-05-25 00:06 UTC (History)
4 users (show)

Fixed In Version: qemu-kvm-0.12.1.2-2.151.el6
Doc Type: Bug Fix
Doc Text:
Cause: bug in the qemu option parse code. Consequence: vhost_force option could not be used. Fix: Fix qemu option parsing code. Result: vhost_force option could be used to force start vhost_net backend.
Clone Of:
Environment:
Last Closed: 2011-05-19 11:28:52 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:0534 0 normal SHIPPED_LIVE Important: qemu-kvm security, bug fix, and enhancement update 2011-05-19 11:20:36 UTC

Description Amos Kong 2011-03-09 02:12:37 UTC
Description of problem:
vhostforce can't be used with '-netdev tap,...,forcevhost=off' ?


Version-Release number of selected component (if applicable):
qemu-kvm-debuginfo-0.12.1.2-2.148.el6.x86_64
qemu-img-0.12.1.2-2.148.el6.x86_64
qemu-kvm-tools-0.12.1.2-2.148.el6.x86_64
gpxe-roms-qemu-0.9.7-6.4.el6.noarch
qemu-kvm-0.12.1.2-2.148.el6.x86_64

How reproducible:


Steps to Reproduce:
1. start guest with '-netdev tap,...,forcevhost=off'

  
Actual results:
qemu exits, error msg:
qemu: -netdev tap,id=idgzAJ1F,vhost=on,ifname=t0-113608-cltH,script=/etc/qemu-ifup,downscript=no,forcevhost=off: Invalid parameter 'forcevhost'

Expected results:
Guest can boot up successfully 

Additional info:

# qemu-kvm -drive file='/mnt/linux/RHEL-Server-5.6-64-virtio.qcow2',index=0,if=none,id=drive-virtio-disk1,media=disk,cache=none,format=qcow2,aio=native,snapshot=on
 -device
virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk1,id=virtio-disk1
-device
virtio-net-pci,netdev=idqJrk0t,mac=9a:0c:2b:2e:ab:13,netdev=idqJrk0t,id=ndev00idqJrk0t,bus=pci.0,addr=0x3
-netdev
tap,id=idqJrk0t,vhost=on,ifname='t0-165012-Ywsy',script='/etc/qemu-ifup',downscript='no',vhostforce=off ...

Comment 6 Amos Kong 2011-03-21 08:54:57 UTC
'vhostforce' option can be used in qemu-kvm-0.12.1.2-2.151.el6

I checked by perf tool, vhost_net can be forced enabled for rhel5/4 when 'vhostforce' is 'on' in fixed version.

So moving to VERIFIED.

Comment 7 jason wang 2011-05-05 09:48:48 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause: bug in the qemu option parse code.

Consequence: vhost_force option could not be used.

Fix: Fix qemu option parsing code.

Result: vhost_force option could be used to force start vhost_net backend.

Comment 8 errata-xmlrpc 2011-05-19 11:28:52 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0534.html

Comment 9 errata-xmlrpc 2011-05-19 13:02:00 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0534.html


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