mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-17 15:44:32 +00:00
Move vcpu API create_vcpu to common. * Break create_vcpu into common vcpu init and arch_init_vcpu for arch-specific initialization. * Move vcpu_thread to arch-specific and rename to arch_vcpu_thread Tracked-On: #8830 Signed-off-by: Yifan Liu <yifan1.liu@intel.com> Reviewed-by: Fei Li <fei1.li@intel.com> Acked-by: Wang Yu1 <yu1.wang@intel.com>
32 lines
649 B
C
32 lines
649 B
C
/*
|
|
* Copyright (C) 2023-2025 Intel Corporation.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*
|
|
* Authors:
|
|
* Haicheng Li <haicheng.li@intel.com>
|
|
*/
|
|
|
|
#ifndef VM_CONFIG_H_
|
|
#define VM_CONFIG_H_
|
|
#include <board_info.h>
|
|
|
|
#define MAX_VCPUS_PER_VM MAX_PCPU_NUM
|
|
#define CONFIG_MAX_VM_NUM 16U
|
|
|
|
/* TODO: To be moved in later patches */
|
|
enum os_kernel_type {
|
|
DUMMY,
|
|
};
|
|
|
|
/* TODO: Dummy, to be removed */
|
|
#include <schedule.h>
|
|
struct acrn_vm_config {
|
|
struct sched_params sched_params; /* Scheduler params for vCPUs of this VM */
|
|
};
|
|
static inline struct acrn_vm_config *get_vm_config(__unused uint16_t vm_id) {
|
|
return NULL;
|
|
}
|
|
|
|
#endif /* VM_CONFIG_H_ */
|