Skip to content
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

Wrap mutable states of VCpu with SpinLock (partially done) #39

Merged
merged 17 commits into from
Aug 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions hfo2/src/abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

use crate::types::*;

#[derive(Clone, Copy)]
pub enum HfVCpuRunReturn {
/// The vCPU has been preempted but still has work to do. If the scheduling
/// quantum has not expired, the scheduler MUST call `hf_vcpu_run` on the
Expand Down
3 changes: 0 additions & 3 deletions hfo2/src/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ use core::fmt;
use crate::arch::*;
use crate::types::*;

// TODO: Refactor type names and remove this.
#[allow(non_camel_case_types)]

// TODO: Some codes (mm.rs, mpool.rs, page.rs and etc.) treats memory address
// with primitive types (usually usize.) Refactor them to use `*addr_t` types.

Expand Down