File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 8
8
strategy :
9
9
fail-fast : false
10
10
matrix :
11
- rust-toolchain : [nightly-2024-12-25 , nightly]
11
+ rust-toolchain : [nightly-2025-04-21 , nightly]
12
12
targets : [x86_64-unknown-none]
13
13
steps :
14
14
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -812,11 +812,10 @@ macro_rules! vmx_entry_with {
812
812
}
813
813
814
814
impl < H : AxVCpuHal > VmxVcpu < H > {
815
- #[ warn( unsafe_attr_outside_unsafe) ]
816
- #[ naked]
815
+ #[ unsafe( naked) ]
817
816
/// Enter guest with vmlaunch.
818
817
///
819
- /// `#[naked]` is essential here, without it the rust compiler will think `&mut self` is not used and won't give us correct %rdi.
818
+ /// `#[unsafe( naked) ]` is essential here, without it the rust compiler will think `&mut self` is not used and won't give us correct %rdi.
820
819
///
821
820
/// This function itself never returns, but [`Self::vmx_exit`] will do the return for this.
822
821
///
@@ -825,17 +824,15 @@ impl<H: AxVCpuHal> VmxVcpu<H> {
825
824
vmx_entry_with ! ( "vmlaunch" )
826
825
}
827
826
828
- #[ warn( unsafe_attr_outside_unsafe) ]
829
- #[ naked]
827
+ #[ unsafe( naked) ]
830
828
/// Enter guest with vmresume.
831
829
///
832
830
/// See [`Self::vmx_launch`] for detail.
833
831
unsafe extern "C" fn vmx_resume ( & mut self ) -> usize {
834
832
vmx_entry_with ! ( "vmresume" )
835
833
}
836
834
837
- #[ warn( unsafe_attr_outside_unsafe) ]
838
- #[ naked]
835
+ #[ unsafe( naked) ]
839
836
/// Return after vm-exit.
840
837
///
841
838
/// The return value is a dummy value.
You can’t perform that action at this time.
0 commit comments