qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 00/17] split out piix specific part from pc emulator. v3
@ 2009-07-07  6:35 Isaku Yamahata
  2009-07-07  6:35 ` [Qemu-devel] [PATCH 01/17] acpi.c: split out pc smbus routines from acpi.c into pc_smbus.c Isaku Yamahata
                   ` (16 more replies)
  0 siblings, 17 replies; 24+ messages in thread
From: Isaku Yamahata @ 2009-07-07  6:35 UTC (permalink / raw)
  To: qemu-devel; +Cc: yamahata

The only changed patch is 16/17 pc.c: split out pci device init from
pc_init1() into pc_pci_device_init(). The other patches remains same.

This patch series is for spliting out piix specific part from pc emulator
to make it easier to implement other pc chipset emulator.
Although my motivation is for 128+ PCI and another chipset support,
I think this patch series itself is good for readability and maintenance.

thanks,

Changes from v2:
- clean up pc_pci_device_init() not to use unnecessary braces.

Changes from v1:
- make patches full bisectable
- typo s/allocte/allocate/
- some minor fixes
- dropped a merged patch

Isaku Yamahata (17):
  acpi.c: split out pc smbus routines from acpi.c into pc_smbus.c
  acpi.c: split out apm register emulation.
  acpi.c: make qemu_system_powerdown() piix independent.
  acpi: add acpi constants from linux header files and use them.
  acpi.c: split acpi.c into the common part and the piix4 part.
  pc.c: Make smm enable/disable function i440fx independent.
  pc.c: remove unnecessary global variables, pit and ioapic..
  pc.c: remove a global variable, floppy_controller.
  pc.c: remove a global variable, RTCState *rtc_state.
  pc.c: introduce a function to allocate cpu irq.
  pc.c: make pc_init1() not refer ferr_irq directly.
  pc.c: split out cpu initialization from pc_init1() into
    pc_cpus_init().
  pc.c: split out memory allocation from pc_init1() into
    pc_memory_init()
  pc.c: split out vga initialization from pc_init1() into
    pc_vga_init().
  pc.c: split out basic device init from pc_init1() into
    pc_basic_device_init()
  pc.c: split out pci device init from pc_init1() into
    pc_pci_device_init()
  pc.c: split out piix specific part from pc.c into pc_piix.c

 Makefile.target |    2 +
 hw/acpi.c       |  732 +------------------------------------------------------
 hw/acpi.h       |   85 +++++++
 hw/acpi_piix4.c |  580 +++++++++++++++++++++++++++++++++++++++++++
 hw/pc.c         |  323 ++++++++----------------
 hw/pc.h         |   34 +++-
 hw/pc_apm.c     |   92 +++++++
 hw/pc_apm.h     |   39 +++
 hw/pc_piix.c    |  210 ++++++++++++++++
 hw/pc_smbus.c   |  178 ++++++++++++++
 hw/pc_smbus.h   |   43 ++++
 hw/piix_pci.c   |    8 +-
 12 files changed, 1385 insertions(+), 941 deletions(-)
 create mode 100644 hw/acpi.h
 create mode 100644 hw/acpi_piix4.c
 create mode 100644 hw/pc_apm.c
 create mode 100644 hw/pc_apm.h
 create mode 100644 hw/pc_piix.c
 create mode 100644 hw/pc_smbus.c
 create mode 100644 hw/pc_smbus.h

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [Qemu-devel] [PATCH 00/17] split out piix specific part from pc emulator. V6
@ 2009-07-17  7:22 Isaku Yamahata
  2009-07-17  7:22 ` [Qemu-devel] [PATCH 03/17] acpi.c: make qemu_system_powerdown() piix independent Isaku Yamahata
  0 siblings, 1 reply; 24+ messages in thread
From: Isaku Yamahata @ 2009-07-17  7:22 UTC (permalink / raw)
  To: qemu-devel, anthony; +Cc: yamahata

The change from the previous post is rebasing to 0.11.0-rc0
Anthony, any chance to merge? Can you please give me comments?

This patch series is for spliting out piix specific part from pc emulator
to make it easier to implement other pc chipset emulator.
Although my motivation is for 128+ PCI and another chipset support,
I think this patch series itself is good for readability and maintenance.

thanks,

Changes from v5:
- rebased 0.11.0-rc0
- changed qemu_system_powerdown_register() to call
  qemu_system_shutdown_request() if qemu_system_shutdown() is called before
  registering.

Changes from v4:
- fix version number.
- rebased anthony's staging tree whose latest change set is
  62969268f876c547ee64da6d60e0f363e0f1df75

Changes from v3:
- move qemu_system_powerdown() in vl.c and more generic
  following the comment by Marcelo Tosatti <mtosatti@redhat.com>
  acpi.c: make qemu_system_powerdown() piix independent.
- define cmos_set_s3_resume_init() and cmos_set_s3_resume() in pc.c
  even if TARGET_I386 isn't defined following th ecommit by 
  Paolo Bonzini <bonzini@gnu.org>
  pc.c: remove a global variable, RTCState *rtc_state.
- minor compilation fixes

Changes from v2:
- clean up pc_pci_device_init() not to use unnecessary braces.

Changes from v1:
- make patches full bisectable
- typo s/allocte/allocate/
- some minor fixes
- dropped a merged patch


Isaku Yamahata (17):
  acpi.c: split out pc smbus routines from acpi.c into pc_smbus.c
  acpi.c: split out apm register emulation.
  acpi.c: make qemu_system_powerdown() piix independent.
  acpi: add acpi constants from linux header files and use them.
  acpi.c: split acpi.c into the common part and the piix4 part.
  pc.c: Make smm enable/disable function i440fx independent.
  pc.c: remove unnecessary global variables, pit and ioapic.
  pc.c: remove a global variable, floppy_controller.
  pc.c: remove a global variable, RTCState *rtc_state.
  pc.c: introduce a function to allocate cpu irq.
  pc.c: make pc_init1() not refer ferr_irq directly.
  pc.c: split out cpu initialization from pc_init1() into
    pc_cpus_init().
  pc.c: split out memory allocation from pc_init1() into
    pc_memory_init()
  pc.c: split out vga initialization from pc_init1() into
    pc_vga_init().
  pc.c: split out basic device init from pc_init1() into
    pc_basic_device_init()
  pc.c: split out pci device init from pc_init1() into
    pc_pci_device_init()
  pc.c: split out piix specific part from pc.c into pc_piix.c

 Makefile.target |    2 +
 hw/acpi.c       |  736 +------------------------------------------------------
 hw/acpi.h       |   78 ++++++
 hw/acpi_piix4.c |  578 +++++++++++++++++++++++++++++++++++++++++++
 hw/pc.c         |  401 +++++++++---------------------
 hw/pc.h         |   36 +++-
 hw/pc_apm.c     |   92 +++++++
 hw/pc_apm.h     |   39 +++
 hw/pc_piix.c    |  288 ++++++++++++++++++++++
 hw/pc_smbus.c   |  178 ++++++++++++++
 hw/pc_smbus.h   |   43 ++++
 hw/piix_pci.c   |    7 +-
 hw/sun4m.c      |   13 +-
 hw/sun4u.c      |    3 +-
 sysemu.h        |   11 +-
 vl.c            |   22 ++
 16 files changed, 1492 insertions(+), 1035 deletions(-)
 create mode 100644 hw/acpi.h
 create mode 100644 hw/acpi_piix4.c
 create mode 100644 hw/pc_apm.c
 create mode 100644 hw/pc_apm.h
 create mode 100644 hw/pc_piix.c
 create mode 100644 hw/pc_smbus.c
 create mode 100644 hw/pc_smbus.h

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [Qemu-devel] [PATCH 00/17] split out piix specific part from pc emulator. v5
@ 2009-07-15  7:19 Isaku Yamahata
  2009-07-15  7:19 ` [Qemu-devel] [PATCH 03/17] acpi.c: make qemu_system_powerdown() piix independent Isaku Yamahata
  0 siblings, 1 reply; 24+ messages in thread
From: Isaku Yamahata @ 2009-07-15  7:19 UTC (permalink / raw)
  To: qemu-devel; +Cc: yamahata


The change from the previous post is rebasing to Anthony's staging tree
whose HEAD is 62969268f876c547ee64da6d60e0f363e0f1df75.

This patch series is for spliting out piix specific part from pc emulator
to make it easier to implement other pc chipset emulator.
Although my motivation is for 128+ PCI and another chipset support,
I think this patch series itself is good for readability and maintenance.


Changes from v4:
- fix version number.
- rebased anthony's staging tree whose latest change set is
  62969268f876c547ee64da6d60e0f363e0f1df75

Changes from v3:
- move qemu_system_powerdown() in vl.c and more generic
  following the comment by Marcelo Tosatti <mtosatti@redhat.com>
  acpi.c: make qemu_system_powerdown() piix independent.
- define cmos_set_s3_resume_init() and cmos_set_s3_resume() in pc.c
  even if TARGET_I386 isn't defined following th ecommit by 
  Paolo Bonzini <bonzini@gnu.org>
  pc.c: remove a global variable, RTCState *rtc_state.
- minor compilation fixes

Changes from v2:
- clean up pc_pci_device_init() not to use unnecessary braces.

Changes from v1:
- make patches full bisectable
- typo s/allocte/allocate/
- some minor fixes
- dropped a merged patch

Isaku Yamahata (17):
  acpi.c: split out pc smbus routines from acpi.c into pc_smbus.c
  acpi.c: split out apm register emulation.
  acpi.c: make qemu_system_powerdown() piix independent.
  acpi: add acpi constants from linux header files and use them.
  acpi.c: split acpi.c into the common part and the piix4 part.
  pc.c: Make smm enable/disable function i440fx independent.
  pc.c: remove unnecessary global variables, pit and ioapic.
  pc.c: remove a global variable, floppy_controller.
  pc.c: remove a global variable, RTCState *rtc_state.
  pc.c: introduce a function to allocate cpu irq.
  pc.c: make pc_init1() not refer ferr_irq directly.
  pc.c: split out cpu initialization from pc_init1() into
    pc_cpus_init().
  pc.c: split out memory allocation from pc_init1() into
    pc_memory_init()
  pc.c: split out vga initialization from pc_init1() into
    pc_vga_init().
  pc.c: split out basic device init from pc_init1() into
    pc_basic_device_init()
  pc.c: split out pci device init from pc_init1() into
    pc_pci_device_init()
  pc.c: split out piix specific part from pc.c into pc_piix.c

 Makefile.target |    2 +
 hw/acpi.c       |  736 +------------------------------------------------------
 hw/acpi.h       |   78 ++++++
 hw/acpi_piix4.c |  578 +++++++++++++++++++++++++++++++++++++++++++
 hw/pc.c         |  365 +++++++++-------------------
 hw/pc.h         |   36 +++-
 hw/pc_apm.c     |   92 +++++++
 hw/pc_apm.h     |   39 +++
 hw/pc_piix.c    |  261 ++++++++++++++++++++
 hw/pc_smbus.c   |  178 ++++++++++++++
 hw/pc_smbus.h   |   43 ++++
 hw/piix_pci.c   |    7 +-
 hw/sun4m.c      |   13 +-
 hw/sun4u.c      |    3 +-
 sysemu.h        |   11 +-
 vl.c            |   17 ++
 16 files changed, 1456 insertions(+), 1003 deletions(-)
 create mode 100644 hw/acpi.h
 create mode 100644 hw/acpi_piix4.c
 create mode 100644 hw/pc_apm.c
 create mode 100644 hw/pc_apm.h
 create mode 100644 hw/pc_piix.c
 create mode 100644 hw/pc_smbus.c
 create mode 100644 hw/pc_smbus.h

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [Qemu-devel] [PATCH 00/17] split out piix specific part from pc emulator. v3
@ 2009-07-09  8:13 Isaku Yamahata
  2009-07-09  8:13 ` [Qemu-devel] [PATCH 03/17] acpi.c: make qemu_system_powerdown() piix independent Isaku Yamahata
  0 siblings, 1 reply; 24+ messages in thread
From: Isaku Yamahata @ 2009-07-09  8:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: yamahata


The changes from v2 is to address the comments about two patches.

This patch series is for spliting out piix specific part from pc emulator
to make it easier to implement other pc chipset emulator.
Although my motivation is for 128+ PCI and another chipset support,
I think this patch series itself is good for readability and maintenance.


Changes from v3:
- move qemu_system_powerdown() in vl.c and more generic
  following the comment by Marcelo Tosatti <mtosatti@redhat.com>
  acpi.c: make qemu_system_powerdown() piix independent.
- define cmos_set_s3_resume_init() and cmos_set_s3_resume() in pc.c
  even if TARGET_I386 isn't defined following th ecommit by 
  Paolo Bonzini <bonzini@gnu.org>
  pc.c: remove a global variable, RTCState *rtc_state.
- minor compilation fixes

Changes from v2:
- clean up pc_pci_device_init() not to use unnecessary braces.

Changes from v1:
- make patches full bisectable
- typo s/allocte/allocate/
- some minor fixes
- dropped a merged patch

Isaku Yamahata (17):
  acpi.c: split out pc smbus routines from acpi.c into pc_smbus.c
  acpi.c: split out apm register emulation.
  acpi.c: make qemu_system_powerdown() piix independent.
  acpi: add acpi constants from linux header files and use them.
  acpi.c: split acpi.c into the common part and the piix4 part.
  pc.c: Make smm enable/disable function i440fx independent.
  pc.c: remove unnecessary global variables, pit and ioapic.
  pc.c: remove a global variable, floppy_controller.
  pc.c: remove a global variable, RTCState *rtc_state.
  pc.c: introduce a function to allocate cpu irq.
  pc.c: make pc_init1() not refer ferr_irq directly.
  pc.c: split out cpu initialization from pc_init1() into
    pc_cpus_init().
  pc.c: split out memory allocation from pc_init1() into
    pc_memory_init()
  pc.c: split out vga initialization from pc_init1() into
    pc_vga_init().
  pc.c: split out basic device init from pc_init1() into
    pc_basic_device_init()
  pc.c: split out pci device init from pc_init1() into
    pc_pci_device_init()
  pc.c: split out piix specific part from pc.c into pc_piix.c

 Makefile.target |    2 +
 hw/acpi.c       |  736 +------------------------------------------------------
 hw/acpi.h       |   78 ++++++
 hw/acpi_piix4.c |  578 +++++++++++++++++++++++++++++++++++++++++++
 hw/pc.c         |  323 ++++++++----------------
 hw/pc.h         |   33 +++-
 hw/pc_apm.c     |   92 +++++++
 hw/pc_apm.h     |   39 +++
 hw/pc_piix.c    |  210 ++++++++++++++++
 hw/pc_smbus.c   |  178 ++++++++++++++
 hw/pc_smbus.h   |   43 ++++
 hw/piix_pci.c   |    8 +-
 hw/sun4m.c      |   13 +-
 hw/sun4u.c      |    3 +-
 sysemu.h        |   11 +-
 vl.c            |   17 ++
 16 files changed, 1399 insertions(+), 965 deletions(-)
 create mode 100644 hw/acpi.h
 create mode 100644 hw/acpi_piix4.c
 create mode 100644 hw/pc_apm.c
 create mode 100644 hw/pc_apm.h
 create mode 100644 hw/pc_piix.c
 create mode 100644 hw/pc_smbus.c
 create mode 100644 hw/pc_smbus.h

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [Qemu-devel] [PATCH 00/17] split out piix specific part from pc emulator. v2
@ 2009-07-03  7:11 Isaku Yamahata
  2009-07-03  7:11 ` [Qemu-devel] [PATCH 03/17] acpi.c: make qemu_system_powerdown() piix independent Isaku Yamahata
  0 siblings, 1 reply; 24+ messages in thread
From: Isaku Yamahata @ 2009-07-03  7:11 UTC (permalink / raw)
  To: qemu-devel; +Cc: yamahata

This patch series is for spliting out piix specific part from pc emulator
to make it easier to implement other pc chipset emulator.
Although my motivation is for 128+ PCI and another chipset support,
I think this patch series itself is good for readability and maintenance.

thanks,

Changes from v1:
- make patches full bisectable
- typo s/allocte/allocate/
- some minor fixes
- dropped a merged patch

Isaku Yamahata (17):
  acpi.c: split out pc smbus routines from acpi.c into pc_smbus.c
  acpi.c: split out apm register emulation.
  acpi.c: make qemu_system_powerdown() piix independent.
  acpi: add acpi constants from linux header files and use them.
  acpi.c: split acpi.c into the common part and the piix4 part.
  pc.c: Make smm enable/disable function i440fx independent.
  pc.c: remove unnecessary global variables, pit and ioapic..
  pc.c: remove a global variable, floppy_controller.
  pc.c: remove a global variable, RTCState *rtc_state.
  pc.c: introduce a function to allocate cpu irq.
  pc.c: make pc_init1() not refer ferr_irq directly.
  pc.c: split out cpu initialization from pc_init1() into
    pc_cpus_init().
  pc.c: split out memory allocation from pc_init1() into
    pc_memory_init()
  pc.c: split out vga initialization from pc_init1() into
    pc_vga_init().
  pc.c: split out basic device init from pc_init1() into
    pc_basic_device_init()
  pc.c: split out pci device init from pc_init1() into
    pc_pci_device_init()
  pc.c: split out piix specific part from pc.c into pc_piix.c

 Makefile.target |    2 +
 hw/acpi.c       |  732 +------------------------------------------------------
 hw/acpi.h       |   85 +++++++
 hw/acpi_piix4.c |  580 +++++++++++++++++++++++++++++++++++++++++++
 hw/pc.c         |  293 ++++++++---------------
 hw/pc.h         |   34 +++-
 hw/pc_apm.c     |   92 +++++++
 hw/pc_apm.h     |   39 +++
 hw/pc_piix.c    |  210 ++++++++++++++++
 hw/pc_smbus.c   |  178 ++++++++++++++
 hw/pc_smbus.h   |   43 ++++
 hw/piix_pci.c   |    8 +-
 12 files changed, 1375 insertions(+), 921 deletions(-)
 create mode 100644 hw/acpi.h
 create mode 100644 hw/acpi_piix4.c
 create mode 100644 hw/pc_apm.c
 create mode 100644 hw/pc_apm.h
 create mode 100644 hw/pc_piix.c
 create mode 100644 hw/pc_smbus.c
 create mode 100644 hw/pc_smbus.h

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

end of thread, other threads:[~2009-07-17  8:25 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-07  6:35 [Qemu-devel] [PATCH 00/17] split out piix specific part from pc emulator. v3 Isaku Yamahata
2009-07-07  6:35 ` [Qemu-devel] [PATCH 01/17] acpi.c: split out pc smbus routines from acpi.c into pc_smbus.c Isaku Yamahata
2009-07-07  6:35 ` [Qemu-devel] [PATCH 02/17] acpi.c: split out apm register emulation Isaku Yamahata
2009-07-07  6:35 ` [Qemu-devel] [PATCH 03/17] acpi.c: make qemu_system_powerdown() piix independent Isaku Yamahata
2009-07-08 21:04   ` Marcelo Tosatti
2009-07-07  6:35 ` [Qemu-devel] [PATCH 04/17] acpi: add acpi constants from linux header files and use them Isaku Yamahata
2009-07-07  6:35 ` [Qemu-devel] [PATCH 05/17] acpi.c: split acpi.c into the common part and the piix4 part Isaku Yamahata
2009-07-07  6:35 ` [Qemu-devel] [PATCH 06/17] pc.c: Make smm enable/disable function i440fx independent Isaku Yamahata
2009-07-07  6:35 ` [Qemu-devel] [PATCH 07/17] pc.c: remove unnecessary global variables, pit and ioapic Isaku Yamahata
2009-07-07  6:35 ` [Qemu-devel] [PATCH 08/17] pc.c: remove a global variable, floppy_controller Isaku Yamahata
2009-07-07  6:35 ` [Qemu-devel] [PATCH 09/17] pc.c: remove a global variable, RTCState *rtc_state Isaku Yamahata
2009-07-07  6:35 ` [Qemu-devel] [PATCH 10/17] pc.c: introduce a function to allocate cpu irq Isaku Yamahata
2009-07-07  6:35 ` [Qemu-devel] [PATCH 11/17] pc.c: make pc_init1() not refer ferr_irq directly Isaku Yamahata
2009-07-07  6:35 ` [Qemu-devel] [PATCH 12/17] pc.c: split out cpu initialization from pc_init1() into pc_cpus_init() Isaku Yamahata
2009-07-07  6:35 ` [Qemu-devel] [PATCH 13/17] pc.c: split out memory allocation from pc_init1() into pc_memory_init() Isaku Yamahata
2009-07-07  6:35 ` [Qemu-devel] [PATCH 14/17] pc.c: split out vga initialization from pc_init1() into pc_vga_init() Isaku Yamahata
2009-07-07  6:35 ` [Qemu-devel] [PATCH 15/17] pc.c: split out basic device init from pc_init1() into pc_basic_device_init() Isaku Yamahata
2009-07-07  6:35 ` [Qemu-devel] [PATCH 16/17] pc.c: split out pci device init from pc_init1() into pc_pci_device_init() Isaku Yamahata
2009-07-07  6:36 ` [Qemu-devel] [PATCH 17/17] pc.c: split out piix specific part from pc.c into pc_piix.c Isaku Yamahata
  -- strict thread matches above, loose matches on Subject: below --
2009-07-17  7:22 [Qemu-devel] [PATCH 00/17] split out piix specific part from pc emulator. V6 Isaku Yamahata
2009-07-17  7:22 ` [Qemu-devel] [PATCH 03/17] acpi.c: make qemu_system_powerdown() piix independent Isaku Yamahata
2009-07-15  7:19 [Qemu-devel] [PATCH 00/17] split out piix specific part from pc emulator. v5 Isaku Yamahata
2009-07-15  7:19 ` [Qemu-devel] [PATCH 03/17] acpi.c: make qemu_system_powerdown() piix independent Isaku Yamahata
2009-07-15 14:53   ` Blue Swirl
2009-07-09  8:13 [Qemu-devel] [PATCH 00/17] split out piix specific part from pc emulator. v3 Isaku Yamahata
2009-07-09  8:13 ` [Qemu-devel] [PATCH 03/17] acpi.c: make qemu_system_powerdown() piix independent Isaku Yamahata
2009-07-03  7:11 [Qemu-devel] [PATCH 00/17] split out piix specific part from pc emulator. v2 Isaku Yamahata
2009-07-03  7:11 ` [Qemu-devel] [PATCH 03/17] acpi.c: make qemu_system_powerdown() piix independent Isaku Yamahata

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