qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 00/17] Rework ISA/PCI video card initialization
@ 2012-09-11 19:10 Aurelien Jarno
  2012-09-11 19:10 ` [Qemu-devel] [PATCH v3 01/17] vga: rename pci_vga_init() into pci_std_vga_init() Aurelien Jarno
                   ` (16 more replies)
  0 siblings, 17 replies; 19+ messages in thread
From: Aurelien Jarno @ 2012-09-11 19:10 UTC (permalink / raw)
  To: qemu-devel; +Cc: Aurelien Jarno

This patch series tries to simplify ISA/PCI video card initialization
and to avoid having the same (buggy) code more or less duplicated in 
various machines.

It creates a new isa_vga_init() and a new pci_vga_init() functions that
take care of initializing the requested ISA/PCI video card. It avoid
duplication and also has the advantage that newly added PCI video cards
are available to all machines without having to touch machine specific
code, and that selecting a disabled video card returns an error message
to the user.

Changes v1 -> v2:
 - Do the same for ISA in addition to PCI, and use that in pc and 
   mips_r4k machines
 - Query availability of video cards with QOM instead of qdev_exists()
   and get rid of the latter function at the same time.
 - Default to std if cirrus is not available

Aurelien Jarno (17):
  vga: rename pci_vga_init() into pci_std_vga_init()
  vga: rename isa_vga_init() to isa_std_vga_init()
  vl.c: convert *vga_enabled functions to QOM
  vl.c: check for qxl availability
  vl.c: default to std if cirrus is not available
  pci: add a pci_vga_init() function
  isa: add a isa_vga_init() function
  mips/malta: use the new pci_vga_init() function
  alpha: use the new pci_vga_init() function
  ppc/newworld: use the new pci_vga_init() function
  ppc/oldworld: use the new pci_vga_init() function
  ppc/prep: use the new pci_vga_init() function
  ppc/pSeries: use the new pci_vga_init() function
  sun/sun4u: use the new pci_vga_init() function
  pc: use the new pci_vga_init() and isa_vga_init() functions
  mips/r4k: use the new is_vga_init() function
  vga: cleanup after isa_vga_init() and pci_vga_init() conversion

 hw/alpha_dp264.c  |    2 +-
 hw/alpha_pci.c    |   24 ------------------------
 hw/alpha_sys.h    |    2 --
 hw/cirrus_vga.c   |    6 ------
 hw/isa-bus.c      |   20 ++++++++++++++++++++
 hw/isa.h          |    2 ++
 hw/mips_malta.c   |   10 +---------
 hw/pc.c           |   35 ++++++-----------------------------
 hw/pc.h           |   13 -------------
 hw/pci.c          |   18 ++++++++++++++++++
 hw/pci.h          |    3 +++
 hw/ppc_newworld.c |    1 -
 hw/ppc_oldworld.c |    1 -
 hw/ppc_prep.c     |    1 -
 hw/qdev.c         |    5 -----
 hw/qdev.h         |    1 -
 hw/spapr.c        |    7 ++-----
 hw/sun4u.c        |    1 -
 hw/vga-pci.c      |   10 ++--------
 hw/vga-pci.h      |   12 ------------
 hw/vmware_vga.c   |    1 -
 hw/vmware_vga.h   |   15 ---------------
 sysemu.h          |    3 ---
 vl.c              |   27 +++++++++++++++++++++------
 24 files changed, 76 insertions(+), 144 deletions(-)
 delete mode 100644 hw/vga-pci.h
 delete mode 100644 hw/vmware_vga.h

--
1.7.10.4

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

end of thread, other threads:[~2012-09-12 16:55 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-11 19:10 [Qemu-devel] [PATCH v3 00/17] Rework ISA/PCI video card initialization Aurelien Jarno
2012-09-11 19:10 ` [Qemu-devel] [PATCH v3 01/17] vga: rename pci_vga_init() into pci_std_vga_init() Aurelien Jarno
2012-09-12 16:54   ` Richard Henderson
2012-09-11 19:10 ` [Qemu-devel] [PATCH v3 02/17] vga: rename isa_vga_init() to isa_std_vga_init() Aurelien Jarno
2012-09-11 19:10 ` [Qemu-devel] [PATCH v3 03/17] vl.c: convert *vga_enabled functions to QOM Aurelien Jarno
2012-09-11 19:10 ` [Qemu-devel] [PATCH v3 04/17] vl.c: check for qxl availability Aurelien Jarno
2012-09-11 19:10 ` [Qemu-devel] [PATCH v3 05/17] vl.c: default to std if cirrus is not available Aurelien Jarno
2012-09-11 19:10 ` [Qemu-devel] [PATCH v3 06/17] pci: add a pci_vga_init() function Aurelien Jarno
2012-09-11 19:10 ` [Qemu-devel] [PATCH v3 07/17] isa: add a isa_vga_init() function Aurelien Jarno
2012-09-11 19:10 ` [Qemu-devel] [PATCH v3 08/17] mips/malta: use the new pci_vga_init() function Aurelien Jarno
2012-09-11 19:10 ` [Qemu-devel] [PATCH v3 09/17] alpha: " Aurelien Jarno
2012-09-11 19:10 ` [Qemu-devel] [PATCH v3 10/17] ppc/newworld: " Aurelien Jarno
2012-09-11 19:10 ` [Qemu-devel] [PATCH v3 11/17] ppc/oldworld: " Aurelien Jarno
2012-09-11 19:10 ` [Qemu-devel] [PATCH v3 12/17] ppc/prep: " Aurelien Jarno
2012-09-11 19:10 ` [Qemu-devel] [PATCH v3 13/17] ppc/pSeries: " Aurelien Jarno
2012-09-11 19:10 ` [Qemu-devel] [PATCH v3 14/17] sun/sun4u: " Aurelien Jarno
2012-09-11 19:10 ` [Qemu-devel] [PATCH v3 15/17] pc: use the new pci_vga_init() and isa_vga_init() functions Aurelien Jarno
2012-09-11 19:10 ` [Qemu-devel] [PATCH v3 16/17] mips/r4k: use the new is_vga_init() function Aurelien Jarno
2012-09-11 19:10 ` [Qemu-devel] [PATCH v3 17/17] vga: cleanup after isa_vga_init() and pci_vga_init() conversion Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).