Skip to content

Commit 8e24fe0

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

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
@@ -35,6 +35,7 @@ use vm_memory::{Address, Bytes, GuestAddress, GuestMemory, GuestUsize};
3535
#[allow(non_upper_case_globals)]
3636
#[allow(missing_docs)]
3737
#[cfg_attr(feature = "cargo-clippy", allow(clippy::all))]
38+
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
3839
pub mod bootparam;
3940

4041
#[cfg(feature = "elf")]
@@ -178,6 +179,7 @@ pub struct KernelLoaderResult {
178179
pub kernel_end: GuestUsize,
179180
/// This field is only for bzImage following https://www.kernel.org/doc/Documentation/x86/boot.txt
180181
/// VMM should make use of it to fill zero page for bzImage direct boot.
182+
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
181183
pub setup_header: Option<bootparam::setup_header>,
182184
/// This field optionally holds the address of a PVH entry point, indicating that
183185
/// the kernel supports the PVH boot protocol as described in:

0 commit comments

Comments
 (0)