We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07f37ba commit 52b1ed3Copy full SHA for 52b1ed3
src/vcpu.rs
@@ -215,7 +215,7 @@ impl<H: AxVCpuHal> Aarch64VCpu<H> {
215
/// When a VM-Exit happens when guest's vCpu is running,
216
/// the control flow will be redirected to this function through `return_run_guest`.
217
#[unsafe(naked)]
218
- unsafe extern fn run_guest(&mut self) -> usize {
+ unsafe extern "C" fn run_guest(&mut self) -> usize {
219
// Fixes: https://github.com/arceos-hypervisor/arm_vcpu/issues/22
220
//
221
// The original issue seems to be caused by an unexpected compiler optimization that takes
0 commit comments