mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
HV: add new acrn_vm_config member and config files
- add new struct member for acrn_vm_config; - add sharing_config.c file with initialized vm_config array; - add SOS VM config header for apl-mrb/apl-nuc/up2 and dnv-cb2 board; - and partition_config.c file with dummy vm_config array; 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:
17
hypervisor/arch/x86/configs/apl-mrb/sos_vm.h
Normal file
17
hypervisor/arch/x86/configs/apl-mrb/sos_vm.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef SOS_VM_CONFIG_H
|
||||
#define SOS_VM_CONFIG_H
|
||||
|
||||
#define SOS_VM_CONFIG_NAME "ACRN SOS VM for APL-MRB"
|
||||
#define SOS_VM_CONFIG_MEM_SIZE 0x200000000UL
|
||||
#define SOS_VM_CONFIG_PCPU_BITMAP (PLUG_CPU(0) | PLUG_CPU(1) | PLUG_CPU(2) | PLUG_CPU(3))
|
||||
#define SOS_VM_CONFIG_GUEST_FLAGS IO_COMPLETION_POLLING
|
||||
|
||||
#define SOS_VM_CONFIG_OS_NAME "ClearLinux 26600"
|
||||
|
||||
#endif /* SOS_VM_CONFIG_H */
|
1
hypervisor/arch/x86/configs/apl-nuc
Symbolic link
1
hypervisor/arch/x86/configs/apl-nuc
Symbolic link
@@ -0,0 +1 @@
|
||||
nuc6cayh
|
17
hypervisor/arch/x86/configs/dnv-cb2/sos_vm.h
Normal file
17
hypervisor/arch/x86/configs/dnv-cb2/sos_vm.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
#ifndef SOS_VM_CONFIG_H
|
||||
#define SOS_VM_CONFIG_H
|
||||
|
||||
#define SOS_VM_CONFIG_NAME "ACRN SOS VM for DNV-CB2"
|
||||
#define SOS_VM_CONFIG_MEM_SIZE 0x400000000UL
|
||||
#define SOS_VM_CONFIG_PCPU_BITMAP (PLUG_CPU(0) | PLUG_CPU(1) | PLUG_CPU(2) | PLUG_CPU(3) \
|
||||
| PLUG_CPU(4) | PLUG_CPU(5) | PLUG_CPU(6) | PLUG_CPU(7))
|
||||
#define SOS_VM_CONFIG_GUEST_FLAGS IO_COMPLETION_POLLING
|
||||
|
||||
#define SOS_VM_CONFIG_OS_NAME "ClearLinux 26600"
|
||||
|
||||
#endif /* SOS_VM_CONFIG_H */
|
16
hypervisor/arch/x86/configs/nuc6cayh/sos_vm.h
Normal file
16
hypervisor/arch/x86/configs/nuc6cayh/sos_vm.h
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
#ifndef SOS_VM_CONFIG_H
|
||||
#define SOS_VM_CONFIG_H
|
||||
|
||||
#define SOS_VM_CONFIG_NAME "ACRN SOS VM for APL-NUC"
|
||||
#define SOS_VM_CONFIG_MEM_SIZE 0x400000000UL
|
||||
#define SOS_VM_CONFIG_PCPU_BITMAP (PLUG_CPU(0) | PLUG_CPU(1) | PLUG_CPU(2) | PLUG_CPU(3))
|
||||
#define SOS_VM_CONFIG_GUEST_FLAGS IO_COMPLETION_POLLING
|
||||
|
||||
#define SOS_VM_CONFIG_OS_NAME "ClearLinux 26600"
|
||||
|
||||
#endif /* SOS_VM_CONFIG_H */
|
10
hypervisor/arch/x86/configs/partition_config.c
Normal file
10
hypervisor/arch/x86/configs/partition_config.c
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <hypervisor.h>
|
||||
|
||||
struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] __aligned(PAGE_SIZE) = {
|
||||
};
|
24
hypervisor/arch/x86/configs/sharing_config.c
Normal file
24
hypervisor/arch/x86/configs/sharing_config.c
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <hypervisor.h>
|
||||
#include <sos_vm.h>
|
||||
|
||||
struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] __aligned(PAGE_SIZE) = {
|
||||
{
|
||||
.type = SOS_VM,
|
||||
.name = SOS_VM_CONFIG_NAME,
|
||||
.pcpu_bitmap = SOS_VM_CONFIG_PCPU_BITMAP,
|
||||
.guest_flags = SOS_VM_CONFIG_GUEST_FLAGS,
|
||||
.memory = {
|
||||
.start_hpa = 0x0UL,
|
||||
.size = SOS_VM_CONFIG_MEM_SIZE,
|
||||
},
|
||||
.os_config = {
|
||||
.name = SOS_VM_CONFIG_OS_NAME,
|
||||
},
|
||||
},
|
||||
};
|
17
hypervisor/arch/x86/configs/up2/sos_vm.h
Normal file
17
hypervisor/arch/x86/configs/up2/sos_vm.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef SOS_VM_CONFIG_H
|
||||
#define SOS_VM_CONFIG_H
|
||||
|
||||
#define SOS_VM_CONFIG_NAME "ACRN SOS VM for APL-UP2"
|
||||
#define SOS_VM_CONFIG_MEM_SIZE 0x200000000UL
|
||||
#define SOS_VM_CONFIG_PCPU_BITMAP (PLUG_CPU(0) | PLUG_CPU(1))
|
||||
#define SOS_VM_CONFIG_GUEST_FLAGS IO_COMPLETION_POLLING
|
||||
|
||||
#define SOS_VM_CONFIG_OS_NAME "ClearLinux 26600"
|
||||
|
||||
#endif /* SOS_VM_CONFIG_H */
|
Reference in New Issue
Block a user