Skip to contentSkip to conversation

Memory API: live migration and dispatch

GIT PULL Avi Kivity 2 participants 2 messages Jan 4, 2012

lore
Share & tools
lore

Avi Kivity

author
#0 lore raw

Please pull from

git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/batch

to receive the conversion of live migration to the memory API, along with conversion of memory access dispatch to MemoryRegions instead of CPU{Read,Write}Func. These have been previously posted and viewed as separate patchsets.

Avi Kivity (26):
memory: introduce memory_region_name()
vmstate, memory: decouple vmstate from memory API Store MemoryRegion in RAMBlock
Switch ram_save to the memory API
Sort RAMBlocks by ID for migration, not by ram_addr Remove support for version 3 ram_load
Convert ram_load() to the memory API
memory: obsolete cpu_physical_memory_[gs]et_dirty_tracking()
xen: convert framebuffer dirty tracking to memory API
memory: obsolete more dirty memory related functions
memory: move endianness compensation to memory core
exec: make phys_page_find() return a temporary
memory: move mmio access to functions
memory: remove MemoryRegion::backend_registered
Fix wrong region_offset when overlaying a page with another Avoid range comparisons on io index types
Uninline get_page_addr_code()
Convert IO_MEM_{RAM,ROM,UNASSIGNED,NOTDIRTY} to MemoryRegions Switch cpu_register_physical_memory_log() to use MemoryRegions Convert the subpage wrapper to be a MemoryRegion Convert IO_MEM_SUBPAGE_RAM to be a MemoryRegion Convert io_mem_watch to be a MemoryRegion
Direct dispatch through MemoryRegion
Remove IO_MEM_SUBPAGE
Drop IO_MEM_ROMD
Remove IO_MEM_SHIFT

 Makefile.objs                 |    2 +-
 Makefile.target               |    2 +-
 arch_init.c                   |   71 ++--
 cpu-all.h                     |   56 +---
 cpu-common.h                  |   16 +-
 exec-all.h                    |   33 +--
 exec-obsolete.h               |   78 +++-
 exec.c                        |  931
+++++++++++++++--------------------------
 hw/alpha_typhoon.c            |    3 +-
 hw/an5206.c                   |    6 +-
 hw/armv7m.c                   |    9 +-
 hw/axis_dev88.c               |    6 +-
 hw/dummy_m68k.c               |    3 +-
 hw/g364fb.c                   |    3 +-
 hw/hw.h                       |    5 +
 hw/integratorcp.c             |    6 +-
 hw/ivshmem.c                  |    7 +-
 hw/leon3.c                    |    6 +-
 hw/lm32_boards.c              |    6 +-
 hw/mainstone.c                |    3 +-
 hw/mcf5208.c                  |    6 +-
 hw/milkymist-minimac2.c       |    3 +-
 hw/milkymist-softusb.c        |    6 +-
 hw/milkymist.c                |    3 +-
 hw/mips_fulong2e.c            |    6 +-
 hw/mips_jazz.c                |    9 +-
 hw/mips_malta.c               |    9 +-
 hw/mips_mipssim.c             |    6 +-
 hw/mips_r4k.c                 |    6 +-
 hw/musicpal.c                 |    6 +-
 hw/omap1.c                    |    6 +-
 hw/omap2.c                    |    6 +-
 hw/omap_sx1.c                 |    6 +-
 hw/onenand.c                  |    3 +-
 hw/palm.c                     |    3 +-
 hw/pc.c                       |    9 +-
 hw/pci.c                      |    4 +-
 hw/petalogix_ml605_mmu.c      |    6 +-
 hw/petalogix_s3adsp1800_mmu.c |    7 +-
 hw/pflash_cfi01.c             |    4 +-
 hw/pflash_cfi02.c             |    3 +-
 hw/ppc405_boards.c            |   18 +-
 hw/ppc405_uc.c                |    3 +-
 hw/ppc4xx_devs.c              |    3 +-
 hw/ppc_newworld.c             |    6 +-
 hw/ppc_oldworld.c             |    6 +-
 hw/ppc_prep.c                 |    6 +-
 hw/ppce500_mpc8544ds.c        |    3 +-
 hw/pxa2xx.c                   |   12 +-
 hw/qxl.c                      |   12 +-
 hw/r2d.c                      |    3 +-
 hw/realview.c                 |    9 +-
 hw/s390-virtio.c              |    3 +-
 hw/shix.c                     |    9 +-
 hw/sm501.c                    |    3 +-
 hw/spapr.c                    |    3 +-
 hw/spitz.c                    |    3 +-
 hw/strongarm.c                |    3 +-
 hw/sun4m.c                    |   12 +-
 hw/sun4u.c                    |    6 +-
 hw/tc6393xb.c                 |    3 +-
 hw/tcx.c                      |    3 +-
 hw/tosa.c                     |    3 +-
 hw/versatilepb.c              |    3 +-
 hw/vexpress.c                 |   12 +-
 hw/vga.c                      |    3 +-
 hw/virtex_ml507.c             |    3 +-
 hw/vmware_vga.c               |    3 +-
 hw/xtensa_lx60.c              |    9 +-
 hw/xtensa_sim.c               |    6 +-
 memory.c                      |  204 ++++-----
 memory.h                      |   30 +-
 savevm.c                      |   17 +
 softmmu_template.h            |   33 +-
 xen-all.c                     |    8 +-
 75 files changed, 796 insertions(+), 1036 deletions(-)
Signature · 1 line
error compiling committee.c: too many arguments to function
#1 lore raw
Quoted 8 lines · Avi Kivity

Please pull from

git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/batch

to receive the conversion of live migration to the memory API, along with conversion of memory access dispatch to MemoryRegions instead of CPU{Read,Write}Func. These have been previously posted and viewed as separate patchsets.

Pulled. Thanks.

Regards,

Anthony Liguori

Quoted 107 lines

Avi Kivity (26):
memory: introduce memory_region_name()
vmstate, memory: decouple vmstate from memory API Store MemoryRegion in RAMBlock
Switch ram_save to the memory API
Sort RAMBlocks by ID for migration, not by ram_addr Remove support for version 3 ram_load
Convert ram_load() to the memory API
memory: obsolete cpu_physical_memory_[gs]et_dirty_tracking()
xen: convert framebuffer dirty tracking to memory API
memory: obsolete more dirty memory related functions
memory: move endianness compensation to memory core
exec: make phys_page_find() return a temporary
memory: move mmio access to functions
memory: remove MemoryRegion::backend_registered
Fix wrong region_offset when overlaying a page with another Avoid range comparisons on io index types
Uninline get_page_addr_code()
Convert IO_MEM_{RAM,ROM,UNASSIGNED,NOTDIRTY} to MemoryRegions Switch cpu_register_physical_memory_log() to use MemoryRegions Convert the subpage wrapper to be a MemoryRegion Convert IO_MEM_SUBPAGE_RAM to be a MemoryRegion Convert io_mem_watch to be a MemoryRegion
Direct dispatch through MemoryRegion
Remove IO_MEM_SUBPAGE
Drop IO_MEM_ROMD
Remove IO_MEM_SHIFT

  Makefile.objs                 |    2 +-
  Makefile.target               |    2 +-
  arch_init.c                   |   71 ++--
  cpu-all.h                     |   56 +---
  cpu-common.h                  |   16 +-
  exec-all.h                    |   33 +--
  exec-obsolete.h               |   78 +++-
  exec.c                        |  931
+++++++++++++++--------------------------
  hw/alpha_typhoon.c            |    3 +-
  hw/an5206.c                   |    6 +-
  hw/armv7m.c                   |    9 +-
  hw/axis_dev88.c               |    6 +-
  hw/dummy_m68k.c               |    3 +-
  hw/g364fb.c                   |    3 +-
  hw/hw.h                       |    5 +
  hw/integratorcp.c             |    6 +-
  hw/ivshmem.c                  |    7 +-
  hw/leon3.c                    |    6 +-
  hw/lm32_boards.c              |    6 +-
  hw/mainstone.c                |    3 +-
  hw/mcf5208.c                  |    6 +-
  hw/milkymist-minimac2.c       |    3 +-
  hw/milkymist-softusb.c        |    6 +-
  hw/milkymist.c                |    3 +-
  hw/mips_fulong2e.c            |    6 +-
  hw/mips_jazz.c                |    9 +-
  hw/mips_malta.c               |    9 +-
  hw/mips_mipssim.c             |    6 +-
  hw/mips_r4k.c                 |    6 +-
  hw/musicpal.c                 |    6 +-
  hw/omap1.c                    |    6 +-
  hw/omap2.c                    |    6 +-
  hw/omap_sx1.c                 |    6 +-
  hw/onenand.c                  |    3 +-
  hw/palm.c                     |    3 +-
  hw/pc.c                       |    9 +-
  hw/pci.c                      |    4 +-
  hw/petalogix_ml605_mmu.c      |    6 +-
  hw/petalogix_s3adsp1800_mmu.c |    7 +-
  hw/pflash_cfi01.c             |    4 +-
  hw/pflash_cfi02.c             |    3 +-
  hw/ppc405_boards.c            |   18 +-
  hw/ppc405_uc.c                |    3 +-
  hw/ppc4xx_devs.c              |    3 +-
  hw/ppc_newworld.c             |    6 +-
  hw/ppc_oldworld.c             |    6 +-
  hw/ppc_prep.c                 |    6 +-
  hw/ppce500_mpc8544ds.c        |    3 +-
  hw/pxa2xx.c                   |   12 +-
  hw/qxl.c                      |   12 +-
  hw/r2d.c                      |    3 +-
  hw/realview.c                 |    9 +-
  hw/s390-virtio.c              |    3 +-
  hw/shix.c                     |    9 +-
  hw/sm501.c                    |    3 +-
  hw/spapr.c                    |    3 +-
  hw/spitz.c                    |    3 +-
  hw/strongarm.c                |    3 +-
  hw/sun4m.c                    |   12 +-
  hw/sun4u.c                    |    6 +-
  hw/tc6393xb.c                 |    3 +-
  hw/tcx.c                      |    3 +-
  hw/tosa.c                     |    3 +-
  hw/versatilepb.c              |    3 +-
  hw/vexpress.c                 |   12 +-
  hw/vga.c                      |    3 +-
  hw/virtex_ml507.c             |    3 +-
  hw/vmware_vga.c               |    3 +-
  hw/xtensa_lx60.c              |    9 +-
  hw/xtensa_sim.c               |    6 +-
  memory.c                      |  204 ++++-----
  memory.h                      |   30 +-
  savevm.c                      |   17 +
  softmmu_template.h            |   33 +-
  xen-all.c                     |    8 +-
  75 files changed, 796 insertions(+), 1036 deletions(-)