Rejoice!
Uncategorized
1
Posts
1
Posters
0
Views
-
Rejoice! As a new feature has landed in the smol kernel π
I've added pv(4) glue for the qemufwcfg(4) driver which allows to pass data / files from the host to the guest via a mountable virtual drive https://wiki.osdev.org/QEMU_fw_cfg (as always, 3rd party websites explain the feature better than QEMU's own documentation), example with smolBSD:
```
$ ./startnb.sh -i images/base-amd64.img -x '-fw_cfg opt/org.smolbsd.hosts,file=/etc/hosts'
[...]
# mount_qemufwcfg /mnt
# head -1 /mnt/opt/org.smolbsd.hosts
127.0.0.1 localhost
```
Code: https://github.com/NetBSD/src/compare/trunk...NetBSDfr:NetBSD-src:viocon_multiport_qemufwcfg
The feature is already available in smolBSD's kernel for amd64 and i386. -
undefined stefano@mastodon.bsd.cafe shared this topic