Repository navigation
Done
Labels
enhancementNew feature or request
Description
Goal
Enable running a minimal software-rendered Wayland stack (libwayland-server / libwayland-client, a lightweight fbdev/evdev compositor, and a wl_shm client such as weston-simple-shm or a terminal) in EL0 on milo, rendering to /dev/fb0 (virtio-gpu) and reading input from /dev/input/event* (virtio-input).
Existing Foundation
milo already provides:
- AArch64 MMU, EL0 ELF64 +
PT_INTERPdynamic linking, and musl/distro ABI AF_UNIXstream sockets (socketpair,bind,listen,accept,connect) andppoll/dev/fb0(virtio-gpu) withMAP_SHAREDmmapandFBIOGET_*/ flush ioctls/dev/input/event*(virtio-inputtablet + keyboard) exposing Linuxinput_eventtmpfs(/tmp),devfs(/dev),ext2(/mnt/disk), signals, andfork/execve
Missing Kernel & ABI Milestones
SCM_RIGHTSFD Passing overAF_UNIX(sendmsg/recvmsg):- Implement
struct msghdr/struct cmsghdrancillary data handling forSOL_SOCKET/SCM_RIGHTSso clients and compositors can transfer shared-memory FDs across processes (FdTableref-countedFile*transfer,MSG_CMSG_CLOEXEC).
- Implement
- Cross-Process
MAP_SHAREDontmpfs&memfd_create:- Implement
sys_memfd_create(and/orshm_openvia/dev/shmbacked bytmpfs) and ensureMAP_SHAREDmmapontmpfs/memfdshares the exact same physical pages between client and compositor without copying.
- Implement
epoll,eventfd, andtimerfdEvent Loop Primitives:- Implement
epoll_create1,epoll_ctl,epoll_wait/epoll_pwait,eventfd2, andtimerfd_create/timerfd_settime/timerfd_gettimerequired bylibwayland-server'swl_event_loop.
- Implement
- Userspace Threads (
cloneCLONE_THREAD) &futex:- Support thread-group sharing (
CLONE_VM | CLONE_THREAD | CLONE_FILES | CLONE_SIGHAND | CLONE_SETTLS,set_tid_address,exitvsexit_group) andsys_futex(FUTEX_WAIT/FUTEX_WAKE) forlibinput/pixman/ pthread consumers.
- Support thread-group sharing (
- Userspace Wayland Bring-Up & Verification:
- Cross-compile
libwayland(andlibffi/expat/pixman/ minimal compositor +weston-simple-shmor customwl_shmtest client) foraarch64-linux-musl. - Boot QEMU and verify a Wayland client connects to the compositor over
/tmp/wayland-0, shares awl_shmbuffer viaSCM_RIGHTS, renders frames to/dev/fb0, and receives keyboard/pointer events from/dev/input/event*.
- Cross-compile
Out of Scope (Follow-Up)
- Full Linux DRM/KMS (
/dev/dri/card0),virtio-gpu3D/virgl, Mesa/OpenGL, andudev/AF_NETLINK(KOBJECT_UEVENT) required for unmodified desktop compositors likeswayorwestonDRM backend.
Acceptance Criteria
-
SCM_RIGHTSFD passing,memfd_create/tmpfsMAP_SHARED,epoll+eventfd+timerfd, andclone(CLONE_THREAD)+futexare implemented with host ASan/UBSan and QEMU shell tests. - A Wayland compositor +
wl_shmclient run in QEMU onmilo, rendering visible output on/dev/fb0and handling/dev/input/event*input. -
make format && make clean-tests && make -j"$(nproc)" all && make -j"$(nproc)" qualitypasses with zero warnings.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(ipc): bring up Wayland kernel ABI, compositor, and wl_shm client