Commit f14b41c
committed
Refactor VM and vCPU structures; remove unused HAL trait
- Deleted the `hal.rs` file and removed references to `AxVMHal` from `lib.rs`.
- Consolidated VM ID handling into a new `VmId` struct in `vm.rs`, removing the duplicate definition in `vm2.rs`.
- Introduced a `VmOps` trait for VM operations and a `Status` enum to represent VM states.
- Removed the `AxVM` struct's internal implementation details, focusing on the public API for VM management.
- Cleaned up the `vcpu.rs` file by commenting out unused architecture-specific code.
- Reduced complexity in the `vm.rs` file by removing unnecessary fields and methods related to memory management.1 parent 77357c2 commit f14b41c
7 files changed
+123
-1275
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments