We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec40153 commit f2e0f62Copy full SHA for f2e0f62
pkg/hostman/guestman/qemu-kvm.go
@@ -3015,7 +3015,7 @@ func (s *SKVMGuestInstance) startHotPlugVcpus(vcpuSet []int) error {
3015
3016
func (s *SKVMGuestInstance) hotPlugCpus() error {
3017
var vcpuSet = make([]int, 0)
3018
- if len(s.Desc.MemDesc.Mem.Mems) > 0 {
+ if s.Desc.MemDesc.Mem != nil && len(s.Desc.MemDesc.Mem.Mems) > 0 {
3019
for i := range s.Desc.CpuNumaPin {
3020
for j := range s.Desc.CpuNumaPin[i].VcpuPin {
3021
vcpuSet = append(vcpuSet, s.Desc.CpuNumaPin[i].VcpuPin[j].Vcpu)
0 commit comments