From 4fd3c00564b23f98e815d3c3a330041089b1cf26 Mon Sep 17 00:00:00 2001 From: Jiajie Li Date: Mon, 8 Aug 2022 10:09:08 +0800 Subject: [PATCH] StratoVirt: update bootindex usage Signed-off-by: Jiajie Li --- docs/en/docs/StratoVirt/VM_configuration.md | 3 ++- ...231\232\346\213\237\346\234\272\351\205\215\347\275\256.md" | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/en/docs/StratoVirt/VM_configuration.md b/docs/en/docs/StratoVirt/VM_configuration.md index c303569a3..0fe427da1 100644 --- a/docs/en/docs/StratoVirt/VM_configuration.md +++ b/docs/en/docs/StratoVirt/VM_configuration.md @@ -107,6 +107,7 @@ VM disk configuration includes the following configuration items: - **bus**: bus to which the device is to be mounted. - **addr**: IDs of the slot and function to which the device is to be mounted. - **multifunction** (optional): whether to enable PCI multi-function. +- **bootindex** (optional, only for standard machine): set the boot order of block device. If not set, the priority is lowest. The number ranges from 0 to 255, the smaller the number, the higher the priority. #### Disk Configuration Modes @@ -123,7 +124,7 @@ The standard VM configuration format is as follows: ``` -drive id=drive_id,file=path_on_host[,readonly=off][,direct=off][,throttling.iops-total=200][,if=none] --device virtio-blk-pci,drive=drive_id,bus=pcie.0,addr=0x3.0x0,id=blkid[,iothread=iothread1,][serial=serial_num][,multifunction=on] +-device virtio-blk-pci,drive=drive_id,bus=pcie.0,addr=0x3.0x0,id=blkid[,iothread=iothread1,][serial=serial_num][,multifunction=on][,bootindex=1] ``` The following describes the **throttling.iops-total** and **iothread** configuration items: diff --git "a/docs/zh/docs/StratoVirt/\350\231\232\346\213\237\346\234\272\351\205\215\347\275\256.md" "b/docs/zh/docs/StratoVirt/\350\231\232\346\213\237\346\234\272\351\205\215\347\275\256.md" index d5262daf3..c98265fbd 100644 --- "a/docs/zh/docs/StratoVirt/\350\231\232\346\213\237\346\234\272\351\205\215\347\275\256.md" +++ "b/docs/zh/docs/StratoVirt/\350\231\232\346\213\237\346\234\272\351\205\215\347\275\256.md" @@ -108,6 +108,7 @@ StratoVirt 能够运行的最小配置为: - bus:设备要挂载的bus。 - addr:设备要挂载的slot和function号。 - multifunction:是否开启pci多功能。(可选配置) +- bootindex:配置启动优先级属性,如果没有设置,默认最低优先级。配置范围从0到255,数字越小,优先级越高。(可选配置,只支持标准机型) #### 磁盘配置方式 @@ -124,7 +125,7 @@ StratoVirt 能够运行的最小配置为: ``` -drive id=drive_id,file=path_on_host[,readonly=off][,direct=off][,throttling.iops-total=200][,if=none] --device virtio-blk-pci,drive=drive_id,bus=pcie.0,addr=0x3.0x0,id=blkid[,iothread=iothread1,][serial=serial_num][,multifunction=on] +-device virtio-blk-pci,drive=drive_id,bus=pcie.0,addr=0x3.0x0,id=blkid[,iothread=iothread1,][serial=serial_num][,multifunction=on][,bootindex=1] ``` 下面对throttling.iops-total和iothread两个配置项进行详细说明: -- Gitee