vm load: fix bug in loading kernel

According to the explaination for pref_address
in Documentation/x86/boot.txt, a relocating bootloader
should attempt to load kernel at pref_address if possible.
But due to a non-relocatable kernel will unconditionally
move itself and to run at perf address, no need to copy
kernel to perf_address by bootloader.

Signed-off-by: Zheng, Gen <gen.zheng@intel.com>
This commit is contained in:
Zheng, Gen
2018-03-20 14:05:47 +08:00
committed by Jack Ren
parent b6d73be1a6
commit 124910ba14
4 changed files with 87 additions and 27 deletions

View File

@@ -37,6 +37,7 @@
#include <acrn_hv_defs.h>
#include <hv_debug.h>
#include <multiboot.h>
#include <zeropage.h>
#define ACRN_DBG_GUEST 6