mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
HV: vm_configs array refinement
- merge sharing_config.c and partition_config.c to vm_config.c; - make vm_configs[] static; 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:
@@ -64,16 +64,7 @@ struct acrn_vm_config {
|
||||
#endif
|
||||
} __aligned(8);
|
||||
|
||||
extern struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM];
|
||||
|
||||
/*
|
||||
* @pre vm_id < CONFIG_MAX_VM_NUM
|
||||
*/
|
||||
static inline struct acrn_vm_config *get_vm_config(uint16_t vm_id)
|
||||
{
|
||||
return &vm_configs[vm_id];
|
||||
}
|
||||
|
||||
struct acrn_vm_config *get_vm_config(uint16_t vm_id);
|
||||
int32_t sanitize_vm_config(void);
|
||||
|
||||
#endif /* VM_CONFIG_H_ */
|
||||
|
Reference in New Issue
Block a user