Skip to content

Commit 9564ae9

Browse files
committed
update nightly version
1 parent 2a63d08 commit 9564ae9

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
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

src/vmx/vcpu.rs

+4-7
Original file line numberDiff line numberDiff line change
@@ -812,11 +812,10 @@ macro_rules! vmx_entry_with {
812812
}
813813

814814
impl<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.

0 commit comments

Comments
 (0)