mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-21 13:08:42 +00:00
config_tools: Add core type infomation to pCPU
If a platform has both P-core and E-core, prompt user about the core type when set the CPU affinity for VMs. Tracked-On: #8050 Signed-off-by: Yuanyuan Zhao <yuanyuan.zhao@linux.intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
parent
f78c8f4660
commit
4c17ab47eb
@ -34,8 +34,11 @@
|
||||
</label>
|
||||
</b-col>
|
||||
<b-col>
|
||||
<b-form-select :state="validateCPUAffinity(cpu.pcpu_id)" v-model="cpu.pcpu_id"
|
||||
:options="pcpuid_enum"></b-form-select>
|
||||
<b-form-select :state="validateCPUAffinity(cpu.pcpu_id)" v-model="cpu.pcpu_id">
|
||||
<option v-for="pcpu in pcpuid_enum.enum" :value="pcpu">
|
||||
{{pcpuid_enum.enumNames[pcpuid_enum.enum.indexOf(pcpu)]}}
|
||||
</option>
|
||||
</b-form-select>
|
||||
<b-form-invalid-feedback>
|
||||
pCPU ID is required!
|
||||
</b-form-invalid-feedback>
|
||||
@ -117,7 +120,7 @@ export default {
|
||||
return vueUtils.getPathVal(this.rootFormData, 'vm_type') === 'RTVM'
|
||||
},
|
||||
pcpuid_enum() {
|
||||
return window.getCurrentFormSchemaData().BasicConfigType.definitions.CPUAffinityConfiguration.properties.pcpu_id.enum
|
||||
return window.getCurrentFormSchemaData().BasicConfigType.definitions.CPUAffinityConfiguration.properties.pcpu_id
|
||||
},
|
||||
uiOptions() {
|
||||
return formUtils.getUiOptions({
|
||||
@ -140,7 +143,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
validateCPUAffinity(pcpu_id) {
|
||||
return _.isNumber(pcpu_id) && this.pcpuid_enum.indexOf(pcpu_id) >= 0
|
||||
return _.isNumber(pcpu_id) && this.pcpuid_enum.enum.indexOf(pcpu_id) >= 0
|
||||
},
|
||||
vCPUName(index) {
|
||||
return `${this.rootFormData.name} vCPU ${index}`
|
||||
|
Loading…
Reference in New Issue
Block a user