Skip to content

Commit 2a63d08

Browse files
committed
try suppress unsafe_attr_outside_unsafe for #[naked]
1 parent fd0906e commit 2a63d08

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vmx/vcpu.rs

+3
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,7 @@ macro_rules! vmx_entry_with {
812812
}
813813

814814
impl<H: AxVCpuHal> VmxVcpu<H> {
815+
#[warn(unsafe_attr_outside_unsafe)]
815816
#[naked]
816817
/// Enter guest with vmlaunch.
817818
///
@@ -824,6 +825,7 @@ impl<H: AxVCpuHal> VmxVcpu<H> {
824825
vmx_entry_with!("vmlaunch")
825826
}
826827

828+
#[warn(unsafe_attr_outside_unsafe)]
827829
#[naked]
828830
/// Enter guest with vmresume.
829831
///
@@ -832,6 +834,7 @@ impl<H: AxVCpuHal> VmxVcpu<H> {
832834
vmx_entry_with!("vmresume")
833835
}
834836

837+
#[warn(unsafe_attr_outside_unsafe)]
835838
#[naked]
836839
/// Return after vm-exit.
837840
///

0 commit comments

Comments
 (0)