All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] machine opts framework
@ 2010-03-24 19:26 Glauber Costa
  2010-03-24 19:26 ` [Qemu-devel] [PATCH 1/2] early set current_machine Glauber Costa
  0 siblings, 1 reply; 6+ messages in thread
From: Glauber Costa @ 2010-03-24 19:26 UTC (permalink / raw)
  To: qemu-devel; +Cc: aliguori, avi

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(-)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-03-24 21:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-24 19:26 [Qemu-devel] [PATCH 0/2] machine opts framework Glauber Costa
2010-03-24 19:26 ` [Qemu-devel] [PATCH 1/2] early set current_machine Glauber Costa
2010-03-24 19:26   ` [Qemu-devel] [PATCH 2/2] machine opts framework Glauber Costa
2010-03-24 19:43     ` Anthony Liguori
2010-03-24 20:58       ` Glauber Costa
2010-03-24 21:11         ` Anthony Liguori

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.