]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
bhyve: fix virtio-9p src/dst order
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sat, 10 Oct 2020 04:08:07 +0000 (08:08 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 12 Oct 2020 11:24:21 +0000 (15:24 +0400)
For the virtio-9p bhyve command line argument, the proper order
is mount_tag=/path/to/host/dir, not the opposite.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/bhyve/bhyve_command.c
tests/bhyvexml2argvdata/bhyvexml2argv-fs-9p-readonly.args
tests/bhyvexml2argvdata/bhyvexml2argv-fs-9p.args

index 7606840f45f87d4ce8ac129775f8447e2902ef66..acf3a5a43320185338f8f7436c05e94bf9ed75e1 100644 (file)
@@ -607,8 +607,8 @@ bhyveBuildFSArgStr(const virDomainDef *def G_GNUC_UNUSED,
     virCommandAddArgFormat(cmd, "%d:%d,virtio-9p,%s=%s%s",
                            fs->info.addr.pci.slot,
                            fs->info.addr.pci.function,
-                           fs->src->path,
                            fs->dst,
+                           fs->src->path,
                            virBufferCurrentContent(&params));
 
     return 0;
index 193895574d8ea435d516fae45f46b1b4085f175a..bfcd88e3664e82396dd106239f9683a03ee8fca6 100644 (file)
@@ -7,4 +7,4 @@
 -s 0:0,hostbridge \
 -s 2:0,ahci,hd:/tmp/freebsd.img \
 -s 3:0,virtio-net,faketapdev,mac=52:54:00:b9:94:02 \
--s 4:0,virtio-9p,/shared/dir=shared_dir,ro bhyve
+-s 4:0,virtio-9p,shared_dir=/shared/dir,ro bhyve
index 0d27954432321f133ba55ed9117dc4efd1d47176..e890f7400b0cbddf0602a97d95d4d4befb25292e 100644 (file)
@@ -7,4 +7,4 @@
 -s 0:0,hostbridge \
 -s 2:0,ahci,hd:/tmp/freebsd.img \
 -s 3:0,virtio-net,faketapdev,mac=52:54:00:b9:94:02 \
--s 4:0,virtio-9p,/shared/dir=shared_dir bhyve
+-s 4:0,virtio-9p,shared_dir=/shared/dir bhyve