File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 88 strategy :
99 fail-fast : false
1010 matrix :
11- rust-toolchain : [nightly-2024-12-25 , nightly]
11+ rust-toolchain : [nightly-2025-04-21 , nightly]
1212 targets : [x86_64-unknown-none]
1313 steps :
1414 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -812,11 +812,10 @@ macro_rules! vmx_entry_with {
812812}
813813
814814impl < H : AxVCpuHal > VmxVcpu < H > {
815- #[ warn( unsafe_attr_outside_unsafe) ]
816- #[ naked]
815+ #[ unsafe( naked) ]
817816 /// Enter guest with vmlaunch.
818817 ///
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.
820819 ///
821820 /// This function itself never returns, but [`Self::vmx_exit`] will do the return for this.
822821 ///
@@ -825,17 +824,15 @@ impl<H: AxVCpuHal> VmxVcpu<H> {
825824 vmx_entry_with ! ( "vmlaunch" )
826825 }
827826
828- #[ warn( unsafe_attr_outside_unsafe) ]
829- #[ naked]
827+ #[ unsafe( naked) ]
830828 /// Enter guest with vmresume.
831829 ///
832830 /// See [`Self::vmx_launch`] for detail.
833831 unsafe extern "C" fn vmx_resume ( & mut self ) -> usize {
834832 vmx_entry_with ! ( "vmresume" )
835833 }
836834
837- #[ warn( unsafe_attr_outside_unsafe) ]
838- #[ naked]
835+ #[ unsafe( naked) ]
839836 /// Return after vm-exit.
840837 ///
841838 /// The return value is a dummy value.
You can’t perform that action at this time.
0 commit comments