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

Apply the PR on the locks of VCpu. #22

Merged
merged 6 commits into from
Aug 14, 2019

Conversation

efenniht
Copy link
Collaborator

@efenniht efenniht commented Aug 14, 2019

@efenniht efenniht changed the title Apply the PR on locks of the VCpu. Apply the PR on the locks of VCpu. Aug 14, 2019
@efenniht efenniht force-pushed the hfo2-10-vcpu_prepare branch from 8aac308 to 0a76fbe Compare August 14, 2019 04:43
Copy link
Member

@jeehoonkang jeehoonkang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

다음 할일은 RawSpinLock을 없애는 것?

@@ -272,33 +270,45 @@ pub unsafe extern "C" fn cpu_find(id: cpu_id_t) -> *mut Cpu {

/// Locks the given vCPU and updates `locked` to hold the newly locked vCPU.
#[no_mangle]
pub unsafe extern "C" fn vcpu_lock(vcpu: *mut VCpu) -> VCpuLocked {
sl_lock(&(*vcpu).lock);
pub unsafe extern "C" fn vcpu_lock(vcpu: *mut VCpu) -> VCpuExecutionLocked {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vcpu_execution_lock? 다른 함수도 마찬가지

@jeehoonkang jeehoonkang merged commit f7a4c74 into kaist-cp:hfo2 Aug 14, 2019
@efenniht efenniht deleted the hfo2-10-vcpu_prepare branch August 16, 2019 03:27
efenniht added a commit to efenniht/hafnium-verification that referenced this pull request Aug 17, 2019
…ocking.

 - One is in `api_vcpu_prepare_run` (by kaist-cp#22)
 - The other is in `api_spci_msg_recv` (from upstream)
efenniht added a commit to efenniht/hafnium-verification that referenced this pull request Aug 22, 2019
…ocking.

 - One is in `api_vcpu_prepare_run` (by kaist-cp#22)
 - The other is in `api_spci_msg_recv` (from upstream)
efenniht added a commit to efenniht/hafnium-verification that referenced this pull request Nov 13, 2019
…ocking. - One is in `api_vcpu_prepare_run` (by kaist-cp#22) - The other is in `api_spci_msg_recv` (from upstream)
efenniht added a commit that referenced this pull request Nov 26, 2019
…ocking. - One is in `api_vcpu_prepare_run` (by #22) - The other is in `api_spci_msg_recv` (from upstream)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A test got slower after api_vcpu_prepare_run was ported
2 participants