]> git.proxmox.com Git - mirror_qemu.git/commit - MAINTAINERS
hw/core/machine: Split out the smp parsing code
authorYanan Wang <wangyanan55@huawei.com>
Tue, 26 Oct 2021 03:46:58 +0000 (11:46 +0800)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Mon, 1 Nov 2021 18:44:11 +0000 (19:44 +0100)
commit86ce2d28fa09d15547b5cabdc264cadfb53a848c
tree7c20eee151f904e4e90650a25e83ae009c15b9f4
parent09112bef740853c9afd5318ecd0e93394648a3a6
hw/core/machine: Split out the smp parsing code

We are going to introduce an unit test for the parser smp_parse()
in hw/core/machine.c, but now machine.c is only built in softmmu.

In order to solve the build dependency on the smp parsing code and
avoid building unrelated stuff for the unit tests, move the tested
code from machine.c into a separate file, i.e., machine-smp.c and
build it in common field.

Signed-off-by: Yanan Wang <wangyanan55@huawei.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211026034659.22040-2-wangyanan55@huawei.com>
Acked-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
MAINTAINERS
hw/core/machine-smp.c [new file with mode: 0644]
hw/core/machine.c
hw/core/meson.build
include/hw/boards.h