Skip to content

Commit

Permalink
loader: do not expose setup_header on ARM64
Browse files Browse the repository at this point in the history
Signed-off-by: Qiu Wenbo <[email protected]>
  • Loading branch information
crab2313 committed Mar 9, 2020
1 parent ae8be03 commit 02ad394
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/loader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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<bootparam::setup_header>,
}

Expand Down

0 comments on commit 02ad394

Please sign in to comment.