mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
HV: use separated vm_config.c for each scenario
Previously we use unified vm_config.c for all scenarios and use MACROs for each configuration items, then the initialization of vm_configs[] becomes more complicated when definition of MACROs increase, so change the coding style that all configurable items could be explicitly shown in vm_configuration.c to make code more readable. Tracked-On: #2291 Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <pci.h>
|
||||
#include <multiboot.h>
|
||||
#include <acrn_common.h>
|
||||
#include <vm_configurations.h>
|
||||
|
||||
#define PLUG_CPU(n) (1U << (n))
|
||||
|
||||
@@ -64,4 +65,6 @@ struct acrn_vm_config {
|
||||
struct acrn_vm_config *get_vm_config(uint16_t vm_id);
|
||||
int32_t sanitize_vm_config(void);
|
||||
|
||||
extern struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM];
|
||||
|
||||
#endif /* VM_CONFIG_H_ */
|
||||
|
Reference in New Issue
Block a user