Skip to content

Commit 02ad394

Browse files
committed
loader: do not expose setup_header on ARM64
Signed-off-by: Qiu Wenbo <qiuwenbo@phytium.com.cn>
1 parent ae8be03 commit 02ad394

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/loader/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ use vm_memory::{Address, Bytes, GuestAddress, GuestMemory, GuestUsize};
3333
#[allow(non_upper_case_globals)]
3434
#[allow(missing_docs)]
3535
#[cfg_attr(feature = "cargo-clippy", allow(clippy::all))]
36+
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
3637
pub mod bootparam;
3738
#[allow(dead_code)]
3839
#[allow(non_camel_case_types)]
@@ -160,6 +161,7 @@ pub struct KernelLoaderResult {
160161
pub kernel_end: GuestUsize,
161162
/// This field is only for bzImage following https://www.kernel.org/doc/Documentation/x86/boot.txt
162163
/// VMM should make use of it to fill zero page for bzImage direct boot.
164+
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
163165
pub setup_header: Option<bootparam::setup_header>,
164166
}
165167

0 commit comments

Comments
 (0)