mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
hv: move split-lock logic into dedicated file
This patch move the split-lock logic into dedicated file to reduce LOC. This may make the logic more clear. Tracked-On: #5605 Signed-off-by: Jie Deng <jie.deng@intel.com>
This commit is contained in:
14
hypervisor/include/arch/x86/guest/splitlock.h
Normal file
14
hypervisor/include/arch/x86/guest/splitlock.h
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef SPLITLOCK_H_
|
||||
#define SPLITLOCK_H_
|
||||
|
||||
void vcpu_kick_splitlock_emulation(struct acrn_vcpu *cur_vcpu);
|
||||
void vcpu_complete_splitlock_emulation(struct acrn_vcpu *cur_vcpu);
|
||||
int32_t emulate_splitlock(struct acrn_vcpu *vcpu, uint32_t exception_vector, bool *queue_exception);
|
||||
|
||||
#endif /* SPLITLOCK_H_ */
|
Reference in New Issue
Block a user