Skip to content

virtualbox: registers through the MachineDebugger method - #304

Merged
Wenzel merged 2 commits into
devfrom
vbox/md-registers
Oct 12, 2026
Merged

Wenzel merged 2 commits into
devfrom
vbox/md-registers

Conversation

@Wenzel

@Wenzel Wenzel commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Closes #278.

  • read_registers/write_registers on the MachineDebugger access method via rs-vboxapi 5ba8d86 (batch getRegisters/setRegisters): GPRs, RIP, RFLAGS, CR0/2/3/4, all segments (selector/base/limit), TR, LDT, GDTR/IDTR, SYSENTER_*, EFER, STAR, LSTAR, APIC base.
  • regs-dump prints the full set.
  • Integration tests (2 vCPUs): paused reads stable; CR3 page walks map RIP and IDT base to RAM; Linux banner found; write/readback/restore across all register classes with an RAII guard that restores the full original set and resumes on failure; invalid RFLAGS rejected with VERR_INVALID_PARAMETER and state unchanged.
  • Driver docs list register support.

VirtualBox side: Wenzel/virtualbox#5 (merged into vmi/machinedebugger). Note: rs-vboxapi pin 5ba8d86 already contains #279's write commit 2c8292d.

Verified live under the shared VM lock on the rebuilt patched VirtualBox; cargo fmt, cargo clippy --features virtualbox-api --lib --example regs-dump -D warnings, lib/example tests pass on Rust 1.99.

@Wenzel
Wenzel force-pushed the vbox/md-registers branch from dfc1672 to ba3e79c Compare October 12, 2026 06:52
@Wenzel
Wenzel force-pushed the vbox/md-registers branch from ba3e79c to c6af52a Compare October 12, 2026 07:06
@Wenzel
Wenzel merged commit c101fa3 into dev Oct 12, 2026
22 checks passed
Wenzel added a commit that referenced this pull request Oct 31, 2026
virtualbox: registers through the MachineDebugger method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant