VCPU Hotplug
热插vcpu主要流程
hotpluggable配置缺省值
qemuDomainAttachDevice
qemuDomainAttachDeviceFlags
qemuDomainAttachDeviceLiveAndConfig
qemuDomainAttachDeviceConfig
virDomainDefPostParse
virDomainDefPostParseCommon
virDomainVcpuDefPostParse
以下代码可以确定,当没有配置vcpu的hotpluggable时:
- 如果使能了vcpu,那么就是不可热插拔
- 如果没有使能vcpu,那么就是可热插拔
VCPU Hotplug
https://gjorn4389.github.io/2024/03/13/virtual/vcpu_hotplug/