mbox series

[kvm-unit-tests,v1,0/8] Minor fixes, improvements, and cleanup

Message ID 20200622162141.279716-1-imbrenda@linux.ibm.com (mailing list archive)
Headers show
Series Minor fixes, improvements, and cleanup | expand

Message

Claudio Imbrenda June 22, 2020, 4:21 p.m. UTC
This patch series provides a bunch of small improvements, fixes and
cleanups.
Some of these fixes are needed for an upcoming series that will
significantly refactor and improve the memory allocators.

Claudio Imbrenda (8):
  x86/cstart.S: initialize stack before using it
  x86: add missing PAGE_ALIGN macro from page.h
  lib: use PAGE_ALIGN
  lib/alloc.c: add overflow check for calloc
  lib: Fix a typo and add documentation comments
  lib/vmalloc: fix potential race and non-standard pointer arithmetic
  lib/alloc_page: make get_order return unsigned int
  lib/vmalloc: add locking and a check for initialization

 lib/x86/asm/page.h |  2 ++
 lib/alloc_page.h   |  2 +-
 lib/alloc_phys.h   |  2 +-
 lib/vmalloc.h      |  8 ++++++++
 lib/alloc.c        | 36 +++++++++++++++++++++++++++++++++++-
 lib/alloc_page.c   |  2 +-
 lib/vmalloc.c      | 34 +++++++++++++++++++++++-----------
 x86/cstart.S       |  2 +-
 8 files changed, 72 insertions(+), 16 deletions(-)

Comments

Paolo Bonzini June 22, 2020, 5:50 p.m. UTC | #1
On 22/06/20 18:21, Claudio Imbrenda wrote:
> This patch series provides a bunch of small improvements, fixes and
> cleanups.
> Some of these fixes are needed for an upcoming series that will
> significantly refactor and improve the memory allocators.
> 
> Claudio Imbrenda (8):
>   x86/cstart.S: initialize stack before using it
>   x86: add missing PAGE_ALIGN macro from page.h
>   lib: use PAGE_ALIGN
>   lib/alloc.c: add overflow check for calloc
>   lib: Fix a typo and add documentation comments
>   lib/vmalloc: fix potential race and non-standard pointer arithmetic
>   lib/alloc_page: make get_order return unsigned int
>   lib/vmalloc: add locking and a check for initialization
> 
>  lib/x86/asm/page.h |  2 ++
>  lib/alloc_page.h   |  2 +-
>  lib/alloc_phys.h   |  2 +-
>  lib/vmalloc.h      |  8 ++++++++
>  lib/alloc.c        | 36 +++++++++++++++++++++++++++++++++++-
>  lib/alloc_page.c   |  2 +-
>  lib/vmalloc.c      | 34 +++++++++++++++++++++++-----------
>  x86/cstart.S       |  2 +-
>  8 files changed, 72 insertions(+), 16 deletions(-)
> 

Queued, thanks.

Paolo