mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
HV: CAT: add platform specified info for CLOS
IF CAT is supported, and we want setup initial values to IA32_Type_MASK_n MSRs, We can define a global structure platform_clos_array[PLATFORM_CLOS_NUM], it has 2 members: 1.msr_index, the MSR address of IA32_Type_MASK_n 2.clos_masky, the initial valuses Global varible platform_clos_num is the number of IA32_Type_MASK_n, from IA32_Type_MASK_0 to IA32_Type_MASK_<CLOS_MAX_NUM - 1> Tracked-On: #2462 Signed-off-by: Tao Yuhong <yuhong.tao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
Eddie Dong
parent
ae34fdd843
commit
cf524e684d
10
hypervisor/arch/x86/configs/apl-mrb/board.c
Normal file
10
hypervisor/arch/x86/configs/apl-mrb/board.c
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <board.h>
|
||||
|
||||
struct platform_clos_info platform_clos_array[0];
|
||||
uint16_t platform_clos_num = 0;
|
29
hypervisor/arch/x86/configs/apl-up2/board.c
Normal file
29
hypervisor/arch/x86/configs/apl-up2/board.c
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <board.h>
|
||||
#include <msr.h>
|
||||
|
||||
struct platform_clos_info platform_clos_array[4] = {
|
||||
{
|
||||
.clos_mask = 0xff,
|
||||
.msr_index = MSR_IA32_L2_MASK_0,
|
||||
},
|
||||
{
|
||||
.clos_mask = 0xff,
|
||||
.msr_index = MSR_IA32_L2_MASK_1,
|
||||
},
|
||||
{
|
||||
.clos_mask = 0xff,
|
||||
.msr_index = MSR_IA32_L2_MASK_2,
|
||||
},
|
||||
{
|
||||
.clos_mask = 0xff,
|
||||
.msr_index = MSR_IA32_L2_MASK_3,
|
||||
},
|
||||
};
|
||||
|
||||
uint16_t platform_clos_num = (uint16_t)(sizeof(platform_clos_array)/sizeof(struct platform_clos_info));
|
10
hypervisor/arch/x86/configs/dnv-cb2/board.c
Normal file
10
hypervisor/arch/x86/configs/dnv-cb2/board.c
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <board.h>
|
||||
|
||||
struct platform_clos_info platform_clos_array[0];
|
||||
uint16_t platform_clos_num = 0;
|
10
hypervisor/arch/x86/configs/nuc6cayh/board.c
Normal file
10
hypervisor/arch/x86/configs/nuc6cayh/board.c
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <board.h>
|
||||
|
||||
struct platform_clos_info platform_clos_array[0];
|
||||
uint16_t platform_clos_num = 0;
|
10
hypervisor/arch/x86/configs/nuc7i7bnh/board.c
Normal file
10
hypervisor/arch/x86/configs/nuc7i7bnh/board.c
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <board.h>
|
||||
|
||||
struct platform_clos_info platform_clos_array[0];
|
||||
uint16_t platform_clos_num = 0;
|
Reference in New Issue
Block a user