mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-08 03:35:14 +00:00
config_tools: add default value for new vm cpu_affinity setting
add default value for new vm cpu_affinity setting Tracked-On: #6691 Signed-off-by: Weiyi Feng <weiyix.feng@intel.com>
This commit is contained in:
parent
b8d9e288bf
commit
631de1d6fd
@ -110,7 +110,15 @@ class Configurator {
|
||||
return {
|
||||
'@id': vmid,
|
||||
load_order: load_order,
|
||||
name: `VM${vmid}`
|
||||
name: `VM${vmid}`,
|
||||
cpu_affinity: {
|
||||
pcpu: [
|
||||
{
|
||||
pcpu_id: null,
|
||||
real_time_vcpu: false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
<div style="border:1px solid gray;background: #F5F5F5;padding: 1rem">
|
||||
<b>{{ uiOptions.title }}</b>
|
||||
<div class="p-4">
|
||||
<div v-if="defaultVal.pcpu && defaultVal.pcpu.length>0">
|
||||
<b-row>
|
||||
<b-col></b-col>
|
||||
<b-col></b-col>
|
||||
@ -39,6 +40,18 @@
|
||||
</b-col>
|
||||
</b-row>
|
||||
</div>
|
||||
<b-row v-else>
|
||||
<b-col>
|
||||
<div class="ToolSet">
|
||||
<div @click="addPCPU(-1)">
|
||||
<Icon size="18px">
|
||||
<Plus/>
|
||||
</Icon>
|
||||
</div>
|
||||
</div>
|
||||
</b-col>
|
||||
</b-row>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -52,11 +65,11 @@ import {
|
||||
import _ from 'lodash'
|
||||
import {Icon} from "@vicons/utils";
|
||||
import {Plus, Minus} from '@vicons/fa'
|
||||
import {BFormInput} from "bootstrap-vue-3";
|
||||
import {BFormInput, BRow} from "bootstrap-vue-3";
|
||||
|
||||
export default {
|
||||
name: "cpu_affinity",
|
||||
components: {BFormInput, Icon, Plus, Minus},
|
||||
components: {BRow, BFormInput, Icon, Plus, Minus},
|
||||
props: {
|
||||
...fieldProps,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user