Files
acrn-hypervisor/hypervisor/include/arch/riscv/asm/vm_config.h
Yifan Liu 134c5f6ab7 hv: vcpu: Move create_vcpu to common vcpu.c
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>
2025-10-30 13:30:32 +08:00

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_ */