From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzlb4-0004sG-Vv for qemu-devel@nongnu.org; Wed, 25 Jun 2014 07:42:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wzlb0-0002F9-6D for qemu-devel@nongnu.org; Wed, 25 Jun 2014 07:42:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzlaz-0002Es-Vd for qemu-devel@nongnu.org; Wed, 25 Jun 2014 07:42:34 -0400 From: Igor Mammedov Date: Wed, 25 Jun 2014 13:42:19 +0200 Message-Id: <1403696543-2458-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] tests for -m option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: marcel.a@redhat.com, stefano.stabellini@eu.citrix.com, agraf@suse.de, mst@redhat.com, pbonzini@redhat.com, afaerber@suse.de 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