mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 19:33:39 +08:00
9db221ae73
This patch create a synthetic file system with mount tag v_synth when -virtfs_synth command line option is specified in qemu. The synthetic file system can be mounted in guest using 9p using the below command line mount -t 9p -oversion=9p2000.L,trans=virtio v_synth <mountpint> Synthetic file system enabled different qemu subsystem to register callbacks for read and write events from guest. The subsystem can create directories and files in the synthetic file system as show in ex below qemu_v9fs_synth_mkdir(NULL, 0777, "test2", &node); qemu_v9fs_synth_add_file(node, 0777, "testfile", my_test_read, NULL, NULL); Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> |
||
---|---|---|
.. | ||
file-op-9p.h | ||
qemu-fsdev-dummy.c | ||
qemu-fsdev.c | ||
qemu-fsdev.h |