From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:39902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFUqI-0003mD-06 for qemu-devel@nongnu.org; Wed, 04 Apr 2012 14:22:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFUqB-0007X5-GX for qemu-devel@nongnu.org; Wed, 04 Apr 2012 14:22:00 -0400 Received: from smtp.citrix.com ([66.165.176.89]:21393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFUqB-0007VL-CI for qemu-devel@nongnu.org; Wed, 04 Apr 2012 14:21:55 -0400 From: Julien Grall Date: Wed, 4 Apr 2012 19:21:03 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH V2 0/7] memory: unify ioport registration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Julien Grall , julian.pidancet@citrix.com, avi@redhat.com, Stefano.Stabellini@eu.citrix.com This is the second version of patch serie (the previous patch was not split) about ioport registration. For the moment some part of QEMU use register_ioport* functions to register ioport. These functions don't permit the logging of range with Memory Listener. Modifications between V1 and V2 : - Remove the use of get_system_io. Instead of use isa and pci IO address space. - Avoid allocation of PortioList. Use the different device structure. - Still remove register_ioport* (hw/dma.c, hw/apm.c, hw/acpi_piix4.c). - Use MemoryRegion when we have only a range of ioport. - For some functions, add IO address space as argument. - Add isa_address_space_io function I may not to be aware about some new modifications (hw/dma.c and hw/apm.c), any advice on its will be welcome. Julien Grall (7): isa: add isa_address_space_io hw/acpi_piix4.c: replace register_ioport* hw/cirrus_vga.c: replace register_ioport* hw/serial.c: replace register_ioport* hw/pc.c: replace register_ioport* hw/dma.c: replace register_ioport* hw/apm.c: replace register_ioport* hw/acpi_piix4.c | 78 ++++++++++++++++++++++++++++++++++++++++++++++-------- hw/apm.c | 24 +++++++++++++--- hw/apm.h | 5 +++- hw/cirrus_vga.c | 38 +++++++++++++++----------- hw/dma.c | 55 ++++++++++++++++++++++++++------------ hw/isa-bus.c | 5 +++ hw/isa.h | 1 + hw/pc.c | 37 ++++++++++++++++---------- hw/pc.h | 2 +- hw/serial.c | 8 +++-- hw/vt82c686.c | 2 +- 11 files changed, 184 insertions(+), 71 deletions(-) -- Julien Grall