NUMA node binding are not supported by qemu
Hi!
When running
qemu-system-x86_64 -name guest=cirros,debug-threads=on -S
-machine pc-i440fx-5.2,accel=kvm,usb=off,dump-guest-core=off,memory-backend=pc.ram
-cpu qemu64,x2apic=on,hypervisor=on,lahf-lm=on,svm=off
-m 2048
-object memory-backend-ram,id=pc.ram,size=2147483648,host-nodes=1,policy=bind
-overcommit mem-lock=off
-smp 2,sockets=2,dies=1,cores=1,threads=1
I got the following error: "NUMA node binding are not supported by this QEMU".
My Env:
alpine:3.14
apk add qemu-system-x86_64
It appears that the package qemu-system-x86_64 was built without CONFIG_NUMA being defined. After installing numactl-dev and building qemu-system-x86_64 from source code, the error was gone.