aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-02 15:18:20 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-02 15:18:20 -0300
commit85c1d9c4ad3bca29db4abd51b0bcdca6df72ebcf (patch)
tree58bc7ae19d1b1f5a87abc7f32da1afd629a388b7
parent99471a34388d57131e144ad32f63d868e5217fe7 (diff)
downloadkvmx-85c1d9c4ad3bca29db4abd51b0bcdca6df72ebcf.tar.gz
kvmx-85c1d9c4ad3bca29db4abd51b0bcdca6df72ebcf.tar.bz2
Feat: Increase default msize for 9p mounts to 4MiB
-rw-r--r--ChangeLog.md4
-rwxr-xr-xkvmx2
-rw-r--r--kvmxfile13
3 files changed, 14 insertions, 5 deletions
diff --git a/ChangeLog.md b/ChangeLog.md
index 4e6c394..490d1f2 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,6 +1,8 @@
# ChangeLog
-## 0.1.1 - unreleased
+## 0.1.1 - 2024-07-02
+
+* Increase default `msize` for 9p mounts to 4MiB.
* QEMU parameter updates:
* Update `nowait` to `wait=off`.
diff --git a/kvmx b/kvmx
index 2756896..3780cee 100755
--- a/kvmx
+++ b/kvmx
@@ -461,7 +461,7 @@ function kvmx_up {
fi
if [ -z "$shared_folder_msize" ]; then
- shared_folders_msize="524288"
+ shared_folders_msize="4194304"
fi
if [ -z "$shared_folders_cache" ]; then
diff --git a/kvmxfile b/kvmxfile
index 2ce7ee0..0ecfbab 100644
--- a/kvmxfile
+++ b/kvmxfile
@@ -43,10 +43,17 @@ net="user"
# Format: <id1>:<host-folder1>:<guest-mountpoint1>,<id2>:<host-folder2>:<guest-mountpoint2>[,...]
#shared_folders="shared1:.:/home/$user/code/$VM,shared2:$HOME/.local/share/app:/home/$user/.local/share/app"
-# Maximum packet size including any headers for shared folders using 9p
-# See https://forums.lime-technology.com/topic/34691-9p-sharing-speed-not-what-i-expected/
+# Maximum packet size in bytex including any headers for shared folders using 9p
+# In the past this was limited to 500kB: https://lwn.net/Articles/901523/
+#
+# See https://wiki.qemu.org/Documentation/9psetup
+# https://wiki.qemu.org/Documentation/9p
+# https://www.kernel.org/doc/html/latest/filesystems/9p.html
# https://github.com/clearcontainers/hyperstart/pull/25
-#shared_folders_msize="524288"
+# https://issues.guix.gnu.org/47225
+#
+# Example: 4194304 bytes = 4MiB
+#shared_folders_msize="4194304"
# Shared folders caching
# See https://www.kernel.org/doc/Documentation/filesystems/9p.txt