DM: split sw_load.c to sw_load.c and sw_load_direct.c

The common loader code is put to sw_load_common.c
The loader code for directly kernel loading is put to sw_load_bzimage.c
The further change for SBL will be put to sw_load_sbl.c

Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
Yin Fengwei
2018-03-21 14:57:44 +08:00
committed by Jack Ren
parent 544ec38b97
commit 6ee72d7df9
6 changed files with 266 additions and 147 deletions

View File

@@ -61,12 +61,10 @@
#include "smbiostbl.h"
#include "rtc.h"
#include "version.h"
#include "sw_load.h"
#define GUEST_NIO_PORT 0x488 /* guest upcalls via i/o port */
#define MB (1024UL * 1024)
#define GB (1024UL * MB)
typedef int (*vmexit_handler_t)(struct vmctx *,
struct vhm_request *, int *vcpu);