From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ2S6-0004YL-BM for qemu-devel@nongnu.org; Wed, 04 Feb 2015 11:05:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJ2S2-00043S-Fc for qemu-devel@nongnu.org; Wed, 04 Feb 2015 11:05:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ2S2-00043O-85 for qemu-devel@nongnu.org; Wed, 04 Feb 2015 11:05:14 -0500 From: Marcel Apfelbaum Date: Wed, 4 Feb 2015 17:43:47 +0200 Message-Id: <1423064635-19045-1-git-send-email-marcel@redhat.com> Subject: [Qemu-devel] [PATCH 0/8] machine: query machine properties rather than qemu opts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, peter.crosthwaite@xilinx.com, james.hogan@imgtec.com, mst@redhat.com, marcel@redhat.com, jan.kiszka@siemens.com, cornelia.huck@de.ibm.com, agraf@suse.de, borntraeger@de.ibm.com, scottwood@freescale.com, pbonzini@redhat.com, leon.alrae@imgtec.com, aurelien@aurel32.net Commit e79d5a6 ("machine: remove qemu_machine_opts global list") removed option descriptions from the -machine QemuOptsList to avoid repeating MachineState's QOM properties. This results in a Qemu crash if a non string option is queried using qemu opts. Fix this by querying machine properties through designated wrappers. I hope I didn't miss anything. Comments are appreciated as always. Thanks, Marcel Marcel Apfelbaum (8): machine: query iommu machine property rather than qemu opts hw/machine: kernel-irqchip property support for allowed/required machine: query kernel-irqchip machine property rather than qemu opts kvm: add machine state to kvm_arch_init machine: query kvm-shadow-mem machine property rather than qemu opts machine: query phandle-start machine property rather than qemu opts machine: query dump-guest-core machine property rather than qemu opts machine: query mem-merge machine property rather than qemu opts device_tree.c | 5 ++--- exec.c | 6 +++--- hw/core/machine.c | 52 +++++++++++++++++++++++++++++++++++++++++++--------- hw/pci-host/q35.c | 2 +- hw/ppc/e500.c | 16 +++++----------- hw/ppc/spapr.c | 16 ++++++---------- include/hw/boards.h | 10 +++++++++- include/sysemu/kvm.h | 2 +- kvm-all.c | 8 ++++---- target-arm/kvm.c | 2 +- target-i386/kvm.c | 5 ++--- target-mips/kvm.c | 2 +- target-ppc/kvm.c | 2 +- target-s390x/kvm.c | 2 +- 14 files changed, 80 insertions(+), 50 deletions(-) -- 2.1.0