[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 0/2] machine opts framework
From: |
Glauber Costa |
Subject: |
[Qemu-devel] [PATCH 0/2] machine opts framework |
Date: |
Wed, 24 Mar 2010 16:26:20 -0300 |
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(-)
- [Qemu-devel] [PATCH 0/2] machine opts framework,
Glauber Costa <=