Internships/ProjectIdeas/memhotplug test

From QEMU
Revision as of 13:03, 14 January 2019 by Imammedo (talk | contribs) (Created page with "=== Memory hotplug test === '''Summary:''' Implement memory hotplug testing for 'make check'. * Refactor "-m mem,slots,maxmem" to MachineClass properties and replace related...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Memory hotplug test

Summary: Implement memory hotplug testing for 'make check'.

  • Refactor "-m mem,slots,maxmem" to MachineClass properties and replace related global variables where they are still used with properties. Make "set_memory_options()" use new properties leaving only CLI parsing there. Goal is to make "set_memory_options()" function a thin wrapper that takes care of CLI parsing and makes CLI option '-m' an alias to new -machine mem/mem-slots/maxmem options.
  • Create a set of basic tests for 'make check' to verify that -m/-machine CLI parsing works as expected and based on that a set memory hot-add tests using QMP introspection to verify the expected behaviour.

Links:

  • $(QEMU sources)/docs/memory-hotplug.txt

Details:

  • Skill level: intermediate
  • Language: C
  • Mentor: Igor Mammedov <imammedo@redhat.com> ("imammedo" on IRC)