Mike Rapoport (IBM)
f6bec26c0a
mm/execmem, arch: convert simple overrides of module_alloc to execmem
...
Several architectures override module_alloc() only to define address
range for code allocations different than VMALLOC address space.
Provide a generic implementation in execmem that uses the parameters for
address space ranges, required alignment and page protections provided
by architectures.
The architectures must fill execmem_info structure and implement
execmem_arch_setup() that returns a pointer to that structure. This way the
execmem initialization won't be called from every architecture, but rather
from a central place, namely a core_initcall() in execmem.
The execmem provides execmem_alloc() API that wraps __vmalloc_node_range()
with the parameters defined by the architectures. If an architecture does
not implement execmem_arch_setup(), execmem_alloc() will fall back to
module_alloc().
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org >
Acked-by: Song Liu <song@kernel.org >
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org >
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org >
2024-05-14 00:31:43 -07:00
..
2024-04-05 16:49:14 +02:00
2024-04-09 10:05:03 -05:00
2024-03-27 10:25:54 +00:00
2024-04-17 22:48:14 +02:00
2024-04-15 08:10:26 -06:00
2024-03-14 10:29:47 -07:00
2024-03-15 13:21:13 -07:00
2024-03-21 15:09:29 -07:00
2024-03-21 12:35:20 -07:00
2024-04-25 07:29:41 +03:00
2024-04-02 10:47:43 +08:00
2024-04-24 10:13:30 +09:00
2024-04-24 12:08:01 +02:00
2024-04-23 12:16:55 +02:00
2024-03-15 12:22:52 -07:00
2024-03-14 11:10:43 -07:00
2024-04-22 12:20:09 -07:00
2024-03-21 12:35:20 -07:00
2024-03-16 10:04:12 -07:00
2024-04-26 10:33:05 +02:00
2024-04-24 12:08:01 +02:00
2024-04-18 18:29:50 +01:00
2024-05-07 07:29:42 -06:00
2024-03-20 20:18:27 -07:00
2024-05-13 13:03:54 -07:00
2024-04-17 08:44:03 -06:00
2024-05-13 13:03:54 -07:00
2024-04-14 22:00:43 +09:00
2024-03-28 18:47:45 -07:00
2024-04-04 10:40:27 +02:00
2024-03-28 15:35:38 -07:00
2024-04-09 22:06:00 -07:00
2024-05-13 10:13:39 -07:00
2024-04-12 15:07:53 +08:00
2024-05-08 09:53:00 -07:00
2024-04-25 15:47:39 +02:00
2024-04-24 12:07:58 +02:00
2024-03-17 13:34:00 +11:00
2024-03-26 15:32:32 -05:00
2024-05-06 13:28:59 -07:00
2024-03-14 17:43:30 -07:00
2024-04-15 11:02:51 -07:00
2024-04-04 19:27:53 +02:00
2024-04-25 08:20:54 -07:00
2024-05-14 00:31:43 -07:00
2024-03-22 10:09:08 -07:00
2024-05-09 13:02:39 +02:00
2024-04-26 09:45:18 -07:00
2024-03-16 08:29:48 +01:00
2024-05-01 16:35:06 -07:00
2024-03-26 09:01:18 +01:00
2024-05-13 11:40:06 -07:00
2024-04-29 15:01:42 +01:00
2024-03-18 10:33:06 -04:00
2024-03-13 21:22:26 -04:00
2024-04-04 11:08:33 +03:00
2024-03-14 17:43:30 -07:00
2024-04-09 10:53:44 +02:00
2024-04-10 21:33:32 +00:00
2024-03-25 23:45:21 +01:00
2024-04-22 11:26:01 -06:00
2024-04-15 08:10:26 -06:00
2024-04-08 16:34:18 +02:00
2024-03-22 11:18:16 +01:00
2024-03-18 10:33:06 -04:00
2024-03-15 13:03:13 -07:00
2024-03-25 15:46:12 -04:00
2024-03-14 11:31:26 -04:00
2024-03-16 10:04:12 -07:00
2024-03-13 18:38:13 -04:00
2024-04-24 19:34:26 -07:00
2024-03-26 11:07:22 -07:00
2024-05-14 00:31:43 -07:00
2024-04-13 11:33:58 +02:00
2024-03-19 10:47:47 +01:00
2024-05-01 18:08:21 +01:00
2024-03-19 11:57:26 -07:00
2024-04-12 15:07:52 +08:00
2024-03-22 16:25:31 -07:00
2024-04-24 19:34:26 -07:00
2024-05-01 18:07:06 +01:00
2024-03-26 11:07:20 -07:00
2024-05-10 14:52:46 +02:00
2024-03-14 10:58:27 -07:00
2024-04-11 17:06:06 +02:00
2024-04-14 22:26:32 +02:00
2024-03-13 12:53:53 -07:00
2024-03-13 12:53:53 -07:00
2024-04-27 11:17:48 -07:00
2024-04-03 14:45:03 -07:00
2024-04-09 15:11:49 +02:00
2024-04-15 19:43:48 +02:00
2024-04-08 14:09:58 +01:00
2024-04-08 16:39:16 +02:00
2024-04-08 16:39:16 +02:00
2024-03-25 12:09:54 +01:00
2024-04-19 15:17:37 +01:00
2024-04-05 11:21:29 -07:00
2024-03-14 11:31:26 -04:00
2024-05-02 16:28:15 +02:00
2024-04-09 10:53:44 +02:00
2024-04-16 15:39:51 -07:00
2024-05-13 12:48:06 -07:00
2024-04-08 09:18:22 +02:00
2024-05-01 17:30:06 +02:00
2024-03-14 16:48:53 -07:00
2024-04-09 17:00:16 -07:00
2024-04-15 11:29:48 +02:00
2024-04-05 11:21:31 -07:00
2024-03-26 09:01:18 +01:00
2024-05-02 07:52:41 -07:00
2024-03-14 17:43:30 -07:00
2024-04-16 15:39:50 -07:00
2024-03-14 11:31:26 -04:00
2024-04-03 13:58:20 +02:00
2024-04-03 09:19:31 +02:00
2024-04-01 10:36:34 +02:00
2024-04-01 10:36:34 +02:00
2024-04-01 10:36:35 +02:00
2024-05-09 22:30:52 +03:00
2024-03-18 10:33:04 -04:00
2024-05-04 04:25:37 -04:00
2024-03-18 10:33:06 -04:00
2024-05-06 12:05:00 +02:00
2024-04-05 22:31:37 -07:00
2024-04-14 17:05:08 +01:00
2024-04-07 02:42:36 -04:00
2024-03-19 02:45:51 -04:00
2024-04-08 04:11:04 -04:00
2024-03-14 17:43:30 -07:00
2024-04-17 13:37:23 +02:00