Machine/NUMA fixes for -rc0
The following changes since commit 43a473993fd9378bf850dcafa68eb6dee8c300f8:
Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2018-07-06 18:18:08 +0100)
are available in the Git repository at:
git://github.com/ehabkost/qemu.git tags/machine-next-pull-request
for you to fetch changes up to 7747abf114874537e898c60ff863828a4e82201d:
hw/machine: Remove the Zero check of nb_numa_nodes for numa_complete_configuration() (2018-07-09 14:37:48 -0300)
----------------------------------------------------------------
Machine/NUMA fixes for -rc0
* Properly free device_memory at machine_finalize()
* Fix implicit NUMA initialization regression (for machines with auto_enable_numa_with_memhp=true)
----------------------------------------------------------------
Queue for Machine Core patches
David Hildenbrand (1):
machine: properly free device_memory
Dou Liyang (1):
hw/machine: Remove the Zero check of nb_numa_nodes for
numa_complete_configuration()
hw/core/machine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.18.0.rc1.1.g3f1ff2140
[Qemu-devel] [PULL 1/2] machine: properly free device_memory
From: David Hildenbrand <[email protected]>
Machines might have inititalized device_memory if they support memory devices, so let's properly free it.
Message-Id: <[email protected]>
--- hw/core/machine.c | 1 + 1 file changed, 1 insertion(+)
hw/core/machine.c +1 -0
@@ -674,6 +674,7 @@ static void machine_finalize(Object *obj)g_free (ms->dumpdtb);g_free (ms->dt_compatible);g_free (ms->firmware); +g_free (ms->device_memory); }bool machine_usb (MachineState *machine)
Signature · 1 line
2.18.0.rc1.1.g3f1ff2140
[Qemu-devel] [PULL 2/2] hw/machine: Remove the Zero check of nb_numa_nodes for numa_complete_configuration()
In reply to Eduardo HabkostFrom: Dou Liyang <[email protected]>
Commit 7a3099fc9c5c("numa: postpone options post-processing till machine_run_board_init()") broke the commit 7b8be49d36fc("NUMA: Enable adding NUMA node implicitly").
The machine_run_board_init() doesn't do NUMA setup if nb_numa_nodes=0, but the numa_complete_configuration need add a new node if memory hotplug is enabled (slots > 0) even nb_numa_nodes=0.
So, Remove the check for numa_complete_configuration() to fix this.
Fixes 7a3099fc9c5c("numa: postpone options post-processing till machine_run_board_init()")
Message-Id: <[email protected]>
--- hw/core/machine.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
hw/core/machine.c +2 -3
@@ -792,10 +792,9 @@ void machine_run_board_init(MachineState *machine) {MachineClass *machine_class =MACHINE_GET_CLASS (machine); -if (nb_numa_nodes) { -numa_complete_configuration (machine); +numa_complete_configuration (machine); +if (nb_numa_nodes)machine_numa_finish_cpu_init (machine); - }/* If the machine supports the valid_cpu_types check and the user * specified a CPU with -cpu check here that the user CPU is supported.
Signature · 1 line
2.18.0.rc1.1.g3f1ff2140
This series seems to have some coding style problems. See output below for more information:
Hi,
This series seems to have some coding style problems. See output below for more information:
Type: series
Message-id: [email protected]
Subject: [Qemu-devel] [PULL 0/2] Machine/NUMA fixes for -rc0
=== TEST SCRIPT BEGIN ===
#!/bin/bash
BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
commits="$(git log --format=%H --reverse $BASE..)" for c in $commits; do
echo "Checking PATCH $n/$total: $(git log -n 1 --format=%s $c)..."
if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
failed=1
echo
fi
n=$((n+1))done
exit $failed
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
* [new tag] patchew/[email protected] -> patchew/[email protected]
Switched to a new branch 'test'4956ab47be hw/machine: Remove the Zero check of nb_numa_nodes for numa_complete_configuration() daaacdfd4b machine: properly free device_memory
=== OUTPUT BEGIN ===
Checking PATCH 1/2: machine: properly free device_memory...
Checking PATCH 2/2: hw/machine: Remove the Zero check of nb_numa_nodes for numa_complete_configuration()...
ERROR: braces {} are necessary for all arms of this statement
#34: FILE: hw/core/machine.c:796:
+ if (nb_numa_nodes)
[...]
total: 1 errors, 0 warnings, 12 lines checked
Your patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===
Test command exited with code: 1
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]
Peter Maydell
AppliedQuoted 12 lines · Eduardo Habkost
The following changes since commit
43a473993fd9378bf850dcafa68eb6dee8c300f8:Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2018-07-06 18:18:08 +0100)
are available in the Git repository at:
git://github.com/ehabkost/qemu.gittags/machine-next-pull-requestfor you to fetch changes up to
7747abf114874537e898c60ff863828a4e82201d:hw/machine: Remove the Zero check of
nb_numa_nodesfornuma_complete_configuration()(2018-07-09 14:37:48 -0300)
Quoted 9 lines
----------------------------------------------------------------
Machine/NUMA fixes for -rc0* Properly free
device_memoryatmachine_finalize()
* Fix implicit NUMA initialization regression (for machines with auto_enable_numa_with_memhp=true)----------------------------------------------------------------
Applied, thanks.
-- PMM