Files
betterxen/docs/runtime/services.md
T
jelly013 280cd492fe runtime: one import resolver and typed service adapters
Parse import directories with one bounded parser shared by the static probe
and the binder, and resolve imports through one registry lookup. Refuse
conflicting registrations, keep ordinals apart from names, match API sets
exactly, and bind only when every import resolves.

Generate typed Win64 adapters, metadata and a coverage report from a
declarative service registry. Pass floating-point arguments and results in
XMM registers, and stop the guest if a service changes a nonvolatile
register. Make unimplemented generated wrappers fail explicitly.

Verify 20 services by calling them from translated guest code through bound
import slots, and the parser on damaged tables.

Refs #201, #270

Signed-off-by: jelly013 <22855910+jelly013@users.noreply.github.com>
2026-11-24 13:29:40 +01:00

2.9 KiB

Typed runtime services

Generated by xenora-runtime-gen from crates/loader/runtime/services.txt. Do not edit.

A declared service is not a claim of compatibility. implemented and partial describe behaviour against the documented contract for the synthetic guest. No service has been independently accepted.

Measure Count
Services with a declared ABI 20
Generated adapters 20
Unique handler implementations 20
Implemented 7
Partial 13
Stub 0
Conformance-tested through guest dispatch 20
API-set aliases (not services) 20
Independently accepted 0
Service Signature Status Failure
kernel32.dll!SetProcessPriorityBoost (process: handle, disable: bool32) -> bool32 partial 0 with ERROR_INVALID_HANDLE
kernel32.dll!GetProcessPriorityBoost (process: handle, disabled: out<4>) -> bool32 partial 0 with ERROR_INVALID_HANDLE or ERROR_NOACCESS
kernel32.dll!GetCurrentProcess () -> handle implemented never
kernel32.dll!GetProcessId (process: handle) -> u32 partial 0 with ERROR_INVALID_HANDLE
kernel32.dll!GetCurrentThread () -> handle implemented never
kernel32.dll!GetCurrentProcessId () -> u32 implemented never
kernel32.dll!GetCurrentThreadId () -> u32 implemented never
kernel32.dll!OpenThread (access: u32, inherit: bool32, thread: u32) -> handle partial 0 with ERROR_INVALID_PARAMETER, ERROR_NOT_SUPPORTED or ERROR_NOT_ENOUGH_MEMORY
kernel32.dll!GetThreadPriority (thread: handle) -> i32 partial THREAD_PRIORITY_ERROR_RETURN with ERROR_INVALID_HANDLE or ERROR_ACCESS_DENIED
kernel32.dll!SetThreadPriority (thread: handle, priority: i32) -> bool32 partial 0 with ERROR_INVALID_HANDLE, ERROR_ACCESS_DENIED, ERROR_NOT_SUPPORTED or ERROR_INVALID_PARAMETER
kernel32.dll!CloseHandle (object: handle) -> bool32 partial 0 with ERROR_INVALID_HANDLE
kernel32.dll!GetSystemTimeAsFileTime (time: out<8>) -> void implemented guest fault on an invalid pointer
kernel32.dll!GetLastError () -> u32 partial never
kernel32.dll!SetLastError (code: u32) -> void partial never
kernel32.dll!VirtualAlloc (address: ptr, size: u64, kind: u32, protect: u32) -> ptr partial 0 with ERROR_INVALID_PARAMETER, ERROR_NOT_SUPPORTED, ERROR_INVALID_ADDRESS or ERROR_NOT_ENOUGH_MEMORY
kernel32.dll!VirtualFree (address: ptr, size: u64, kind: u32) -> bool32 partial 0 with ERROR_NOT_SUPPORTED, ERROR_INVALID_PARAMETER or ERROR_INVALID_ADDRESS
ucrtbase.dll!sqrt (x: f64) -> f64 partial NaN for a negative argument; errno is not set
ucrtbase.dll!sqrtf (x: f32) -> f32 partial NaN for a negative argument; errno is not set
ucrtbase.dll!fabs (x: f64) -> f64 implemented never
ucrtbase.dll!fabsf (x: f32) -> f32 implemented never