All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: qemu-devel@nongnu.org
Cc: kvm@vger.kernel.org
Subject: [RFC v5 71/86] omap_gpmc/nseries/tusb6010: convert to memory API
Date: Wed, 20 Jul 2011 19:50:21 +0300	[thread overview]
Message-ID: <1311180636-17012-72-git-send-email-avi@redhat.com> (raw)
In-Reply-To: <1311180636-17012-1-git-send-email-avi@redhat.com>

Somewhat clumsy since it needs a variable sized region.

Signed-off-by: Avi Kivity <avi@redhat.com>
---
 hw/omap.h      |    3 ++-
 hw/omap_gpmc.c |   54 ++++++++++++++++++++++++++++++------------------------
 hw/tusb6010.c  |   30 +++++++++++++-----------------
 hw/tusb6010.h  |    7 +++++--
 4 files changed, 50 insertions(+), 44 deletions(-)

diff --git a/hw/omap.h b/hw/omap.h
index c227a82..68cfd5f 100644
--- a/hw/omap.h
+++ b/hw/omap.h
@@ -17,6 +17,7 @@
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 #ifndef hw_omap_h
+#include "memory.h"
 # define hw_omap_h		"omap.h"
 
 # define OMAP_EMIFS_BASE	0x00000000
@@ -117,7 +118,7 @@ void omap_sdrc_reset(struct omap_sdrc_s *s);
 struct omap_gpmc_s;
 struct omap_gpmc_s *omap_gpmc_init(target_phys_addr_t base, qemu_irq irq);
 void omap_gpmc_reset(struct omap_gpmc_s *s);
-void omap_gpmc_attach(struct omap_gpmc_s *s, int cs, int iomemtype,
+void omap_gpmc_attach(struct omap_gpmc_s *s, int cs, MemoryRegion *iomem,
                 void (*base_upd)(void *opaque, target_phys_addr_t new),
                 void (*unmap)(void *opaque), void *opaque);
 
diff --git a/hw/omap_gpmc.c b/hw/omap_gpmc.c
index 8bf3343..a3f3048 100644
--- a/hw/omap_gpmc.c
+++ b/hw/omap_gpmc.c
@@ -21,10 +21,12 @@
 #include "hw.h"
 #include "flash.h"
 #include "omap.h"
+#include "memory.h"
 
 /* General-Purpose Memory Controller */
 struct omap_gpmc_s {
     qemu_irq irq;
+    MemoryRegion iomem;
 
     uint8_t sysconfig;
     uint16_t irqst;
@@ -39,7 +41,8 @@ struct omap_gpmc_s {
         uint32_t config[7];
         target_phys_addr_t base;
         size_t size;
-        int iomemtype;
+        MemoryRegion *iomem;
+        MemoryRegion container;
         void (*base_update)(void *opaque, target_phys_addr_t new);
         void (*unmap)(void *opaque);
         void *opaque;
@@ -55,6 +58,8 @@ static void omap_gpmc_int_update(struct omap_gpmc_s *s)
     qemu_set_irq(s->irq, s->irqen & s->irqst);
 }
 
+#include "exec-memory.h"
+
 static void omap_gpmc_cs_map(struct omap_gpmc_cs_file_s *f, int base, int mask)
 {
     /* TODO: check for overlapping regions and report access errors */
@@ -75,8 +80,12 @@ static void omap_gpmc_cs_map(struct omap_gpmc_cs_file_s *f, int base, int mask)
      * constant), the mask should cause wrapping of the address space, so
      * that the same memory becomes accessible at every <i>size</i> bytes
      * starting from <i>base</i>.  */
-    if (f->iomemtype)
-        cpu_register_physical_memory(f->base, f->size, f->iomemtype);
+    if (f->iomem) {
+        memory_region_init(&f->container, "omap-gpmc-file", f->size);
+        memory_region_add_subregion(&f->container, 0, f->iomem);
+        memory_region_add_subregion(get_system_memory(), f->base,
+                                    &f->container);
+    }
 
     if (f->base_update)
         f->base_update(f->opaque, f->base);
@@ -87,8 +96,11 @@ static void omap_gpmc_cs_unmap(struct omap_gpmc_cs_file_s *f)
     if (f->size) {
         if (f->unmap)
             f->unmap(f->opaque);
-        if (f->iomemtype)
-            cpu_register_physical_memory(f->base, f->size, IO_MEM_UNASSIGNED);
+        if (f->iomem) {
+            memory_region_del_subregion(get_system_memory(), &f->container);
+            memory_region_del_subregion(&f->container, f->iomem);
+            memory_region_destroy(&f->container);
+        }
         f->base = 0;
         f->size = 0;
     }
@@ -132,7 +144,8 @@ void omap_gpmc_reset(struct omap_gpmc_s *s)
         ecc_reset(&s->ecc[i]);
 }
 
-static uint32_t omap_gpmc_read(void *opaque, target_phys_addr_t addr)
+static uint64_t omap_gpmc_read(void *opaque, target_phys_addr_t addr,
+                               unsigned size)
 {
     struct omap_gpmc_s *s = (struct omap_gpmc_s *) opaque;
     int cs;
@@ -230,7 +243,7 @@ static uint32_t omap_gpmc_read(void *opaque, target_phys_addr_t addr)
 }
 
 static void omap_gpmc_write(void *opaque, target_phys_addr_t addr,
-                uint32_t value)
+                            uint64_t value, unsigned size)
 {
     struct omap_gpmc_s *s = (struct omap_gpmc_s *) opaque;
     int cs;
@@ -249,7 +262,7 @@ static void omap_gpmc_write(void *opaque, target_phys_addr_t addr,
 
     case 0x010:	/* GPMC_SYSCONFIG */
         if ((value >> 3) == 0x3)
-            fprintf(stderr, "%s: bad SDRAM idle mode %i\n",
+            fprintf(stderr, "%s: bad SDRAM idle mode %"PRIi64"\n",
                             __FUNCTION__, value >> 3);
         if (value & 2)
             omap_gpmc_reset(s);
@@ -369,34 +382,27 @@ static void omap_gpmc_write(void *opaque, target_phys_addr_t addr,
     }
 }
 
-static CPUReadMemoryFunc * const omap_gpmc_readfn[] = {
-    omap_badwidth_read32,	/* TODO */
-    omap_badwidth_read32,	/* TODO */
-    omap_gpmc_read,
-};
-
-static CPUWriteMemoryFunc * const omap_gpmc_writefn[] = {
-    omap_badwidth_write32,	/* TODO */
-    omap_badwidth_write32,	/* TODO */
-    omap_gpmc_write,
+static const MemoryRegionOps omap_gpmc_ops = {
+    /* TODO: specialize <4 byte writes? */
+    .read = omap_gpmc_read,
+    .write = omap_gpmc_write,
+    .endianness = DEVICE_NATIVE_ENDIAN,
 };
 
 struct omap_gpmc_s *omap_gpmc_init(target_phys_addr_t base, qemu_irq irq)
 {
-    int iomemtype;
     struct omap_gpmc_s *s = (struct omap_gpmc_s *)
             qemu_mallocz(sizeof(struct omap_gpmc_s));
 
     omap_gpmc_reset(s);
 
-    iomemtype = cpu_register_io_memory(omap_gpmc_readfn,
-                    omap_gpmc_writefn, s, DEVICE_NATIVE_ENDIAN);
-    cpu_register_physical_memory(base, 0x1000, iomemtype);
+    memory_region_init_io(&s->iomem, &omap_gpmc_ops, s, "omap-gpmc", 0x1000);
+    memory_region_add_subregion(get_system_memory(), base, &s->iomem);
 
     return s;
 }
 
-void omap_gpmc_attach(struct omap_gpmc_s *s, int cs, int iomemtype,
+void omap_gpmc_attach(struct omap_gpmc_s *s, int cs, MemoryRegion *iomem,
                 void (*base_upd)(void *opaque, target_phys_addr_t new),
                 void (*unmap)(void *opaque), void *opaque)
 {
@@ -408,7 +414,7 @@ void omap_gpmc_attach(struct omap_gpmc_s *s, int cs, int iomemtype,
     }
     f = &s->cs_file[cs];
 
-    f->iomemtype = iomemtype;
+    f->iomem = iomem;
     f->base_update = base_upd;
     f->unmap = unmap;
     f->opaque = opaque;
diff --git a/hw/tusb6010.c b/hw/tusb6010.c
index add748c..28ff52c 100644
--- a/hw/tusb6010.c
+++ b/hw/tusb6010.c
@@ -26,7 +26,7 @@
 #include "tusb6010.h"
 
 struct TUSBState {
-    int iomemtype[2];
+    MemoryRegion iomem[2];
     qemu_irq irq;
     MUSBState *musb;
     QEMUTimer *otg_timer;
@@ -234,14 +234,14 @@ struct TUSBState {
 #define TUSB_EP_CONFIG_XFR_SIZE(v)	((v) & 0x7fffffff)
 #define TUSB_PROD_TEST_RESET_VAL	0xa596
 
-int tusb6010_sync_io(TUSBState *s)
+MemoryRegion *tusb6010_sync_io(TUSBState *s)
 {
-    return s->iomemtype[0];
+    return &s->iomem[0];
 }
 
-int tusb6010_async_io(TUSBState *s)
+MemoryRegion *tusb6010_async_io(TUSBState *s)
 {
-    return s->iomemtype[1];
+    return &s->iomem[1];
 }
 
 static void tusb_intr_update(TUSBState *s)
@@ -647,16 +647,12 @@ static void tusb_async_writew(void *opaque, target_phys_addr_t addr,
     }
 }
 
-static CPUReadMemoryFunc * const tusb_async_readfn[] = {
-    tusb_async_readb,
-    tusb_async_readh,
-    tusb_async_readw,
-};
-
-static CPUWriteMemoryFunc * const tusb_async_writefn[] = {
-    tusb_async_writeb,
-    tusb_async_writeh,
-    tusb_async_writew,
+static const MemoryRegionOps tusb_async_ops = {
+    .old_mmio = {
+        .read = { tusb_async_readb, tusb_async_readh, tusb_async_readw, },
+        .write =  { tusb_async_writeb, tusb_async_writeh, tusb_async_writew, },
+    },
+    .endianness = DEVICE_NATIVE_ENDIAN,
 };
 
 static void tusb_otg_tick(void *opaque)
@@ -739,8 +735,8 @@ TUSBState *tusb6010_init(qemu_irq intr)
     s->mask = 0xffffffff;
     s->intr = 0x00000000;
     s->otg_timer_val = 0;
-    s->iomemtype[1] = cpu_register_io_memory(tusb_async_readfn,
-                    tusb_async_writefn, s, DEVICE_NATIVE_ENDIAN);
+    memory_region_init_io(&s->iomem[1], &tusb_async_ops, s, "tusb-async",
+                          UINT32_MAX);
     s->irq = intr;
     s->otg_timer = qemu_new_timer_ns(vm_clock, tusb_otg_tick, s);
     s->pwr_timer = qemu_new_timer_ns(vm_clock, tusb_power_tick, s);
diff --git a/hw/tusb6010.h b/hw/tusb6010.h
index 6faa94d..9d53b26 100644
--- a/hw/tusb6010.h
+++ b/hw/tusb6010.h
@@ -1,10 +1,13 @@
 #ifndef TUSB6010_H
 #define TUSB6010_H
 
+#include "targphys.h"
+#include "memory.h"
+
 typedef struct TUSBState TUSBState;
 TUSBState *tusb6010_init(qemu_irq intr);
-int tusb6010_sync_io(TUSBState *s);
-int tusb6010_async_io(TUSBState *s);
+MemoryRegion *tusb6010_sync_io(TUSBState *s);
+MemoryRegion *tusb6010_async_io(TUSBState *s);
 void tusb6010_power(TUSBState *s, int on);
 
 #endif
-- 
1.7.5.3


WARNING: multiple messages have this Message-ID (diff)
From: Avi Kivity <avi@redhat.com>
To: qemu-devel@nongnu.org
Cc: kvm@vger.kernel.org
Subject: [Qemu-devel] [RFC v5 71/86] omap_gpmc/nseries/tusb6010: convert to memory API
Date: Wed, 20 Jul 2011 19:50:21 +0300	[thread overview]
Message-ID: <1311180636-17012-72-git-send-email-avi@redhat.com> (raw)
In-Reply-To: <1311180636-17012-1-git-send-email-avi@redhat.com>

Somewhat clumsy since it needs a variable sized region.

Signed-off-by: Avi Kivity <avi@redhat.com>
---
 hw/omap.h      |    3 ++-
 hw/omap_gpmc.c |   54 ++++++++++++++++++++++++++++++------------------------
 hw/tusb6010.c  |   30 +++++++++++++-----------------
 hw/tusb6010.h  |    7 +++++--
 4 files changed, 50 insertions(+), 44 deletions(-)

diff --git a/hw/omap.h b/hw/omap.h
index c227a82..68cfd5f 100644
--- a/hw/omap.h
+++ b/hw/omap.h
@@ -17,6 +17,7 @@
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 #ifndef hw_omap_h
+#include "memory.h"
 # define hw_omap_h		"omap.h"
 
 # define OMAP_EMIFS_BASE	0x00000000
@@ -117,7 +118,7 @@ void omap_sdrc_reset(struct omap_sdrc_s *s);
 struct omap_gpmc_s;
 struct omap_gpmc_s *omap_gpmc_init(target_phys_addr_t base, qemu_irq irq);
 void omap_gpmc_reset(struct omap_gpmc_s *s);
-void omap_gpmc_attach(struct omap_gpmc_s *s, int cs, int iomemtype,
+void omap_gpmc_attach(struct omap_gpmc_s *s, int cs, MemoryRegion *iomem,
                 void (*base_upd)(void *opaque, target_phys_addr_t new),
                 void (*unmap)(void *opaque), void *opaque);
 
diff --git a/hw/omap_gpmc.c b/hw/omap_gpmc.c
index 8bf3343..a3f3048 100644
--- a/hw/omap_gpmc.c
+++ b/hw/omap_gpmc.c
@@ -21,10 +21,12 @@
 #include "hw.h"
 #include "flash.h"
 #include "omap.h"
+#include "memory.h"
 
 /* General-Purpose Memory Controller */
 struct omap_gpmc_s {
     qemu_irq irq;
+    MemoryRegion iomem;
 
     uint8_t sysconfig;
     uint16_t irqst;
@@ -39,7 +41,8 @@ struct omap_gpmc_s {
         uint32_t config[7];
         target_phys_addr_t base;
         size_t size;
-        int iomemtype;
+        MemoryRegion *iomem;
+        MemoryRegion container;
         void (*base_update)(void *opaque, target_phys_addr_t new);
         void (*unmap)(void *opaque);
         void *opaque;
@@ -55,6 +58,8 @@ static void omap_gpmc_int_update(struct omap_gpmc_s *s)
     qemu_set_irq(s->irq, s->irqen & s->irqst);
 }
 
+#include "exec-memory.h"
+
 static void omap_gpmc_cs_map(struct omap_gpmc_cs_file_s *f, int base, int mask)
 {
     /* TODO: check for overlapping regions and report access errors */
@@ -75,8 +80,12 @@ static void omap_gpmc_cs_map(struct omap_gpmc_cs_file_s *f, int base, int mask)
      * constant), the mask should cause wrapping of the address space, so
      * that the same memory becomes accessible at every <i>size</i> bytes
      * starting from <i>base</i>.  */
-    if (f->iomemtype)
-        cpu_register_physical_memory(f->base, f->size, f->iomemtype);
+    if (f->iomem) {
+        memory_region_init(&f->container, "omap-gpmc-file", f->size);
+        memory_region_add_subregion(&f->container, 0, f->iomem);
+        memory_region_add_subregion(get_system_memory(), f->base,
+                                    &f->container);
+    }
 
     if (f->base_update)
         f->base_update(f->opaque, f->base);
@@ -87,8 +96,11 @@ static void omap_gpmc_cs_unmap(struct omap_gpmc_cs_file_s *f)
     if (f->size) {
         if (f->unmap)
             f->unmap(f->opaque);
-        if (f->iomemtype)
-            cpu_register_physical_memory(f->base, f->size, IO_MEM_UNASSIGNED);
+        if (f->iomem) {
+            memory_region_del_subregion(get_system_memory(), &f->container);
+            memory_region_del_subregion(&f->container, f->iomem);
+            memory_region_destroy(&f->container);
+        }
         f->base = 0;
         f->size = 0;
     }
@@ -132,7 +144,8 @@ void omap_gpmc_reset(struct omap_gpmc_s *s)
         ecc_reset(&s->ecc[i]);
 }
 
-static uint32_t omap_gpmc_read(void *opaque, target_phys_addr_t addr)
+static uint64_t omap_gpmc_read(void *opaque, target_phys_addr_t addr,
+                               unsigned size)
 {
     struct omap_gpmc_s *s = (struct omap_gpmc_s *) opaque;
     int cs;
@@ -230,7 +243,7 @@ static uint32_t omap_gpmc_read(void *opaque, target_phys_addr_t addr)
 }
 
 static void omap_gpmc_write(void *opaque, target_phys_addr_t addr,
-                uint32_t value)
+                            uint64_t value, unsigned size)
 {
     struct omap_gpmc_s *s = (struct omap_gpmc_s *) opaque;
     int cs;
@@ -249,7 +262,7 @@ static void omap_gpmc_write(void *opaque, target_phys_addr_t addr,
 
     case 0x010:	/* GPMC_SYSCONFIG */
         if ((value >> 3) == 0x3)
-            fprintf(stderr, "%s: bad SDRAM idle mode %i\n",
+            fprintf(stderr, "%s: bad SDRAM idle mode %"PRIi64"\n",
                             __FUNCTION__, value >> 3);
         if (value & 2)
             omap_gpmc_reset(s);
@@ -369,34 +382,27 @@ static void omap_gpmc_write(void *opaque, target_phys_addr_t addr,
     }
 }
 
-static CPUReadMemoryFunc * const omap_gpmc_readfn[] = {
-    omap_badwidth_read32,	/* TODO */
-    omap_badwidth_read32,	/* TODO */
-    omap_gpmc_read,
-};
-
-static CPUWriteMemoryFunc * const omap_gpmc_writefn[] = {
-    omap_badwidth_write32,	/* TODO */
-    omap_badwidth_write32,	/* TODO */
-    omap_gpmc_write,
+static const MemoryRegionOps omap_gpmc_ops = {
+    /* TODO: specialize <4 byte writes? */
+    .read = omap_gpmc_read,
+    .write = omap_gpmc_write,
+    .endianness = DEVICE_NATIVE_ENDIAN,
 };
 
 struct omap_gpmc_s *omap_gpmc_init(target_phys_addr_t base, qemu_irq irq)
 {
-    int iomemtype;
     struct omap_gpmc_s *s = (struct omap_gpmc_s *)
             qemu_mallocz(sizeof(struct omap_gpmc_s));
 
     omap_gpmc_reset(s);
 
-    iomemtype = cpu_register_io_memory(omap_gpmc_readfn,
-                    omap_gpmc_writefn, s, DEVICE_NATIVE_ENDIAN);
-    cpu_register_physical_memory(base, 0x1000, iomemtype);
+    memory_region_init_io(&s->iomem, &omap_gpmc_ops, s, "omap-gpmc", 0x1000);
+    memory_region_add_subregion(get_system_memory(), base, &s->iomem);
 
     return s;
 }
 
-void omap_gpmc_attach(struct omap_gpmc_s *s, int cs, int iomemtype,
+void omap_gpmc_attach(struct omap_gpmc_s *s, int cs, MemoryRegion *iomem,
                 void (*base_upd)(void *opaque, target_phys_addr_t new),
                 void (*unmap)(void *opaque), void *opaque)
 {
@@ -408,7 +414,7 @@ void omap_gpmc_attach(struct omap_gpmc_s *s, int cs, int iomemtype,
     }
     f = &s->cs_file[cs];
 
-    f->iomemtype = iomemtype;
+    f->iomem = iomem;
     f->base_update = base_upd;
     f->unmap = unmap;
     f->opaque = opaque;
diff --git a/hw/tusb6010.c b/hw/tusb6010.c
index add748c..28ff52c 100644
--- a/hw/tusb6010.c
+++ b/hw/tusb6010.c
@@ -26,7 +26,7 @@
 #include "tusb6010.h"
 
 struct TUSBState {
-    int iomemtype[2];
+    MemoryRegion iomem[2];
     qemu_irq irq;
     MUSBState *musb;
     QEMUTimer *otg_timer;
@@ -234,14 +234,14 @@ struct TUSBState {
 #define TUSB_EP_CONFIG_XFR_SIZE(v)	((v) & 0x7fffffff)
 #define TUSB_PROD_TEST_RESET_VAL	0xa596
 
-int tusb6010_sync_io(TUSBState *s)
+MemoryRegion *tusb6010_sync_io(TUSBState *s)
 {
-    return s->iomemtype[0];
+    return &s->iomem[0];
 }
 
-int tusb6010_async_io(TUSBState *s)
+MemoryRegion *tusb6010_async_io(TUSBState *s)
 {
-    return s->iomemtype[1];
+    return &s->iomem[1];
 }
 
 static void tusb_intr_update(TUSBState *s)
@@ -647,16 +647,12 @@ static void tusb_async_writew(void *opaque, target_phys_addr_t addr,
     }
 }
 
-static CPUReadMemoryFunc * const tusb_async_readfn[] = {
-    tusb_async_readb,
-    tusb_async_readh,
-    tusb_async_readw,
-};
-
-static CPUWriteMemoryFunc * const tusb_async_writefn[] = {
-    tusb_async_writeb,
-    tusb_async_writeh,
-    tusb_async_writew,
+static const MemoryRegionOps tusb_async_ops = {
+    .old_mmio = {
+        .read = { tusb_async_readb, tusb_async_readh, tusb_async_readw, },
+        .write =  { tusb_async_writeb, tusb_async_writeh, tusb_async_writew, },
+    },
+    .endianness = DEVICE_NATIVE_ENDIAN,
 };
 
 static void tusb_otg_tick(void *opaque)
@@ -739,8 +735,8 @@ TUSBState *tusb6010_init(qemu_irq intr)
     s->mask = 0xffffffff;
     s->intr = 0x00000000;
     s->otg_timer_val = 0;
-    s->iomemtype[1] = cpu_register_io_memory(tusb_async_readfn,
-                    tusb_async_writefn, s, DEVICE_NATIVE_ENDIAN);
+    memory_region_init_io(&s->iomem[1], &tusb_async_ops, s, "tusb-async",
+                          UINT32_MAX);
     s->irq = intr;
     s->otg_timer = qemu_new_timer_ns(vm_clock, tusb_otg_tick, s);
     s->pwr_timer = qemu_new_timer_ns(vm_clock, tusb_power_tick, s);
diff --git a/hw/tusb6010.h b/hw/tusb6010.h
index 6faa94d..9d53b26 100644
--- a/hw/tusb6010.h
+++ b/hw/tusb6010.h
@@ -1,10 +1,13 @@
 #ifndef TUSB6010_H
 #define TUSB6010_H
 
+#include "targphys.h"
+#include "memory.h"
+
 typedef struct TUSBState TUSBState;
 TUSBState *tusb6010_init(qemu_irq intr);
-int tusb6010_sync_io(TUSBState *s);
-int tusb6010_async_io(TUSBState *s);
+MemoryRegion *tusb6010_sync_io(TUSBState *s);
+MemoryRegion *tusb6010_async_io(TUSBState *s);
 void tusb6010_power(TUSBState *s, int on);
 
 #endif
-- 
1.7.5.3

  parent reply	other threads:[~2011-07-20 16:50 UTC|newest]

Thread overview: 218+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-20 16:49 [RFC v5 00/86] Memory API Avi Kivity
2011-07-20 16:49 ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 01/86] xen: fix xen-mapcache build on non-Xen capable targets Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 02/86] Hierarchical memory region API Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 03/86] memory: implement dirty tracking Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 04/86] memory: merge adjacent segments of a single memory region Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 05/86] Internal interfaces for memory API Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 06/86] memory: abstract address space operations Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 07/86] memory: rename MemoryRegion::has_ram_addr to ::terminates Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 08/86] memory: late initialization of ram_addr Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 09/86] memory: I/O address space support Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 10/86] memory: add backward compatibility for old portio registration Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 11/86] memory: add backward compatibility for old mmio registration Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 12/86] memory: add ioeventfd support Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-21 19:55   ` Blue Swirl
2011-07-22  7:05     ` Avi Kivity
2011-07-22  7:05       ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 13/86] memory: separate building the final memory map into two steps Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 14/86] exec.c: initialize memory map Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 15/86] ioport: register ranges by byte aligned addresses always Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 16/86] pc: grab system_memory Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 17/86] pc: convert pc_memory_init() to memory API Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 18/86] pc: move global memory map out of pc_init1() and into its callers Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 19/86] pci: pass address space to pci bus when created Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 20/86] pci: add MemoryRegion based BAR management API Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 21/86] sysbus: add MemoryRegion based memory " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 22/86] usb-ohci: convert to MemoryRegion Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 23/86] pci: add API to get a BAR's mapped address Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 24/86] vmsvga: don't remember pci BAR address in callback any more Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 25/86] vga: convert vga and its derivatives to the memory API Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 26/86] cirrus: simplify mmio BAR access functions Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 27/86] cirrus: simplify bitblt " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 28/86] cirrus: simplify vga window mmio " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 29/86] vga: " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 30/86] cirrus: simplify linear framebuffer " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 31/86] Integrate I/O memory regions into qemu Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 32/86] exec.c: fix initialization of system I/O memory region Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 33/86] pci: pass I/O address space to new PCI bus Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 34/86] pci: allow I/O BARs to be registered with pci_register_bar_region() Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 35/86] rtl8139: convert to memory API Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 36/86] ac97: " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 37/86] e1000: " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 38/86] eepro100: " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 39/86] es1370: " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 40/86] ide: " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 41/86] ivshmem: " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 42/86] virtio-pci: " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 43/86] ahci: " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 44/86] intel-hda: " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 45/86] lsi53c895a: " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 46/86] ppc: " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 47/86] ne2000: " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 48/86] pcnet: " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:49 ` [RFC v5 49/86] i6300esb: " Avi Kivity
2011-07-20 16:49   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 50/86] isa-mmio: concert " Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 51/86] sun4u: convert " Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 52/86] ehci: " Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 53/86] uhci: " Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 54/86] xen-platform: " Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 55/86] msix: " Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 56/86] pci: remove pci_register_bar_simple() Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 57/86] pci: convert pci rom to memory API Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 58/86] pci: remove pci_register_bar() Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 59/86] pci: fold BAR mapping function into its caller Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 60/86] pci: rename pci_register_bar_region() to pci_register_bar() Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 61/86] pci: remove support for pre memory API BARs Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 62/86] Introduce QEMU_NEW() Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 63/86] apb_pci: convert to memory API Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 64/86] apic: " Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 65/86] arm_gic: " Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 66/86] arm_sysctl: " Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 67/86] arm_timer: " Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 68/86] armv7m: " Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 69/86] gt64xxx.c: " Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 70/86] tusb6010: move declarations to new file tusb6010.h Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` Avi Kivity [this message]
2011-07-20 16:50   ` [Qemu-devel] [RFC v5 71/86] omap_gpmc/nseries/tusb6010: convert to memory API Avi Kivity
2011-07-20 16:50 ` [RFC v5 72/86] onenand: " Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 73/86] pcie_host: " Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 74/86] ppc405_uc: " Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 75/86] ppc4xx_sdram: " Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 76/86] stellaris_enet: " Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 77/86] sysbus: add a variant of sysbus_init_mmio_cb with an unmap callback Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 78/86] sh_pci: convert to memory API Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 79/86] arm11mpcore: use sysbus_init_mmio_cb2 Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 80/86] versatile_pci: convert to memory API Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 81/86] ppce500_pci: convert to sysbus_init_mmio_cb2() Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 82/86] sysbus: remove sysbus_init_mmio_cb() Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 83/86] isa: add isa_address_space() Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 84/86] pci: add pci_address_space() Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 85/86] vga: drop get_system_memory() from vga devices and derivatives Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-20 16:50 ` [RFC v5 86/86] 440fx: fix PAM, PCI holes Avi Kivity
2011-07-20 16:50   ` [Qemu-devel] " Avi Kivity
2011-07-25 13:07   ` Anthony Liguori
2011-07-25 13:14     ` Avi Kivity
2011-07-25 13:17       ` Gleb Natapov
2011-07-25 13:17         ` Gleb Natapov
2011-07-25 13:28         ` Avi Kivity
2011-07-25 13:28           ` Avi Kivity
2011-07-25 13:31           ` Gleb Natapov
2011-07-25 13:31             ` Gleb Natapov
2011-07-25 13:31           ` Avi Kivity
2011-07-25 13:31             ` Avi Kivity
2011-07-25 13:35             ` Gleb Natapov
2011-07-25 13:35               ` Gleb Natapov
2011-07-25 13:38               ` Avi Kivity
2011-07-25 13:38                 ` Avi Kivity
2011-07-25 13:47                 ` Anthony Liguori
2011-07-25 13:47                   ` [Qemu-devel] " Anthony Liguori
2011-07-25 13:50                   ` Gleb Natapov
2011-07-25 13:50                     ` Gleb Natapov
2011-07-25 14:05                   ` Avi Kivity
2011-07-25 14:05                     ` Avi Kivity
2011-07-25 14:08                     ` Anthony Liguori
2011-07-25 14:10                       ` Avi Kivity
2011-07-25 13:32           ` Anthony Liguori
2011-07-25 13:32             ` Anthony Liguori
2011-07-25 21:34   ` Eric Northup
2011-07-25 21:34     ` [Qemu-devel] " Eric Northup
2011-07-26  8:01     ` Avi Kivity
2011-07-26  8:01       ` [Qemu-devel] " Avi Kivity
2011-07-20 17:41 ` [RFC v5 00/86] Memory API Jan Kiszka
2011-07-20 17:41   ` [Qemu-devel] " Jan Kiszka
2011-07-20 17:43   ` Avi Kivity
2011-07-20 17:43     ` [Qemu-devel] " Avi Kivity
2011-07-20 21:43     ` Jan Kiszka
2011-07-20 21:43       ` [Qemu-devel] " Jan Kiszka
2011-07-21  8:37       ` Avi Kivity
2011-07-21 13:38         ` Jan Kiszka
2011-07-21 13:43           ` Avi Kivity
2011-07-21 14:19             ` Jan Kiszka
2011-07-21 14:31               ` Avi Kivity
2011-07-21 14:34                 ` Jan Kiszka
2011-07-21 14:40                   ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1311180636-17012-72-git-send-email-avi@redhat.com \
    --to=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.