7 Star 29 Fork 7

Gitee 极速下载 / v86

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/copy/v86
克隆/下载
filesystem.md 872 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ryan 提交于 2023-12-14 23:15 . Improve documentation some more (#955)

A 9p filesystem is supported by v86, using a virtio transport. Using it, files can be exchanged with the guest OS, see create_file and read_file in starter.js. It can be enabled by passing the following options to V86:

filesystem: {
    basefs: "../9p/fs.json",
    baseurl: "../9p/base/",
}

Here, basefs is a json file created using fs2json. The base url is the prefix of a url from which the files are available. For instance, if the 9p filesystem has a file /bin/sh, that file must be accessible from http://localhost/9p/base/bin/sh. If basefs and baseurl are omitted, an empty 9p filesystem is created.

The mount_tag of the 9p device is host9p. In order to mount it in the guest, use:

mount -t 9p host9p /mnt/9p/
C/C++
1
https://gitee.com/mirrors/v86.git
git@gitee.com:mirrors/v86.git
mirrors
v86
v86
master

搜索帮助