add CONFIG_VM0_DESC support

if defined CONFIG_VM0_DESC, HV will use predefined vm0_desc to config
VM0, otherwise, HV will run VM0 with all physical cpus.

Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Jason Chen CJ
2018-05-30 20:06:26 +08:00
committed by lijinxia
parent 22833787ce
commit 589c72382a
6 changed files with 34 additions and 0 deletions

View File

@@ -175,7 +175,9 @@ void resume_vm_from_s3(struct vm *vm, uint32_t wakeup_vec);
int start_vm(struct vm *vm);
int create_vm(struct vm_description *vm_desc, struct vm **vm);
int prepare_vm0(void);
#ifdef CONFIG_VM0_DESC
void vm_fixup(struct vm *vm);
#endif
struct vm *get_vm_from_vmid(uint16_t vm_id);