mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-16 06:19:24 +00:00
acrn-config: rename MAX_PLATFORM_CLOS_NUM to HV_SUPPORTED_MAX_CLOS
HV_SUPPORTED_MAX_CLOS: This value represents the maximum CLOS that is allowed by ACRN hypervisor. This value is set to be least common Max CLOS (CPUID.(EAX=0x10,ECX=ResID):EDX[15:0]) among all supported RDT resources in the platform. In other words, it is min(maximum CLOS of L2, L3 and MBA). This is done in order to have consistent CLOS allocations between all the RDT resources. Tracked-On: #5229 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
This commit is contained in:
@@ -79,7 +79,7 @@ static bool check_vm_uuid_collision(uint16_t vm_id)
|
||||
static bool check_vm_clos_config(uint16_t vm_id)
|
||||
{
|
||||
uint16_t i;
|
||||
uint16_t platform_clos_num = MAX_PLATFORM_CLOS_NUM;
|
||||
uint16_t platform_clos_num = HV_SUPPORTED_MAX_CLOS;
|
||||
bool ret = true;
|
||||
struct acrn_vm_config *vm_config = get_vm_config(vm_id);
|
||||
uint16_t vcpu_num = bitmap_weight(vm_config->cpu_affinity);
|
||||
|
Reference in New Issue
Block a user