About
Resources
Blog
Docs
Source
Status
Social
Discord
IRC
Bluesky
X/Twitter
Contact
team@tangled.org
security@tangled.org
Legal
Terms of Service
Privacy Policy
Sign in
Join now
unkernel
tsiry-sandratraina.com
/
Star
Starred
Star
1
Something went wrong. Try again.
Fork
0
Eye filled
Watch
Watching
Watch
An experimental port of NetBSD, FreeBSD, OpenBSD, and XNU to unkernel
unkernel.dev
unkernel
linux
freebsd
netbsd
wasm
+5 more
unkernel
linux
freebsd
netbsd
wasm
Star
Starred
Star
1
Something went wrong. Try again.
Fork
0
Eye filled
Watch
Watching
Watch
Overview
Overview
Issues
Issues
Pulls
Pulls
Pipelines
Pipelines
Version history of
js/core/
instance.ts
November 2026
Merge remote-tracking branch
'upstream/main'
'upstream/main'
tsiry-sandratraina.com
·
22h ago
4fc5c229
Copied
Failed
Copy SHA
tsiry-sandratraina.com
4fc5c229
Copied
Failed
Copy SHA
Merge remote-tracking branch 'upstream/main'
22h ago
Add guest USB on WebUSB: kwusb (a USB host controller whose transfers the host serves, with usbfs and the FTDI, CP210x, CH341 and PL2303 serial drivers), the SDK's usb option and vm.usb with a fake test device, and a USB devices section in the page's Settings
Pooya Parsa
·
1d ago
495fe30a
Copied
Failed
Copy SHA
Pooya Parsa
495fe30a
Copied
Failed
Copy SHA
Add guest USB on WebUSB: kwusb (a USB host controller whose transfers the host serves, with usbfs and the FTDI, CP210x, CH341 and PL2303 serial drivers), the SDK's usb option and vm.usb with a fake test device, and a USB devices section in the page's Settings
1d ago
Add guest Bluetooth on Web Bluetooth: kwbt (an HCI transport, hci0 while a controller is attached), the SDK's bluetooth option and vm.bluetooth with an emulated LE controller, Bluetooth and Serial ports sections in the page's Settings with Terminal buttons, and the Bluetooth and Serial Monitor launcher apps
Pooya Parsa
·
1d ago
42b91da2
Copied
Failed
Copy SHA
Pooya Parsa
42b91da2
Copied
Failed
Copy SHA
Add guest Bluetooth on Web Bluetooth: kwbt (an HCI transport, hci0 while a controller is attached), the SDK's bluetooth option and vm.bluetooth with an emulated LE controller, Bluetooth and Serial ports sections in the page's Settings with Terminal buttons, and the Bluetooth and Serial Monitor launcher apps
1d ago
Add guest serial ports on Web Serial: kwserial (/dev/ttyACM0..3), the SDK's serial option and vm.serial, Connect in the page's Settings and from a toast, and the Thonny and GTKTerm launcher apps
Pooya Parsa
·
1d ago
ab334389
Copied
Failed
Copy SHA
Pooya Parsa
ab334389
Copied
Failed
Copy SHA
Add guest serial ports on Web Serial: kwserial (/dev/ttyACM0..3), the SDK's serial option and vm.serial, Connect in the page's Settings and from a toast, and the Thonny and GTKTerm launcher apps
1d ago
js: run the Tailscale guest address scripts as root, so tailscale0 is set up on the distro images
Pooya Parsa
·
1d ago
68f0b980
Copied
Failed
Copy SHA
Pooya Parsa
68f0b980
Copied
Failed
Copy SHA
js: run the Tailscale guest address scripts as root, so tailscale0 is set up on the distro images
1d ago
Merge branch 'main' into tailscale
Pooya Parsa
·
1d ago
4b713a5a
Copied
Failed
Copy SHA
Pooya Parsa
4b713a5a
Copied
Failed
Copy SHA
Merge branch 'main' into tailscale
1d ago
Add a guest microphone and camera: kwsnd capture, kwcam (V4L2, raw and host-encoded H.264), and camera frames named to the kwva
encoder
encoder
Pooya Parsa
·
1d ago
1b229902
Copied
Failed
Copy SHA
Pooya Parsa
1b229902
Copied
Failed
Copy SHA
Add a guest microphone and camera: kwsnd capture, kwcam (V4L2, raw and host-encoded H.264), and camera frames named to the kwva encoder
1d ago
js: add a pure-JS Tailscale network device (work in
progress)
progress)
Pooya Parsa
·
1d ago
d382f7fa
Copied
Failed
Copy SHA
Pooya Parsa
d382f7fa
Copied
Failed
Copy SHA
js: add a pure-JS Tailscale network device (work in progress)
1d ago
Merge branch 'pithings:main' into main
tsiry-sandratraina.com
·
1d ago
45b22e4d
Copied
Failed
Copy SHA
tsiry-sandratraina.com
45b22e4d
Copied
Failed
Copy SHA
Merge branch 'pithings:main' into main
1d ago
js: keep host file systems in worker-mode snapshots taken with commit
(#62)
(#62)
pi0x
·
1d ago
27761895
Copied
Failed
Copy SHA
pi0x
27761895
Copied
Failed
Copy SHA
js: keep host file systems in worker-mode snapshots taken with commit (#62)
1d ago
va: guest VA-API on the browser's WebCodecs (kwva): a libva driver in the base's kw layer sends each picture over vsock to a VideoDecoder or VideoEncoder on the page (createKernel({ va }), on by default on Debian, ?va=0); it decodes VP9, H.264, AV1 and HEVC (HEVC not yet run in a browser), encodes VP9, reads pictures back as exact NV12, exports surfaces as dmabufs of virtio-gpu resources and draws a decoded VideoFrame into a BGRX surface on the GPU (mpv --hwdec=vaapi --vo=dmabuf-wayland: 1080p H.264 at 30 fps on an M4 Pro)
Pooya Parsa
·
5d ago
1f0648d8
Copied
Failed
Copy SHA
Pooya Parsa
1f0648d8
Copied
Failed
Copy SHA
va: guest VA-API on the browser's WebCodecs (kwva): a libva driver in the base's kw layer sends each picture over vsock to a VideoDecoder or VideoEncoder on the page (createKernel({ va }), on by default on Debian, ?va=0); it decodes VP9, H.264, AV1 and HEVC (HEVC not yet run in a browser), encodes VP9, reads pictures back as exact NV12, exports surfaces as dmabufs of virtio-gpu resources and draws a decoded VideoFrame into a BGRX surface on the GPU (mpv --hwdec=vaapi --vo=dmabuf-wayland: 1080p H.264 at 30 fps on an M4 Pro)
5d ago
Add guest Vulkan on the page's WebGPU (kwvk): a Vulkan 1.2 ICD in the base (vk/icd, libvulkan_kw.so under the stock loader) sends commands over vsock port 1018 to a renderer in the SDK (createKernel({ vk }), js/core/vk*.ts) that implements them on a GPUDevice, with SPIR-V translated to WGSL by naga as wasm (vk/naga); Wayland, X11 and headless presentation by readback; the page's Guest Vulkan option, Environment row and vkcube, vkmark and GTK tiles; checks in test/vk
Pooya Parsa
·
6d ago
3538073b
Copied
Failed
Copy SHA
Pooya Parsa
3538073b
Copied
Failed
Copy SHA
Add guest Vulkan on the page's WebGPU (kwvk): a Vulkan 1.2 ICD in the base (vk/icd, libvulkan_kw.so under the stock loader) sends commands over vsock port 1018 to a renderer in the SDK (createKernel({ vk }), js/core/vk*.ts) that implements them on a GPUDevice, with SPIR-V translated to WGSL by naga as wasm (vk/naga); Wayland, X11 and headless presentation by readback; the page's Guest Vulkan option, Environment row and vkcube, vkmark and GTK tiles; checks in test/vk
6d ago
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
Pooya Parsa
·
1w ago
4e585556
Copied
Failed
Copy SHA
Pooya Parsa
4e585556
Copied
Failed
Copy SHA
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
1w ago
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)
Pooya Parsa
·
1w ago
47a0202a
Copied
Failed
Copy SHA
Pooya Parsa
47a0202a
Copied
Failed
Copy SHA
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)
1w ago
js, web: a display size change reaches the guest's DRM mode: updateDisplaySize() on a running machine (inline and worker mode) raises virtio-gpu's display event when the fitted size differs from what the driver read, so the guest gets a hotplug with the new preferred mode (64 to 4095 a side, the EDID's pixel clock kept); the page calls it 300 ms after the stage's size last changed; X has no udev to hear the hotplug, so the X demo follows it with xrandr
Pooya Parsa
·
1w ago
c04c59b6
Copied
Failed
Copy SHA
Pooya Parsa
c04c59b6
Copied
Failed
Copy SHA
js, web: a display size change reaches the guest's DRM mode: updateDisplaySize() on a running machine (inline and worker mode) raises virtio-gpu's display event when the fitted size differs from what the driver read, so the guest gets a hotplug with the new preferred mode (64 to 4095 a side, the EDID's pixel clock kept); the page calls it 300 ms after the stage's size last changed; X has no udev to hear the hotplug, so the X demo follows it with xrandr
1w ago
js, web: default memory 2 GiB on desktops and Node and 512 MiB on phones, fallback sizes from 1024, 2 and 4 GiB on the page's slider, and a sparse copy of a snapshot on its way to a worker
Pooya Parsa
·
1w ago
d4c9b459
Copied
Failed
Copy SHA
Pooya Parsa
d4c9b459
Copied
Failed
Copy SHA
js, web: default memory 2 GiB on desktops and Node and 512 MiB on phones, fallback sizes from 1024, 2 and 4 GiB on the page's slider, and a sparse copy of a snapshot on its way to a worker
1w ago
js: in worker mode, read guest shm in place and stop waiting for the kernel's yield: where the kernel's memory is shared with the owner thread (an SMP kernel on the shared transport) ShmFile.readSync() and views() work there as inline (Shm.inPlace; the worker waits for the owner's pin before the guest frees an export's pages), and on one CPU shm reads and the owner's vsock packets to the guest go through rings in the shared control block, served at the kernel's next clock read (about 0.6 ms instead of up to 20 ms)
Pooya Parsa
·
1w ago
57249c59
Copied
Failed
Copy SHA
Pooya Parsa
57249c59
Copied
Failed
Copy SHA
js: in worker mode, read guest shm in place and stop waiting for the kernel's yield: where the kernel's memory is shared with the owner thread (an SMP kernel on the shared transport) ShmFile.readSync() and views() work there as inline (Shm.inPlace; the worker waits for the owner's pin before the guest frees an export's pages), and on one CPU shm reads and the owner's vsock packets to the guest go through rings in the shared control block, served at the kernel's next clock read (about 0.6 ms instead of up to 20 ms)
1w ago
gl: load the renderer on the guest's first GL use (the device advertises virgl's capsets from fixed sizes; gl.eager, ?glload=eager load before boot) and turn guest GL on by default for Debian in the page, with the virtio-gpu device (?gpu=0: the vtest link only); the kw layer ships /etc/X11/kw-kms.conf (modesetting with glamor on /dev/dri/card0) and sets the vtest variables only without the device; virtio-gpu waits up to 30 s, killably, for a capset; a suspend while a program uses the GPU is refused at once with a message
Pooya Parsa
·
1w ago
84d70b9b
Copied
Failed
Copy SHA
Pooya Parsa
84d70b9b
Copied
Failed
Copy SHA
gl: load the renderer on the guest's first GL use (the device advertises virgl's capsets from fixed sizes; gl.eager, ?glload=eager load before boot) and turn guest GL on by default for Debian in the page, with the virtio-gpu device (?gpu=0: the vtest link only); the kw layer ships /etc/X11/kw-kms.conf (modesetting with glamor on /dev/dri/card0) and sets the vtest variables only without the device; virtio-gpu waits up to 30 s, killably, for a capset; a suspend while a program uses the GPU is refused at once with a message
1w ago
Give the guest /dev/dri: kwvirtio, a virtio transport over host imports, with the stock virtio_gpu driver (createKernel({ gpu }), --gpu); the SDK's device model shows dumb-buffer scanouts on the host display and, with gl, runs virgl 3D on the page's renderer through virglrenderer's API (patch 13), presents a KMS scanout from the renderer's texture without readback and gives host code a resource's texture (vm.gl.gpu.texture); the kernel leaves out I2C, the HDMI infoframe library, the panel bridge and NET_DEVMEM (four generic switches) and backports the virtio-gpu damage-clip fix
Pooya Parsa
·
1w ago
4d203709
Copied
Failed
Copy SHA
Pooya Parsa
4d203709
Copied
Failed
Copy SHA
Give the guest /dev/dri: kwvirtio, a virtio transport over host imports, with the stock virtio_gpu driver (createKernel({ gpu }), --gpu); the SDK's device model shows dumb-buffer scanouts on the host display and, with gl, runs virgl 3D on the page's renderer through virglrenderer's API (patch 13), presents a KMS scanout from the renderer's texture without readback and gives host code a resource's texture (vm.gl.gpu.texture); the kernel leaves out I2C, the HDMI infoframe library, the panel bridge and NET_DEVMEM (four generic switches) and backports the virtio-gpu damage-clip fix
1w ago
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)
Pooya Parsa
·
1w ago
ff792f61
Copied
Failed
Copy SHA
Pooya Parsa
ff792f61
Copied
Failed
Copy SHA
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)
1w ago
Add a guest pc sampling profiler driven from the host: time samples through a profile IRQ bit set by a sampler thread (SMP kernel) and instruction samples through the budget, per-CPU rings in the kernel, the tier and the block before each stop from kwemu, and --profile in the CLI
Pooya Parsa
·
1w ago
ccf57e51
Copied
Failed
Copy SHA
Pooya Parsa
ccf57e51
Copied
Failed
Copy SHA
Add a guest pc sampling profiler driven from the host: time samples through a profile IRQ bit set by a sampler thread (SMP kernel) and instruction samples through the budget, per-CPU rings in the kernel, the tier and the block before each stop from kwemu, and --profile in the CLI
1w ago
js: hold the kernel at its snapshot point for a commit and an optional hold, so that it stops only once the snapshot is stored and else goes on; answer every snapshot before the worker's exit; record detachable terminal sessions in a snapshot and attach to them after a restore
Pooya Parsa
·
1w ago
18cbbe2a
Copied
Failed
Copy SHA
Pooya Parsa
18cbbe2a
Copied
Failed
Copy SHA
js: hold the kernel at its snapshot point for a commit and an optional hold, so that it stops only once the snapshot is stored and else goes on; answer every snapshot before the worker's exit; record detachable terminal sessions in a snapshot and attach to them after a restore
1w ago
Park, snapshot and resume the SMP kernel: a rendezvous of every CPU at the consistent point, a restore that starts the other CPUs again and restarts each idle task, the CPU count in the snapshot, and Suspend on the page with several CPUs
Pooya Parsa
·
1w ago
a30598df
Copied
Failed
Copy SHA
Pooya Parsa
a30598df
Copied
Failed
Copy SHA
Park, snapshot and resume the SMP kernel: a rendezvous of every CPU at the consistent point, a restore that starts the other CPUs again and restarts each idle task, the CPU count in the snapshot, and Suspend on the page with several CPUs
1w ago
Add host commands: functions of the host that the guest runs as programs (kwcmd)
Pooya Parsa
·
1w ago
78896376
Copied
Failed
Copy SHA
Pooya Parsa
78896376
Copied
Failed
Copy SHA
Add host commands: functions of the host that the guest runs as programs (kwcmd)
1w ago
sdk: boot distro images from a file or over
HTTP
HTTP
Pooya Parsa
·
1w ago
be940d2c
Copied
Failed
Copy SHA
Pooya Parsa
be940d2c
Copied
Failed
Copy SHA
sdk: boot distro images from a file or over HTTP
1w ago
SDK: send every CPU's console output through a shared
ring
ring
Pooya Parsa
·
1w ago
70a0e0a8
Copied
Failed
Copy SHA
Pooya Parsa
70a0e0a8
Copied
Failed
Copy SHA
SDK: send every CPU's console output through a shared ring
1w ago
SDK: start an SMP kernel's CPUs as Web Workers in
browsers
browsers
Pooya Parsa
·
1w ago
82c7d36d
Copied
Failed
Copy SHA
Pooya Parsa
82c7d36d
Copied
Failed
Copy SHA
SDK: start an SMP kernel's CPUs as Web Workers in browsers
1w ago
Ship the SMP kernel as a patch in the UP bundle (packaging
prototype)
prototype)
Pooya Parsa
·
1w ago
869f8375
Copied
Failed
Copy SHA
Pooya Parsa
869f8375
Copied
Failed
Copy SHA
Ship the SMP kernel as a patch in the UP bundle (packaging prototype)
1w ago
Run kwemu's JIT on every CPU of an SMP kernel (SMP step
4)
4)
Pooya Parsa
·
1w ago
3b94faa2
Copied
Failed
Copy SHA
Pooya Parsa
3b94faa2
Copied
Failed
Copy SHA
Run kwemu's JIT on every CPU of an SMP kernel (SMP step 4)
1w ago
Boot an SMP kernel on several CPUs in Node (SMP step
2)
2)
Pooya Parsa
·
2w ago
55095f50
Copied
Failed
Copy SHA
Pooya Parsa
55095f50
Copied
Failed
Copy SHA
Boot an SMP kernel on several CPUs in Node (SMP step 2)
2w ago
Initial commit
Pooya Parsa
·
2w ago
26d08730
Copied
Failed
Copy SHA
Pooya Parsa
26d08730
Copied
Failed
Copy SHA
Initial commit
2w ago