[lxc-devel] [lxd/master] lxd/qemu: Fix crash on non-pinned VM
stgraber on Github
lxc-bot at linuxcontainers.org
Sat Jul 4 18:40:55 UTC 2020
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200704/ee407ce3/attachment.bin>
-------------- next part --------------
From d936307ba65213b48812be7bb1586dba17367fdc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Sat, 4 Jul 2020 14:40:08 -0400
Subject: [PATCH] lxd/qemu: Fix crash on non-pinned VM
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
lxd/instance/drivers/driver_qemu.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/lxd/instance/drivers/driver_qemu.go b/lxd/instance/drivers/driver_qemu.go
index ab1f517b35..fe08a019c7 100644
--- a/lxd/instance/drivers/driver_qemu.go
+++ b/lxd/instance/drivers/driver_qemu.go
@@ -1814,6 +1814,7 @@ func (vm *qemu) addCPUMemoryConfig(sb *strings.Builder) error {
ctx["cpuSockets"] = 1
ctx["cpuCores"] = cpuCount
ctx["cpuThreads"] = 1
+ hostNodes = []uint64{0}
} else {
// Expand to a set of CPU identifiers and get the pinning map.
nrSockets, nrCores, nrThreads, vcpus, numaNodes, err := vm.cpuTopology(cpus)
More information about the lxc-devel
mailing list