mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
qemu: format bootindex for vhost-user-fs
Wire up the QEMU command line for this option. Signed-off-by: Ján Tomko <jtomko@redhat.com> Tested-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
5b688e6dc1
commit
0e7907c10a
@ -2194,6 +2194,9 @@ qemuBuildVHostUserFsCommandLine(virCommandPtr cmd,
|
||||
virQEMUBuildBufferEscapeComma(&opt, fs->dst);
|
||||
qemuBuildVirtioOptionsStr(&opt, fs->virtio);
|
||||
|
||||
if (fs->info.bootIndex)
|
||||
virBufferAsprintf(&opt, ",bootindex=%u", fs->info.bootIndex);
|
||||
|
||||
if (qemuBuildDeviceAddressStr(&opt, def, &fs->info, priv->qemuCaps) < 0)
|
||||
return -1;
|
||||
|
||||
|
@ -42,7 +42,8 @@ addr=0x1 \
|
||||
-device virtio-blk-pci,bus=pci.4,addr=0x0,drive=libvirt-1-format,\
|
||||
id=virtio-disk0,bootindex=1 \
|
||||
-chardev socket,id=chr-vu-fs0,path=/tmp/lib/domain--1-guest/fs0.vhost-fs.sock \
|
||||
-device vhost-user-fs-pci,chardev=chr-vu-fs0,tag=mount_tag,bus=pci.1,addr=0x0 \
|
||||
-device vhost-user-fs-pci,chardev=chr-vu-fs0,tag=mount_tag,bootindex=2,\
|
||||
bus=pci.1,addr=0x0 \
|
||||
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\
|
||||
resourcecontrol=deny \
|
||||
-msg timestamp=on
|
||||
|
Loading…
x
Reference in New Issue
Block a user