]> git.ipfire.org Git - thirdparty/qemu.git/commit
numa: allow memory-less nodes when using memdev as backend
authorIgor Mammedov <imammedo@redhat.com>
Tue, 2 Jul 2019 14:07:44 +0000 (10:07 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 5 Jul 2019 20:12:45 +0000 (17:12 -0300)
commitb69239e085b00c8f29475421ade5295c13417ed4
tree9c4ba28ea930d43172c8ca3adca847873cf07edb
parentf8123f2275d27c44fe523b36a039ca4739e5bbfe
numa: allow memory-less nodes when using memdev as backend

QEMU fails to start if memory-less node is present when memdev
is used
  qemu-system-x86_64 -object memory-backend-ram,id=ram0,size=128M \
                     -numa node -numa node,memdev=ram0
with error:
  "memdev option must be specified for either all or no nodes"

which works as expected if legacy 'mem' is used.

Fix check to make memory-less nodes valid when memdev option is used
but still disallow mix of mem and memdev options.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20190702140745.27767-2-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/core/numa.c