hw/core/machine: Add an unit test for smp_parse
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 3 repliesIn review
- v22 patches 2 repliesSuperseded
- v12 patches 6 repliesSuperseded
Changes in v3 from the cover letter
- add Andrew's R-b for PATCH #1
- drop an unused macro definition in PATCH #2
- v2: https://lore.kernel.org/qemu-devel/[email protected]/
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | hw/core/machine: Split out the smp parsing codeMAINTAINERS hw/ hw/ +2 more | +185 | 0 replies | |
| 2/2 | tests/unit: Add an unit test for smp parsingMAINTAINERS tests/ tests/ | +596 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Andrew Jones | Philippe Mathieu-Daudé |
|---|---|---|
| Series | T-b | |
| 1/2 | R-b | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/2] hw/core/machine: Add an unit test for smp_parse
Hi,
This is v3 which introduces an unit test for generic smp_parse.
We have had enough discussions about what kind of SMP configurations by the user should be considered valid and what should be invalid. Since we have finished optimizing the SMP parsing code, then this test normatively listed all the possible valid/invalid configurations that the user can provide. This can be a testing tool when we introduce new topology members and need to touch the parsing code.
For your reference, some related discussion is here:
https://lore.kernel.org/qemu-devel/[email protected]/
Changelog:v2->v3:
- add Andrew's R-b for PATCH #1
- drop an unused macro definition in PATCH #2
- v2: https://lore.kernel.org/qemu-devel/[email protected]/
v1->v2:
- split smp_parse out into a separate .c file instead of a header (patch #1)
- dropped an unnecessary function and add Andrew's R-b (patch #2)
- v1: https://lore.kernel.org/qemu-devel/[email protected]/
Yanan Wang (2):
hw/core/machine: Split out the smp parsing code
tests/unit: Add an unit test for smp parsing
MAINTAINERS | 2 + hw/core/machine-smp.c | 181 +++++++++++ hw/core/machine.c | 159 ---------- hw/core/meson.build | 2 + include/hw/boards.h | 1 + tests/unit/meson.build | 1 + tests/unit/test-smp-parse.c | 594 ++++++++++++++++++++++++++++++++++++ 7 files changed, 781 insertions(+), 159 deletions(-) create mode 100644 hw/core/machine-smp.c create mode 100644 tests/unit/test-smp-parse.c
--
2.19.1