This website requires JavaScript.
Explore
Help
Register
Sign In
jarod
/
unkernel
Watch
1
Star
0
Fork
0
You've already forked unkernel
mirror of
https://github.com/pithings/unkernel.git
synced
2026-12-02 04:30:41 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
fda0adc839518052cc692f775fc7aa50ea2881c8
unkernel
/
js
History
Pooya Parsa
4e5855569f
js: share snapshot memories of 2 GiB or more instead of transferring them, so a 2 GiB machine can suspend and resume in Chrome, which neither allocates nor posts a plain ArrayBuffer that large
2026-11-22 23:28:58 +00:00
..
core
js: share snapshot memories of 2 GiB or more instead of transferring them, so a 2 GiB machine can suspend and resume in Chrome, which neither allocates nor posts a plain ArrayBuffer that large
2026-11-22 23:28:58 +00:00
node
guest, kernel: boot faster and carry less in the base: /init looks for the data disk and the distro image on kwblk's disks only (wd*) and the kernel has no RAM disks (CONFIG_BLK_DEV_RAM off: probing brd's 16 took about 130 ms a boot); /init and rc read files with the shell instead of head; DHCP runs in the background (net background, net wait: the console's shell starts before the lease, kwtty serve and Debian's services with start links wait for it); the bundle stores the initrd uncompressed; wlandr moves from the base to the Debian image (wland says so where there is none); the checkout's CLI turns on Node's compile cache before it loads the SDK
2026-11-22 14:46:21 +00:00
web
js, guest: let the data disk grow past its 4 GiB template: openDataDisk({ size }) (and the data disk spec's size) makes a new disk that large or relabels a smaller saved one to it, never shrinking, and the base's /init grows /data's ext4 to its device with kwbox growfs (EXT4_IOC_RESIZE_FS)
2026-11-22 22:56:21 +00:00
cli.ts
guest, js: one program for the guest tools, and a Debian boot read from the image's front: kwbox (/usr/bin/kwbox, guest/src/kwbox.c) links kwtty, kw9p, kwvsock, kwshm, kwwasi, kwcmd and vtest-bridge into one static binary, called as kwbox tty|9p|vsock|shm|wasi|cmd|vtest (the per-tool paths are gone but binfmt's interpreter /usr/lib/kw/kwwasi; any other name it is called by is a host command, and kwbox is a reserved command name); /init sends an image or upper whose init still runs /usr/bin/kwtty to the base shell or safe mode; the traced boot that lays out an image is the page's (kwshm, kw.gl=1 kw.wayland=1), so wlandr is in Debian's boot set; HttpBase's background tier waits for the first read of the image before its quiet second (an image opened while its kernel loads fetched it during the boot)
2026-11-22 16:11:20 +00:00
jspi.d.ts
Initial commit
2026-11-15 23:27:04 +00:00
node.ts
sdk: boot distro images from a file or over HTTP
2026-11-19 14:46:13 +00:00
unkernel.wasm
sdk: boot distro images from a file or over HTTP
2026-11-19 14:46:13 +00:00
virgl.mjs
gl: guest GL in unkernel behind createKernel({ gl }): the SDK loads the wasm renderer from dist (virgl.mjs, virgl.wasm), listens on vsock port 1019 and starts the vtest forwarder shipped in the base's kw layer; a prepared Debian disk and an end-to-end check in headless Chromium (eglinfo, frame checksums, glmark2 against llvmpipe)
2026-11-21 17:38:25 +00:00
virgl.wasm
gl: guest GL in unkernel behind createKernel({ gl }): the SDK loads the wasm renderer from dist (virgl.mjs, virgl.wasm), listens on vsock port 1019 and starts the vtest forwarder shipped in the base's kw layer; a prepared Debian disk and an end-to-end check in headless Chromium (eglinfo, frame checksums, glmark2 against llvmpipe)
2026-11-21 17:38:25 +00:00
web.ts
gl: guest GL in unkernel behind createKernel({ gl }): the SDK loads the wasm renderer from dist (virgl.mjs, virgl.wasm), listens on vsock port 1019 and starts the vtest forwarder shipped in the base's kw layer; a prepared Debian disk and an end-to-end check in headless Chromium (eglinfo, frame checksums, glmark2 against llvmpipe)
2026-11-21 17:38:25 +00:00