DM: Enable vsbl boot path.

There are two things here:
1. Enable basic vsbl boot functionality.
2. add long option to DM to specific vsbl file. So DM could
   choice to boot guest with vsbl.

It's hard to find a suitable short option. So only long option
is supported for vsbl file name option.

If long option "--vsbl='vsbl_file_name'" is given in DM
commandline, the "vsbl_file_name" will be loaded by DM
first and running. vsbl will be response to lead guest to
next boot stage.

Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
Yin Fengwei
2018-03-21 15:13:02 +08:00
committed by Jack Ren
parent 860c2cab3e
commit 1e13533ec0
5 changed files with 313 additions and 4 deletions

View File

@@ -38,6 +38,7 @@
struct vmctx;
extern int guest_ncpus;
extern char *guest_uuid_str;
extern char *vsbl_file_name;
extern char *vmname;
extern bool stdio_in_use;