Skip to content

x86: enable malloc and friends

Andrew Jones kvm 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 20 repliesIn review
  2. v14 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- introduced alloc_zeroed_page [Paolo]
- kept spinlocks in phys_alloc_init [Thomas]
- added more improvements to alloc/free_page, e.g locks [drew]
- force phys_alloc alignment to be set once [drew]
- new patch that renames alloc.c's state [drew]
- fix vmalloc-based memalign v1 bug. Didn't consider size offset [drew]
- added huge commit message for "lib/x86/vm: enable malloc and friends" to try to justify it [drew]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6lib/x86/vm: collection of improvementslib/x86/asm/page.h lib/x86/vm.c+39 -72 replies
2/6lib/alloc: improve initlib/alloc.c lib/alloc.h lib/arm/setup.c +1 more+25 -121 reply
3/6lib/alloc: prepare to extend alloc.c's purposelib/alloc.c+51 -461 reply
4/6x86: lib/alloc: move heap management to liblib/alloc.c lib/alloc.h lib/x86/vm.c +1 more+62 -464 replies
5/6x86: lib/alloc: introduce alloc_zeroed_pagelib/alloc.c lib/alloc.h lib/x86/vm.c +2 more+27 -333 replies
6/6lib/x86/vm: enable malloc and friendslib/x86/vm.c lib/x86/vm.h+43 -89 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchLaurent Vivier
1/6
2/6R-b
3/6R-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [kvm-unit-tests PATCH v2 0/6] x86: enable malloc and friends

And do some other alloc related things too...

v2:
- introduced alloc_zeroed_page [Paolo]
- kept spinlocks in phys_alloc_init [Thomas]
- added more improvements to alloc/free_page, e.g locks [drew]
- force phys_alloc alignment to be set once [drew]
- new patch that renames alloc.c's state [drew]
- fix vmalloc-based memalign v1 bug. Didn't consider size offset [drew]
- added huge commit message for "lib/x86/vm: enable malloc and friends" to try to justify it [drew]

Didn't take Thomas' r-b for "move heap management to lib", because it changed too much.

Andrew Jones (6):
lib/x86/vm: collection of improvements
lib/alloc: improve init
lib/alloc: prepare to extend alloc.c's purpose
x86: lib/alloc: move heap management to lib
x86: lib/alloc: introduce alloc_zeroed_page
lib/x86/vm: enable malloc and friends

 lib/alloc.c         | 160 +++++++++++++++++++++++++++++++++++++---------------
 lib/alloc.h         |  18 +++++-
 lib/arm/setup.c     |   2 +-
 lib/powerpc/setup.c |   2 +-
 lib/x86/asm/page.h  |   2 +
 lib/x86/vm.c        | 105 ++++++++++++++++++++--------------
 lib/x86/vm.h        |   2 +-
 x86/Makefile.common |   1 +
 x86/vmx.c           |  19 +++----
 x86/vmx_tests.c     |  28 ++++-----
 10 files changed, 217 insertions(+), 122 deletions(-)
Signature · 1 line
2.7.4