Commit d2aa638
fix(snapshot): arch-gate VcpuEvent::SaveState to x86_64
VcpuState (KVM x86 vcpu state) and Vcpu::save_state/restore_state are already
#[cfg(target_arch = "x86_64")], but the VcpuEvent::SaveState variant that
carries Box<VcpuState> and the running()-state match arm that referenced it
were not — so the vmm failed to compile on aarch64 (E0425: cannot find type
VcpuState). Gate both to x86_64. Snapshot-fork is x86_64-only; aarch64 builds
cold-boot only. Verified: cargo check --target aarch64-unknown-linux-gnu -p vmm
now passes.1 parent 8bb409b commit d2aa638
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1635 | 1635 | | |
1636 | 1636 | | |
1637 | 1637 | | |
| 1638 | + | |
1638 | 1639 | | |
1639 | 1640 | | |
1640 | 1641 | | |
| |||
1787 | 1788 | | |
1788 | 1789 | | |
1789 | 1790 | | |
| 1791 | + | |
| 1792 | + | |
1790 | 1793 | | |
1791 | 1794 | | |
1792 | 1795 | | |
| |||
0 commit comments