aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-02 17:40:02 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-02 17:40:02 -0300
commitf0ef5021f8c78e10f6667c4cdcee57bf0e550f50 (patch)
tree83750f32bd26a22f7c78c3ec3f49bf902ddbbaca
parent85c1d9c4ad3bca29db4abd51b0bcdca6df72ebcf (diff)
downloadkvmx-f0ef5021f8c78e10f6667c4cdcee57bf0e550f50.tar.gz
kvmx-f0ef5021f8c78e10f6667c4cdcee57bf0e550f50.tar.bz2
Fix: increase default msize for 9p mounts to 32MiB depending on kernel support
-rw-r--r--ChangeLog.md4
-rwxr-xr-xkvmx2
-rw-r--r--kvmxfile12
3 files changed, 14 insertions, 4 deletions
diff --git a/ChangeLog.md b/ChangeLog.md
index 490d1f2..0cd4080 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -2,7 +2,9 @@
## 0.1.1 - 2024-07-02
-* Increase default `msize` for 9p mounts to 4MiB.
+* Increase default `msize` for 9p mounts to 32MiB depending on kernel support,
+ which may only be effective depending on `trans_virtio` driver support for
+ sizes larger than 500kB.
* QEMU parameter updates:
* Update `nowait` to `wait=off`.
diff --git a/kvmx b/kvmx
index 3780cee..b694145 100755
--- a/kvmx
+++ b/kvmx
@@ -461,7 +461,7 @@ function kvmx_up {
fi
if [ -z "$shared_folder_msize" ]; then
- shared_folders_msize="4194304"
+ shared_folders_msize="33554432"
fi
if [ -z "$shared_folders_cache" ]; then
diff --git a/kvmxfile b/kvmxfile
index 0ecfbab..af2b0d8 100644
--- a/kvmxfile
+++ b/kvmxfile
@@ -52,8 +52,16 @@ net="user"
# https://github.com/clearcontainers/hyperstart/pull/25
# https://issues.guix.gnu.org/47225
#
-# Example: 4194304 bytes = 4MiB
-#shared_folders_msize="4194304"
+# Examples: 4194304 bytes = 4MiB
+# 16777216 bytes = 16MiB
+# 33554432 bytes = 32MiB
+#
+# Depending on upstream support (kernel and virtio), the underlying drivers may
+# cap this to a max, and give you the following message:
+#
+# 9pnet: Limiting 'msize' to 512000 as this is the maximum supported by transport virtio
+#
+#shared_folders_msize="33554432"
# Shared folders caching
# See https://www.kernel.org/doc/Documentation/filesystems/9p.txt