-
Notifications
You must be signed in to change notification settings - Fork 21
Next2 #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
ZR233
wants to merge
70
commits into
master
Choose a base branch
from
next2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* add function map_reserved_memory_region
* add pass_through address --------- Co-authored-by: szy <[email protected]>
…块,新增 vhal 模块以支持虚拟化功能
- 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.
- 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.
This was
linked to
issues
Dec 23, 2025
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.