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/
kernel.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
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: fall back to __heap_base when the kernel has no _end
(#67)
(#67)
pi0x
·
1d ago
fc88dc04
Copied
Failed
Copy SHA
pi0x
fc88dc04
Copied
Failed
Copy SHA
js: fall back to __heap_base when the kernel has no _end (#67)
1d ago
js: take the end of a kernel image from __heap_base without
_end
_end
tsiry-sandratraina.com
·
2d ago
1d3c4d67
Copied
Failed
Copy SHA
tsiry-sandratraina.com
1d3c4d67
Copied
Failed
Copy SHA
js: take the end of a kernel image from __heap_base without _end
2d ago
js: allocate an SMP kernel's memory once, shared, at a boot and a restore, so that memoryFallbackMiB applies to it
(#10)
(#10)
João Lucas
·
6d ago
6901f8a2
Copied
Failed
Copy SHA
João Lucas
6901f8a2
Copied
Failed
Copy SHA
js: allocate an SMP kernel's memory once, shared, at a boot and a restore, so that memoryFallbackMiB applies to it (#10)
6d ago
js: unwind the JSPI stack of an exited task and of one started afresh (a move to another CPU, a park cycle) instead of parking it for good: the suspended import throws STACK_DROPPED, so the engine frees the stack at once rather than at a garbage collection, which Firefox's limit of about 2000 stacks per thread did not wait for ("too many continuation stacks" after a while of kmscube on 2 CPUs)
Pooya Parsa
·
1w ago
a0506f40
Copied
Failed
Copy SHA
Pooya Parsa
a0506f40
Copied
Failed
Copy SHA
js: unwind the JSPI stack of an exited task and of one started afresh (a move to another CPU, a park cycle) instead of parking it for good: the suspended import throws STACK_DROPPED, so the engine frees the stack at once rather than at a garbage collection, which Firefox's limit of about 2000 stacks per thread did not wait for ("too many continuation stacks" after a while of kmscube on 2 CPUs)
1w ago
js: log an error with its name and message where the engine's stack leaves them out (errorText): on Firefox and Safari a trap on another CPU was logged as its frames alone
Pooya Parsa
·
1w ago
7d4272fc
Copied
Failed
Copy SHA
Pooya Parsa
7d4272fc
Copied
Failed
Copy SHA
js: log an error with its name and message where the engine's stack leaves them out (errorText): on Firefox and Safari a trap on another CPU was logged as its frames alone
1w ago
kernel, js: sync and drop file caches before a snapshot that stops the machine (SnapshotOptions.dropCaches, IRQ 11), and encode and restore a snapshot from its used chunks instead of scanning the machine's whole memory
Pooya Parsa
·
1w ago
17829814
Copied
Failed
Copy SHA
Pooya Parsa
17829814
Copied
Failed
Copy SHA
kernel, js: sync and drop file caches before a snapshot that stops the machine (SnapshotOptions.dropCaches, IRQ 11), and encode and restore a snapshot from its used chunks instead of scanning the machine's whole memory
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: restore a snapshot without touching its zero pages (a resumed 4 GiB machine took 4 GiB of host memory), and take a 4 GiB snapshot across the worker boundary (Node 24 clones such a view with length 0)
Pooya Parsa
·
1w ago
2781a132
Copied
Failed
Copy SHA
Pooya Parsa
2781a132
Copied
Failed
Copy SHA
js: restore a snapshot without touching its zero pages (a resumed 4 GiB machine took 4 GiB of host memory), and take a 4 GiB snapshot across the worker boundary (Node 24 clones such a view with length 0)
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
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
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
Keep console output from different CPUs in the kernel's order
(SMP)
(SMP)
Pooya Parsa
·
1w ago
19c0d2ab
Copied
Failed
Copy SHA
Pooya Parsa
19c0d2ab
Copied
Failed
Copy SHA
Keep console output from different CPUs in the kernel's order (SMP)
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
Move tasks between CPUs where their stack can be dropped (SMP step
3)
3)
Pooya Parsa
·
1w ago
bc9403d6
Copied
Failed
Copy SHA
Pooya Parsa
bc9403d6
Copied
Failed
Copy SHA
Move tasks between CPUs where their stack can be dropped (SMP step 3)
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
Build kwemu with atomics and boot a shared-memory kernel (SMP step 1,
WIP)
WIP)
Pooya Parsa
·
2w ago
fccde8ff
Copied
Failed
Copy SHA
Pooya Parsa
fccde8ff
Copied
Failed
Copy SHA
Build kwemu with atomics and boot a shared-memory kernel (SMP step 1, WIP)
2w ago
Initial commit
Pooya Parsa
·
2w ago
26d08730
Copied
Failed
Copy SHA
Pooya Parsa
26d08730
Copied
Failed
Copy SHA
Initial commit
2w ago