From 02ad394200376a088a3c45e7b150b42d6348c93c Mon Sep 17 00:00:00 2001 From: Qiu Wenbo Date: Mon, 2 Mar 2020 05:08:52 +0000 Subject: [PATCH] loader: do not expose setup_header on ARM64 Signed-off-by: Qiu Wenbo --- src/loader/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/loader/mod.rs b/src/loader/mod.rs index 6c438deb..48612a4c 100644 --- a/src/loader/mod.rs +++ b/src/loader/mod.rs @@ -33,6 +33,7 @@ use vm_memory::{Address, Bytes, GuestAddress, GuestMemory, GuestUsize}; #[allow(non_upper_case_globals)] #[allow(missing_docs)] #[cfg_attr(feature = "cargo-clippy", allow(clippy::all))] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] pub mod bootparam; #[allow(dead_code)] #[allow(non_camel_case_types)] @@ -160,6 +161,7 @@ pub struct KernelLoaderResult { pub kernel_end: GuestUsize, /// This field is only for bzImage following https://www.kernel.org/doc/Documentation/x86/boot.txt /// VMM should make use of it to fill zero page for bzImage direct boot. + #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] pub setup_header: Option, }