vm: Pass uuid from DM commandline to vm as GUID.

Also save the uuid to ctx in case DM needs to access the
uuid.

Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
Yin Fengwei
2018-03-09 13:33:41 +08:00
committed by Jack Ren
parent 81c47e776e
commit 3775f29e3c
2 changed files with 19 additions and 0 deletions

View File

@@ -30,6 +30,7 @@
#define _VMMAPI_H_
#include <sys/param.h>
#include <uuid/uuid.h>
#include "types.h"
#include "vmm.h"
@@ -52,6 +53,7 @@ struct vmctx {
char *mmap_highmem;
char *baseaddr;
char *name;
uuid_t vm_uuid;
};
/*