mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-09 20:18:19 +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 {
|
return {
|
||||||
'@id': vmid,
|
'@id': vmid,
|
||||||
load_order: load_order,
|
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">
|
<div style="border:1px solid gray;background: #F5F5F5;padding: 1rem">
|
||||||
<b>{{ uiOptions.title }}</b>
|
<b>{{ uiOptions.title }}</b>
|
||||||
<div class="p-4">
|
<div class="p-4">
|
||||||
|
<div v-if="defaultVal.pcpu && defaultVal.pcpu.length>0">
|
||||||
<b-row>
|
<b-row>
|
||||||
<b-col></b-col>
|
<b-col></b-col>
|
||||||
<b-col></b-col>
|
<b-col></b-col>
|
||||||
@ -39,6 +40,18 @@
|
|||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -52,11 +65,11 @@ import {
|
|||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
import {Icon} from "@vicons/utils";
|
import {Icon} from "@vicons/utils";
|
||||||
import {Plus, Minus} from '@vicons/fa'
|
import {Plus, Minus} from '@vicons/fa'
|
||||||
import {BFormInput} from "bootstrap-vue-3";
|
import {BFormInput, BRow} from "bootstrap-vue-3";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "cpu_affinity",
|
name: "cpu_affinity",
|
||||||
components: {BFormInput, Icon, Plus, Minus},
|
components: {BRow, BFormInput, Icon, Plus, Minus},
|
||||||
props: {
|
props: {
|
||||||
...fieldProps,
|
...fieldProps,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user