mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-07 17:46:15 +00:00
HV: CAT: capability enumaration
Enumarate capability of Cache Allocation Technology(CAT) on X86 platform, when HV init the primary cpu. If CAT is supported, store its info to global struct cat_hw_info. 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
cf524e684d
commit
43ee5590a4
28
hypervisor/include/arch/x86/cat.h
Normal file
28
hypervisor/include/arch/x86/cat.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef CAT_H
|
||||
#define CAT_H
|
||||
|
||||
/* The intel Resource Director Tech(RDT) based Cache Allocation Tech support */
|
||||
struct cat_hw_info {
|
||||
bool support; /* If L2/L3 CAT supported */
|
||||
bool enabled; /* If any VM setup CLOS */
|
||||
uint32_t bitmask; /* Used by other entities */
|
||||
uint16_t cbm_len; /* Length of Cache mask in bits */
|
||||
uint16_t clos_max; /* Maximum CLOS supported, the number of cache masks */
|
||||
|
||||
uint32_t res_id;
|
||||
};
|
||||
|
||||
extern struct cat_hw_info cat_cap_info;
|
||||
|
||||
#define CAT_RESID_L3 1U
|
||||
#define CAT_RESID_L2 2U
|
||||
|
||||
int32_t init_cat_cap_info(void);
|
||||
|
||||
#endif /* CAT_H */
|
||||
Reference in New Issue
Block a user