Files
unkernel/kernel/patches/linux/series
Pooya Parsa 74e1ecf806 Run x86-64 programs beside arm64 ones on one kernel
The kernel runs x86-64 ELF programs as their own tasks on kwemu's x86
front end (CONFIG_WASM_X86, on in kw_defconfig): exec picks the ISA from
e_machine, and an x86 task gets x86-64's syscall table (through the same
pt_regs wrappers, with translations where its ABI differs from arm64's:
open flags, struct stat, clone's argument order, packed epoll events,
uname, arch_prctl, MAP_32BIT, strict seccomp), signal frames, ptrace
regsets and core notes, a vDSO, the vsyscall page, AT_PLATFORM, AT_HWCAP
and /proc/cpuinfo in x86's format; kw.x86isa= masks its features. arm64
tasks are unchanged. The kernel patches are "wasm: run x86-64 user space
beside arm64" after the arch patch and three generic ones (erofs without
vmap on a flat vmalloc, eventpoll's packed events, seccomp's strict
syscalls per task); the separate x86-only series (kernel/patches/linux-x64,
KW_ARCH=x64) is gone, and so is the build switch.

base-test.cpio has x86-64 builds of kwtest and abitest beside arm64's
(kwtest-x86_64, abitest-x86_64; abitest_x64 finds itself under that name
and checks the i386 cross exec only where there is an i386 build), and
test/x64-kernel-audit.mjs runs them on the one kernel. i386 tasks are not
there yet (no CONFIG_COMPAT). The distro images still register x86_64
with binfmt_misc (box64, qemu-x86_64), which comes before the kernel's
ELF loader.

Co-authored-by: JeremySu0818 <xinghong.su0818@gmail.com>
2026-11-29 23:35:28 +00:00

43 lines
2.3 KiB
Plaintext

kernel-Allow-arch-specific-panic-handling.patch
NOMERGE-kbuild-Provide-Wasm-support-in-mk_elfconfig.patch
wasm-allow-building-with-stock-LLVM-no-WasmAsmParser.patch
mm-add-VMALLOC_FLAT-a-vmalloc-that-returns-direct-ma.patch
mm-allow-percpu-km-on-SMP-with-a-flat-vmalloc.patch
mm-skip-folio_ref_add-of-zero-when-mapping-an-order-.patch
mm-add-drop_caches-for-callers-in-the-kernel.patch
erofs-work-with-a-vmalloc-that-cannot-map-pages-VMAL.patch
9p-add-metatimeout-a-time-limit-for-cached-dentries-.patch
kthread-add-park-points-for-architectures-that-canno.patch
random-let-arch-wasm-reseed-when-it-resumes-a-snapsh.patch
sched-let-an-arch-hold-tasks-on-their-CPU-except-whe.patch
kthread-workqueue-restart-points-for-ARCH_TASKS_STAY.patch
smp-let-an-arch-wait-for-a-csd-and-wake-its-waiter.patch
sched-let-an-arch-poll-its-pending-interrupts-in-con.patch
net-let-NET_DEVMEM-be-turned-off.patch
netfilter-conntrack-let-the-default-hash-size-be-con.patch
net-dummy-let-the-number-of-default-devices-be-confi.patch
eventpoll-pack-the-events-of-arch-wasm-s-x86-64-task.patch
seccomp-let-an-arch-pick-a-task-s-strict-mode-syscal.patch
drm-bridge-let-DRM_PANEL_BRIDGE-be-turned-off.patch
drm-let-a-kernel-leave-out-I2C-DRM_DDC.patch
drm-let-a-kernel-leave-out-the-HDMI-infoframe-librar.patch
drm-virtio-Recalculate-ignore_damage_clips-on-every-.patch
drm-virtio-preserve-damage-clips-for-rendered-resour.patch
drm-virtio-wait-up-to-30-s-for-a-capset-and-killably.patch
wasm-add-the-Wasm-WebAssembly-architecture.patch
wasm-run-x86-64-user-space-beside-arm64.patch
wasm-kwblk-host-backed-block-devices.patch
wasm-kwnet-an-Ethernet-device-backed-by-the-JavaScri.patch
wasm-kwfb-a-lazy-framebuffer-read-by-the-JavaScript-.patch
wasm-kwinput-a-keyboard-a-mouse-and-a-tablet-fed-by-.patch
tty-sysrq-observe-keyboards-passively-on-wasm-instea.patch
wasm-kwsnd-ALSA-playback-and-capture-with-the-JavaSc.patch
wasm-kwvsock-an-AF_VSOCK-transport-to-the-JavaScript.patch
wasm-kwshm-host-access-to-the-pages-of-shmem-files.patch
wasm-kwvirtio-a-virtio-transport-to-the-JavaScript-h.patch
wasm-kwcam-a-V4L2-camera-fed-by-the-JavaScript-host.patch
wasm-kwserial-serial-ports-of-the-JavaScript-host.patch
wasm-kwbt-a-Bluetooth-HCI-transport-to-the-JavaScrip.patch
wasm-kwusb-a-USB-host-controller-served-by-the-JavaS.patch
wasm-add-kw_defconfig.patch