Skip to content
Snippets Groups Projects
  1. Jan 17, 2013
    • Avi Kivity's avatar
      mmu: move initial memory setup to mmu.cc · 77cd3b6b
      Avi Kivity authored
      Initial memory is physical; the mmu converts it to virtual addresses, and
      then it can be added to the memory pool.  Right now there is not much
      difference, but the 1:1 mapping is moving soon.
      77cd3b6b
  2. Jan 16, 2013
  3. Jan 03, 2013
  4. Jan 01, 2013
    • Avi Kivity's avatar
      mempool: fix memory leak when a pool page become free · a6b6db7f
      Avi Kivity authored
      We currently leak a pool page, because we cannot unlink the free objects
      belonging to the page from the pool's free list.
      
      Fix by having a per-page free list (containing objects only from that page).
      The pages are themselves placed on a doubly linked list.  When we identify
      an empty page, we can now easily drop it since the local free list only
      point within the page.
      a6b6db7f
    • Avi Kivity's avatar
      mempool: repsect minimum object size · 0bedccee
      Avi Kivity authored
      Must be large enough to hold a free_object.
      0bedccee
  5. Dec 26, 2012
    • Avi Kivity's avatar
      memory: implement a real malloc/free set · 22a07c17
      Avi Kivity authored
      This implementation stores small objects in pools of similar-sized objects,
      while large objects are allocated using a first-fit algorithm.  There is also
      a specialized interface for allocating aligned pages.
      22a07c17
Loading