aboutsummaryrefslogtreecommitdiff
path: root/linuxboot.c
diff options
context:
space:
mode:
authorLiam Merwick <liam.merwick@oracle.com>2018-11-20 13:01:47 +0000
committerPaolo Bonzini <bonzini@gnu.org>2018-12-28 14:31:29 +0100
commitfec27f4d23b7335a72c4c6a4bb75e94e7500669a (patch)
tree51186d1df58fec3a27874708888bc58fccdf5089 /linuxboot.c
parent281da37f5907f48b10c62622551446e8f14aea09 (diff)
downloadqboot-fec27f4d23b7335a72c4c6a4bb75e94e7500669a.zip
qboot-fec27f4d23b7335a72c4c6a4bb75e94e7500669a.tar.gz
qboot-fec27f4d23b7335a72c4c6a4bb75e94e7500669a.tar.bz2
pvh: use x86/HVM direct boot ABI
These changes (along with corresponding QEMU and Linux kernel changes) enable a guest to be booted using the x86/HVM direct boot ABI. QEMU parses the uncompressed kernel binary passed to it via -kernel to read the ELF Note which contains the address to be loaded. QEMU then depends on qboot to populate the start_info struct needed by the direct boot ABI and configure the guest e820 tables before jumping to the loaded kernel entry. Signed-off-by: George Kennedy <George.Kennedy@oracle.com> Signed-off-by: Liam Merwick <Liam.Merwick@oracle.com>
Diffstat (limited to 'linuxboot.c')
-rw-r--r--linuxboot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linuxboot.c b/linuxboot.c
index d7eac74..cfcaf2d 100644
--- a/linuxboot.c
+++ b/linuxboot.c
@@ -2,10 +2,13 @@
#include "linuxboot.h"
#include "memaccess.h"
#include "ioport.h"
+#include "start_info.h"
#include "string.h"
#include "stdio.h"
#include "benchmark.h"
+struct hvm_start_info start_info = {0};
+
bool parse_bzimage(struct linuxboot_args *args)
{
uint8_t *header = args->header;