]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: vhost user: support for bootindex
authorzhang bo <oscar.zhangbo@huawei.com>
Fri, 13 Mar 2015 09:17:46 +0000 (17:17 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 18 Mar 2015 17:39:09 +0000 (18:39 +0100)
commit39ac323063101c67e5d930195b65cf3364e5323d
tree9b04f6ca7db19ae99352c2821f302e2c51bad28b
parentc630b48006c5cbb4a7bc256f39e5f8af183e64cb
util: vhost user: support for bootindex

Problem Description:
When we set boot order for a vhost-user network interface, we found the boot index
doesn't work.

Cause of the Problem:
In the function qemuBuildVhostuserCommandLine(), it forcely set the arg bootindex of
function qemuBuildNicDevStr() to 0. Thus, the bootindex parameter got missing.

Solution:
Trans the arg bootindex down.

Signed-off-by: Gao Haifeng <gaohaifeng.gao@huawei.com>
Signed-off-by: Zhang Bo <oscar.zhangbo@huawei.com>
src/qemu/qemu_command.c