Skip to content

tests for -m option

Igor Mammedov qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4switch RAM_ADDR_FMT format specifier to print decimalarch_init.c exec.c hw/i386/pc.c +5 more+25 -244 replies
2/4vl.c: use single local_err throughout main()vl.c+1 -33 replies
3/4machine: convert ram_size, maxram_size, ram_slots to propertieshw/core/machine.c include/hw/boards.h vl.c+240 -695 replies
4/4test -m option parameterstests/Makefile tests/memhp-test.c+147 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] tests for -m option

Series adds properties to machine class for its ram_size, ram_slots, maxram_size fields making them available via QMP interface so that management tools and unit tests could query values.

The last patch provides rudimentary -m option testing and basis for memory hotplug tests that will be added later.

git repo for testing:
https://github.com/imammedo/qemu/commits/memory-hotplug-tests-v1

Igor Mammedov (4):
switch RAM_ADDR_FMT format specifier to print decimal vl.c: use single local_err throughout main()
machine: convert ram_size, maxram_size, ram_slots to properties test -m option parameters

 arch_init.c               |   14 ++--
 exec.c                    |    4 +-
 hw/core/machine.c         |  181 +++++++++++++++++++++++++++++++++++++++++++++
 hw/i386/pc.c              |    4 +-
 hw/ppc/ppc405_boards.c    |    2 +-
 include/exec/cpu-common.h |    6 +-
 include/hw/boards.h       |    5 +
 numa.c                    |    2 +-
 tests/Makefile            |    2 +
 tests/memhp-test.c        |  145 ++++++++++++++++++++++++++++++++++++
 vl.c                      |  127 ++++++++++++++------------------
 xen-hvm.c                 |   11 +--
 12 files changed, 410 insertions(+), 93 deletions(-)
 create mode 100644 tests/memhp-test.c