/kernel/linux/linux-5.10/drivers/xen/ |
H A D | mem-reservation.c | 4 * Xen memory reservation utilities. 16 #include <xen/mem-reservation.h> 95 struct xen_memory_reservation reservation = { in xenmem_reservation_increase() local 102 set_xen_guest_handle(reservation.extent_start, frames); in xenmem_reservation_increase() 103 reservation.nr_extents = count; in xenmem_reservation_increase() 104 return HYPERVISOR_memory_op(XENMEM_populate_physmap, &reservation); in xenmem_reservation_increase() 111 struct xen_memory_reservation reservation = { in xenmem_reservation_decrease() local 118 set_xen_guest_handle(reservation.extent_start, frames); in xenmem_reservation_decrease() 119 reservation.nr_extents = count; in xenmem_reservation_decrease() 120 return HYPERVISOR_memory_op(XENMEM_decrease_reservation, &reservation); in xenmem_reservation_decrease() [all...] |
H A D | Makefile | 4 obj-y += mem-reservation.o
|
H A D | xen-balloon.c | 48 #include <xen/mem-reservation.h>
|
H A D | balloon.c | 75 #include <xen/mem-reservation.h>
|
H A D | grant-table.c | 4 * Granting foreign access to our memory reservation. 63 #include <xen/mem-reservation.h> 1015 pr_debug("Failed to decrease reservation for DMA buffer\n"); in gnttab_dma_alloc_pages() 1048 pr_debug("Failed to increase reservation for DMA buffer\n"); in gnttab_dma_free_pages()
|
/kernel/linux/linux-6.6/drivers/xen/ |
H A D | mem-reservation.c | 4 * Xen memory reservation utilities. 16 #include <xen/mem-reservation.h> 88 struct xen_memory_reservation reservation = { in xenmem_reservation_increase() local 95 set_xen_guest_handle(reservation.extent_start, frames); in xenmem_reservation_increase() 96 reservation.nr_extents = count; in xenmem_reservation_increase() 97 return HYPERVISOR_memory_op(XENMEM_populate_physmap, &reservation); in xenmem_reservation_increase() 104 struct xen_memory_reservation reservation = { in xenmem_reservation_decrease() local 111 set_xen_guest_handle(reservation.extent_start, frames); in xenmem_reservation_decrease() 112 reservation.nr_extents = count; in xenmem_reservation_decrease() 113 return HYPERVISOR_memory_op(XENMEM_decrease_reservation, &reservation); in xenmem_reservation_decrease() [all...] |
H A D | Makefile | 4 obj-y += mem-reservation.o
|
H A D | xen-balloon.c | 48 #include <xen/mem-reservation.h>
|
H A D | balloon.c | 76 #include <xen/mem-reservation.h>
|
H A D | grant-table.c | 4 * Granting foreign access to our memory reservation. 64 #include <xen/mem-reservation.h> 1099 pr_debug("Failed to decrease reservation for DMA buffer\n"); in gnttab_dma_alloc_pages() 1132 pr_debug("Failed to increase reservation for DMA buffer\n"); in gnttab_dma_free_pages()
|
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
H A D | charge_reserved_hugetlb.sh | 128 echo Waiting for hugetlb memory reservation to reach size $size. 302 expect_equal "0" "$final_reservation" "final reservation is not zero" 383 "hugetlbt_cgroup_test1 final reservation is not zero" 391 "hugetlb_cgroup_test2 final reservation is not zero" 424 echo Memory charged to reservation=$reserved_difference 436 "Reserved memory not charged to reservation usage." 439 "Reserved memory not charged to reservation usage." 453 echo Memory charged to reservation=$reserved_difference 459 "Reserved memory not charged to reservation usage." 468 echo Test more than reservation cas [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | charge_reserved_hugetlb.sh | 131 echo Waiting for hugetlb memory reservation to reach size $size. 305 expect_equal "0" "$final_reservation" "final reservation is not zero" 386 "hugetlbt_cgroup_test1 final reservation is not zero" 394 "hugetlb_cgroup_test2 final reservation is not zero" 427 echo Memory charged to reservation=$reserved_difference 439 "Reserved memory not charged to reservation usage." 442 "Reserved memory not charged to reservation usage." 456 echo Memory charged to reservation=$reserved_difference 462 "Reserved memory not charged to reservation usage." 471 echo Test more than reservation cas [all...] |
/kernel/linux/linux-5.10/arch/x86/xen/ |
H A D | setup.c | 238 struct xen_memory_reservation reservation = { in xen_free_mfn() local 244 set_xen_guest_handle(reservation.extent_start, &mfn); in xen_free_mfn() 245 reservation.nr_extents = 1; in xen_free_mfn() 247 return HYPERVISOR_memory_op(XENMEM_decrease_reservation, &reservation); in xen_free_mfn() 564 * For the initial domain we use the maximum reservation as in xen_get_max_pages() 567 * For guest domains the current maximum reservation reflects in xen_get_max_pages()
|
/kernel/linux/linux-6.6/arch/x86/xen/ |
H A D | setup.c | 243 struct xen_memory_reservation reservation = { in xen_free_mfn() local 249 set_xen_guest_handle(reservation.extent_start, &mfn); in xen_free_mfn() 250 reservation.nr_extents = 1; in xen_free_mfn() 252 return HYPERVISOR_memory_op(XENMEM_decrease_reservation, &reservation); in xen_free_mfn() 565 * For the initial domain we use the maximum reservation as in xen_get_max_pages() 568 * For guest domains the current maximum reservation reflects in xen_get_max_pages()
|
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_alloc.c | 2289 xfs_extlen_t reservation; /* blocks that are still reserved */ in xfs_alloc_space_available() local 2296 reservation = xfs_ag_resv_needed(pag, args->resv); in xfs_alloc_space_available() 2300 longest = xfs_alloc_longest_free_extent(pag, min_free, reservation); in xfs_alloc_space_available() 2311 reservation - min_free - args->minleft); in xfs_alloc_space_available() 2445 * Deferring AGFL frees helps prevent log reservation overruns due to too many
|
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_alloc.c | 90 * filesystem needs for the AGFLs. The rmap btree uses a per-AG reservation to 2284 * (full height split reservation) + (AGFL refill split height) in xfs_alloc_min_freelist() 2327 xfs_extlen_t reservation; /* blocks that are still reserved */ in xfs_alloc_space_available() local 2334 reservation = xfs_ag_resv_needed(pag, args->resv); in xfs_alloc_space_available() 2338 longest = xfs_alloc_longest_free_extent(pag, min_free, reservation); in xfs_alloc_space_available() 2349 reservation - min_free - args->minleft); in xfs_alloc_space_available() 2483 * Deferring AGFL frees helps prevent log reservation overruns due to too many 3233 * by perag reservation. Subtract one for the rmapbt root block in xfs_alloc_read_agf()
|