Skip to content

Conversation

@ZR233
Copy link

@ZR233 ZR233 commented Dec 23, 2025

No description provided.

ZR233 and others added 30 commits September 9, 2025 11:24
* add function map_reserved_memory_region
* add pass_through address

 

---------

Co-authored-by: szy <[email protected]>
- 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.
…ata 的初始化和显示功能;更新 Hal 模块以支持虚拟化初始化
…ing, and enhance Cargo.toml dependencies

- Replaced CpuData with HCpu struct in the AArch64 CPU module to encapsulate CPU-related data.
- Updated the current_cpu_init function to return HCpu instead of CpuData.
- Added a new ArchVm struct for AArch64 virtual machine implementation, encapsulating VM state and management.
- Introduced a Mutex-protected inner field in the Vm struct to manage the ArchVm instance safely.
- Enhanced Cargo.toml by adding vm-allocator.workspace dependency for improved memory management.
- Refactored vhal module to utilize HCpu and updated related functions for consistency.
ZR233 added 24 commits December 15, 2025 16:57
- Introduced `VmData` and `VmDataWeak` structures to encapsulate VM state and configuration.
- Removed the obsolete `data2.rs` file and migrated relevant functionality to `data.rs`.
- Enhanced `VmAddrSpace` to manage memory regions more effectively, including methods for adding and initializing memory.
- Updated `FdtBuilder` to streamline CPU and memory setup in the device tree.
- Refactored `VCpuCommon` to utilize the new `HCpu` architecture.
- Improved error handling and state management in VM lifecycle operations.
- Added new traits for VM machine states to facilitate better state transitions and management.
@ZR233 ZR233 self-assigned this Dec 23, 2025
@ZR233 ZR233 added the enhancement New feature or request label Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Axvm架构优化 arch相关移入axvm

4 participants