#
7e3e823b |
| 15-Jan-2021 |
Claudio Imbrenda <imbrenda@linux.ibm.com> |
lib/alloc.h: remove align_min from struct alloc_ops
Remove align_min from struct alloc_ops, since it is no longer used.
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Reviewed-by: Krish S
lib/alloc.h: remove align_min from struct alloc_ops
Remove align_min from struct alloc_ops, since it is no longer used.
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Reviewed-by: Krish Sadhukhan <krish.sadhukhan@oracle.com> Message-Id: <20210115123730.381612-7-imbrenda@linux.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
f90ddba3 |
| 02-Oct-2020 |
Claudio Imbrenda <imbrenda@linux.ibm.com> |
lib/alloc: simplify free and malloc
Remove the size parameter from the various free functions
Since the backends can handle the allocation sizes on their own, simplify the generic malloc wrappers.
lib/alloc: simplify free and malloc
Remove the size parameter from the various free functions
Since the backends can handle the allocation sizes on their own, simplify the generic malloc wrappers.
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Message-Id: <20201002154420.292134-6-imbrenda@linux.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
dcda215b |
| 23-Oct-2017 |
Paolo Bonzini <pbonzini@redhat.com> |
vmalloc: convert to alloc_ops
The final step moves the vmalloc and vmap implementation to generic code, rewriting vmalloc and vfree as an alloc_ops implementation that is installed by setup_vm.
Thi
vmalloc: convert to alloc_ops
The final step moves the vmalloc and vmap implementation to generic code, rewriting vmalloc and vfree as an alloc_ops implementation that is installed by setup_vm.
This way all architectures can benefit from it just by calling setup_vm and providing the implementation of install_page.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
11c4715f |
| 23-Oct-2017 |
Paolo Bonzini <pbonzini@redhat.com> |
alloc: implement free
Track block size in lib/alloc.c and not in alloc_ops. alloc_ops->free gets the size from the malloc implementation.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
#
dc47ac61 |
| 22-Oct-2017 |
Paolo Bonzini <pbonzini@redhat.com> |
lib: simplify alloc_ops
Layer malloc/calloc/free/memalign over a basic allocator. The implementation of high-level routines remains the basic one from before, but the callback interface is reduced t
lib: simplify alloc_ops
Layer malloc/calloc/free/memalign over a basic allocator. The implementation of high-level routines remains the basic one from before, but the callback interface is reduced to a single function. Since alloc.c now contains the physical address allocator only, rename it.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
ea325c68 |
| 22-Dec-2016 |
Paolo Bonzini <pbonzini@redhat.com> |
Merge tag 'for-master' of https://github.com/rhdrjones/kvm-unit-tests into HEAD
arm/arm64 patches ready for master
|
#
b8b9fcf5 |
| 25-Nov-2016 |
Alexander Gordeev <agordeev@redhat.com> |
pci: Make all ones invalid translate address
Function pci_host_bridge_get_paddr() returns zero in case no mapping for a passed PCI address is found. All ones is a better choice, since zero may be a
pci: Make all ones invalid translate address
Function pci_host_bridge_get_paddr() returns zero in case no mapping for a passed PCI address is found. All ones is a better choice, since zero may be a legitimate physical address.
Suggested-by: Andrew Jones <drjones@redhat.com> Cc: Thomas Huth <thuth@redhat.com> Cc: Andrew Jones <drjones@redhat.com> Signed-off-by: Alexander Gordeev <agordeev@redhat.com> [squashed in INVALID_PHYS_ADDR use] Signed-off-by: Andrew Jones <drjones@redhat.com>
show more ...
|
#
7d764581 |
| 06-Jun-2016 |
Alexander Gordeev <agordeev@redhat.com> |
Move phys_addr_t type definition to lib/libcflat.h
This change leads to removing '#include <alloc.h>'s from several places that only included alloc.h to get the typedef.
Cc: Andrew Jones <drjones@r
Move phys_addr_t type definition to lib/libcflat.h
This change leads to removing '#include <alloc.h>'s from several places that only included alloc.h to get the typedef.
Cc: Andrew Jones <drjones@redhat.com> Cc: Thomas Huth <thuth@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Radim Krčmář <rkrcmar@redhat.com> Suggested-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Alexander Gordeev <agordeev@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
bdabeff0 |
| 06-Jun-2016 |
Alexander Gordeev <agordeev@redhat.com> |
Remove unused and unnecessary PHYS32 macro
Cc: Andrew Jones <drjones@redhat.com> Cc: Thomas Huth <thuth@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Radim Krčmář <rkrcmar@redhat.com> Sugg
Remove unused and unnecessary PHYS32 macro
Cc: Andrew Jones <drjones@redhat.com> Cc: Thomas Huth <thuth@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Radim Krčmář <rkrcmar@redhat.com> Suggested-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Alexander Gordeev <agordeev@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
901c1c8d |
| 22-Aug-2014 |
Paolo Bonzini <pbonzini@redhat.com> |
Merge remote-tracking branch 'drjones/arm/v7-initial-drop'
|
#
417d4762 |
| 10-Jul-2014 |
Andrew Jones <drjones@redhat.com> |
Introduce lib/alloc
alloc supplies three ingredients to the test framework that are all related to the support of dynamic memory allocation.
The first is a set of alloc function wrappers for malloc
Introduce lib/alloc
alloc supplies three ingredients to the test framework that are all related to the support of dynamic memory allocation.
The first is a set of alloc function wrappers for malloc and its friends. Using wrappers allows test code and common code to use the same interface for memory allocation at all stages, even though the implementations may change with the stage, e.g. pre/post paging.
The second is a set of implementations for the alloc function interfaces. These implementations are named early_*, as they can be used almost immediately by the test framework.
The third is a very simple physical memory allocator, which the early_* alloc functions build on.
Signed-off-by: Andrew Jones <drjones@redhat.com> --- v7: expanded from only supplying the alloc function wrappers to including early_* and phys_alloc [Paolo Bonzini]
show more ...
|