Skip to contentSkip to conversation

Memory core space reduction

GIT PULL Avi Kivity 2 participants 2 messages Mar 1, 2012 – Mar 2, 2012

lore
Share & tools
lore

Avi Kivity

author
#0 lore raw

This is the current memory queue (posted as two separate series before my vacation). When applied, the overhead of 16 bytes/page is reduced to basically nil.

Please pull from:

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

v2: fix memory corruption in first patch

----------------------------------------------------------------
Avi Kivity (30):
ioport: change portio_list not to use memory_region_set_offset()
memory: remove memory_region_set_offset()
memory: add shorthand for invoking a callback on all listeners
memory: switch memory listeners to a QTAILQ
memory: code motion: move MEMORY_LISTENER_CALL()
memory: move ioeventfd ops to MemoryListener
memory: add a readonly attribute to MemoryRegionSection
memory: don't pass ->readable attribute to
cpu_register_physical_memory_log
memory: use a MemoryListener for core memory map updates too
memory: drop AddressSpaceOps
memory: allow MemoryListeners to observe a specific address space
xen: ignore I/O memory regions
memory: split memory listener for the two address spaces
memory: support stateless memory listeners
memory: change memory registration to rebuild the memory map on
each change
memory: remove first level of l1_phys_map
memory: unify phys_map last level with intermediate levels
memory: store MemoryRegionSection pointers in phys_map
memory: compress phys_map node pointers to 16 bits
memory: fix RAM subpages in newly initialized pages
memory: unify the two branches of cpu_register_physical_memory_log()
memory: move tlb flush to MemoryListener commit callback
memory: make phys_page_find() return a MemoryRegionSection
memory: give phys_page_find() its own tree search loop
memory: simplify multipage/subpage registration
memory: replace phys_page_find_alloc() with phys_page_set()
memory: switch phys_page_set() to a recursive implementation
memory: change phys_page_set() to set multiple pages
memory: unify PhysPageEntry::node and ::leaf
memory: allow phys_map tree paths to terminate early

 exec-obsolete.h |    5 +-
 exec.c          |  875
++++++++++++++++++++++++++++++++++++-------------------
 hw/vhost.c      |   33 ++-
 ioport.c        |   28 ++-
 ioport.h        |    1 +
 kvm-all.c       |   97 ++++++-
 memory.c        |  328 +++++++++-------------
 memory.h        |   26 +-
 xen-all.c       |   33 ++-
 9 files changed, 912 insertions(+), 514 deletions(-)
Signature · 1 line
error compiling committee.c: too many arguments to function
#1 lore raw
Quoted 7 lines · Avi Kivity

This is the current memory queue (posted as two separate series before my vacation). When applied, the overhead of 16 bytes/page is reduced to basically nil.

Please pull from:

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

Pulled. Thanks.

Regards,

Anthony Liguori

Quoted 50 lines

v2: fix memory corruption in first patch

----------------------------------------------------------------
Avi Kivity (30):
ioport: change portio_list not to use memory_region_set_offset()
memory: remove memory_region_set_offset()
memory: add shorthand for invoking a callback on all listeners
memory: switch memory listeners to a QTAILQ
memory: code motion: move MEMORY_LISTENER_CALL()
memory: move ioeventfd ops to MemoryListener
memory: add a readonly attribute to MemoryRegionSection
memory: don't pass ->readable attribute to
cpu_register_physical_memory_log
memory: use a MemoryListener for core memory map updates too
memory: drop AddressSpaceOps
memory: allow MemoryListeners to observe a specific address space
xen: ignore I/O memory regions
memory: split memory listener for the two address spaces
memory: support stateless memory listeners
memory: change memory registration to rebuild the memory map on
each change
memory: remove first level of l1_phys_map
memory: unify phys_map last level with intermediate levels
memory: store MemoryRegionSection pointers in phys_map
memory: compress phys_map node pointers to 16 bits
memory: fix RAM subpages in newly initialized pages
memory: unify the two branches of cpu_register_physical_memory_log()
memory: move tlb flush to MemoryListener commit callback
memory: make phys_page_find() return a MemoryRegionSection
memory: give phys_page_find() its own tree search loop
memory: simplify multipage/subpage registration
memory: replace phys_page_find_alloc() with phys_page_set()
memory: switch phys_page_set() to a recursive implementation
memory: change phys_page_set() to set multiple pages
memory: unify PhysPageEntry::node and ::leaf
memory: allow phys_map tree paths to terminate early

  exec-obsolete.h |    5 +-
  exec.c          |  875
++++++++++++++++++++++++++++++++++++-------------------
  hw/vhost.c      |   33 ++-
  ioport.c        |   28 ++-
  ioport.h        |    1 +
  kvm-all.c       |   97 ++++++-
  memory.c        |  328 +++++++++-------------
  memory.h        |   26 +-
  xen-all.c       |   33 ++-
  9 files changed, 912 insertions(+), 514 deletions(-)