mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
HV: make vm kernel type configurable
Different kernel has different load method, it should be configurable in vm configurations; Tracked-On: #3214 Signed-off-by: Victor Sun <victor.sun@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
@@ -50,7 +50,7 @@ struct sw_kernel_info {
|
||||
};
|
||||
|
||||
struct vm_sw_info {
|
||||
int32_t kernel_type; /* Guest kernel type */
|
||||
enum os_kernel_type kernel_type; /* Guest kernel type */
|
||||
/* Kernel information (common for all guest types) */
|
||||
struct sw_kernel_info kernel_info;
|
||||
struct sw_module_info bootargs_info;
|
||||
@@ -69,9 +69,6 @@ struct vm_pm_info {
|
||||
struct pm_s_state_data *sx_state_data; /* data for S3/S5 implementation */
|
||||
};
|
||||
|
||||
/* VM guest types */
|
||||
#define VM_LINUX_GUEST 0x02
|
||||
#define VM_MONO_GUEST 0x01
|
||||
/* Enumerated type for VM states */
|
||||
enum vm_state {
|
||||
VM_POWERED_OFF = 0,
|
||||
|
@@ -61,8 +61,13 @@ struct vuart_config {
|
||||
struct target_vuart t_vuart; /* target vuart */
|
||||
} __aligned(8);
|
||||
|
||||
enum os_kernel_type {
|
||||
KERNEL_BZIMAGE = 1,
|
||||
};
|
||||
|
||||
struct acrn_vm_os_config {
|
||||
char name[MAX_VM_OS_NAME_LEN]; /* OS name, useful for debug */
|
||||
enum os_kernel_type kernel_type; /* used for kernel specifc loading method */
|
||||
char bootargs[MAX_BOOTARGS_SIZE]; /* boot args/cmdline */
|
||||
} __aligned(8);
|
||||
|
||||
|
Reference in New Issue
Block a user