Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuWEF-00050x-Qz for qemu-devel@nongnu.org; Wed, 24 Mar 2010 15:26:59 -0400 Received: from [140.186.70.92] (port=53498 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuWE9-0004qG-7d for qemu-devel@nongnu.org; Wed, 24 Mar 2010 15:26:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuWDk-0007ID-UF for qemu-devel@nongnu.org; Wed, 24 Mar 2010 15:26:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49660) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuWDk-0007FS-LI for qemu-devel@nongnu.org; Wed, 24 Mar 2010 15:26:28 -0400 From: Glauber Costa Date: Wed, 24 Mar 2010 16:26:20 -0300 Message-Id: <1269458782-6123-1-git-send-email-glommer@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] machine opts framework List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, avi@redhat.com This patch adds initial support for the -machine option, that allows command line specification of machine attributes (always relying on safe defaults). Besides its value per-se, it is the saner way we found to allow for enabling/disabling of kvm's in-kernel irqchip. A machine with in-kernel-irqchip could be specified as: -machine irqchip=apic-kvm And one without it: -machine irqchip=apic To demonstrate how it'd work, this patch introduces a choice between "pic" and "apic", pic being the old-style isa thing. It does introduce a behavioral change, however: In old code, pic would always be a fallback. Now, it will have to be explicitly selected. I believe it is better behaviour, but this is not the most important part of it, so I can easily go back if people want it out. Let the flames begin! Glauber Costa (2): early set current_machine machine opts framework hw/boards.h | 10 +++++++++ hw/pc.c | 45 ++++++++++++++++++++++++++++++++++++----- qemu-config.c | 16 ++++++++++++++ qemu-config.h | 1 + qemu-options.hx | 9 ++++++++ vl.c | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 6 files changed, 132 insertions(+), 8 deletions(-)