From 8ca302e86d685fa05b16e2b208888243da319941 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 16 Sep 2022 14:36:03 +0100 Subject: Place setup_data at location specified by host QEMU places setup_data at a particular location, which cannot be relocated due to it containing self references in absolute address terms. For this reason, it supplies the intended location in FW_CFG_SETUP_ADDR. That is what is used in the option ROMs provided by QEMU, use this too in qboot. This also has the effect of removing the 8k limit on the copied size, since the header is copied to the right location from the beginning. Cc: Paolo Bonzini Cc: Ard Biesheuvel Signed-off-by: Jason A. Donenfeld Message-Id: <20220916133603.693135-1-Jason@zx2c4.com> Signed-off-by: Paolo Bonzini --- include/linuxboot.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include') diff --git a/include/linuxboot.h b/include/linuxboot.h index 6e865f0..e04c234 100644 --- a/include/linuxboot.h +++ b/include/linuxboot.h @@ -10,7 +10,6 @@ struct linuxboot_args { /* Input */ uint32_t cmdline_size, vmlinuz_size, initrd_size; - uint8_t header[8192]; }; bool parse_bzimage(struct linuxboot_args *args); -- cgit v1.1