mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-06-16 02:15:47 +00:00
kvmtool: set 9p caching mode to support writable mmaps
9p doesn't support writable mmaps by default (when cache=none), set it to loose caching to allow for writable mmaps. Reported-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Sasha Levin <sasha.levin@oracle.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
This commit is contained in:
+1
-1
@@ -590,7 +590,7 @@ static struct kvm *kvm_cmd_run_init(int argc, const char **argv)
|
||||
}
|
||||
|
||||
if (kvm->cfg.using_rootfs) {
|
||||
strcat(real_cmdline, " rw rootflags=trans=virtio,version=9p2000.L rootfstype=9p");
|
||||
strcat(real_cmdline, " rw rootflags=trans=virtio,version=9p2000.L,cache=loose rootfstype=9p");
|
||||
if (kvm->cfg.custom_rootfs) {
|
||||
kvm_run_set_sandbox(kvm);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user