BetterXen documentation
Getting started
Start with the project README for scope and build commands, then read the interface contracts. Reproduce an original guest test program or run the independent validation suite before changing either path. The changelog records notable changes.
Use the BetterXen development phases for current work order, existing issue/PR dependencies and measurable completion criteria. Historical phase checkpoints retain their original evidence scope.
Architecture and technical design
- Interface contracts — Translated shader stages, guest services, native command submission, and synthetic textures.
- Fixture memory model and CPU boundary — Buffer bindings, guest address translation, and dependency direction.
Native Metal graphics
- Translated offscreen stages — Translated vertex and pixel stages for the bounded gfx1030 subset.
- Blend and depth passes — Native blend and depth graphics passes with per-draw state.
- Apple GPU evidence and host lab record — Observed behavior and historical floating-point results.
RDNA 2 decoding and shader translation
- Instruction coverage — Desktop gfx1030 instruction forms, operand limits, and CPU and GPU results.
- Semantic coverage — Generated per-family counts of identified, declared, decoded, lowered and verified gfx1030 forms.
- SOP2 scalar ALU — Supported scalar add, subtract and bitwise forms, their SCC rules and sources.
- Semantic registry — How to add an instruction form: registry fields, validation, generation and the independence rule.
- VOP1 vector unary and swap — Wave32 integer bit operations, register exchange, and operand limits.
- VOP2 select and carry — Wave32 lane selection, carry and borrow through the vector condition code.
- VOPC integer compares — Wave32 compare forms, the VCC/EXEC contract, runtime
s_cbranch_vcczand the Metal mapping. - Metal Shading Language generation and independent CPU reference — Translation rules and separate CPU execution models.
Guest CPU and runtime experiments
- Guest experiment guide — Bounded x86-64 execution, executable loading, experimental services, native compute, and offscreen rendering.
- x86-64 instruction registry — Shared decoder, generated tables, semantics, native lowering and how to add a verified instruction form.
- Proposed AVX and AVX2 guest contract — VEX decoding, vector state, fault behavior and an original integer fixture specification.
- Runtime service registry and generated coverage — Import resolution, typed Win64 adapters and how to add a tested service.
- Guest threads — Deterministic scheduler, thread services, limits and tests.
- Guest CPU research — Public specifications and unresolved console requirements.
- Synthetic import fixtures — Reproducible PE32+ builds and expected service behavior.
Testing, validation, and benchmarks
- Migrated pull-request integration review — Merge decisions, integration fixes, native verification and excluded concurrent work.
- Testing and acceptance index — Entry point for test procedures, evidence and review records.
- AMD RDNA2 desktop GPU (gfx1030) form acceptance — Independence, command, log and promotion rules for fixture-verified instruction forms.
- Engineering progress — Verification commands, metric definitions, and open release gates.
- CPU test runtime and shard selection — Measured CPU gate cost and deterministic test-target shards.
- Test inventory comparison — Detect missing or newly ignored Cargo tests across commits.
- Persistent resource and translated rendering acceptance — Pinned upstream tests, native ARM64 results and unsupported cases.
- Baseline acceptance, Phase 01 assurance, and independent reviews — Candidate-specific results and release findings.
- Gate A: a compiled C program — The two milestones, what the A1 and A2 tests check and what they do not show.
- Mutation testing and benchmark protocol — Test sensitivity, benchmark inputs, and timing requirements.
Research and engineering decisions
- Public sources, RDNA 2 notes, and Xbox GPU evidence — Specifications, evidence scope, and unknown console behavior.
- Shader inputs and risk register — Input provenance and unresolved engineering risks.
- PortWatch native macOS research — Screening of public Xbox-on-Windows port projects for native macOS planning; discovery only.
- Synthetic integration and upstream evidence — Audited source snapshots and remaining commercial startup prerequisites.
Security, licensing, and contributions
-
Threat model and security reporting — Execution limits and disclosure instructions.
-
Legal scope, dependency licensing, and third-party notices — Input policy, attribution, and redistribution findings.
-
Contribution guidelines — Original authorship, Developer Certificate of Origin sign-off, and evidence requirements.
-
Agent task queue — Areas, claiming, leases, upstream sync, verification and the security model for parallel contributors and coding agents.
-
CPU/runtime expansion campaign ledger — Progress ledger for the BetterXen native CPU and runtime compatibility campaign: starting/current commits, completed batches, new forms, verification evidence and the next implementation target.
-
Infrastructure QA ownership — Non-overlapping paths for infrastructure and QA tooling.
-
Agent queue smoke evidence — Live Actions results from the disposable smoke repository.
-
Infrastructure QA tooling — Advisory orchestration, PR validation, benchmark analysis and release checks.
-
Migration to BetterXen: source attribution, imported history and compatibility names.