milos-linux/drivers/hv
Anirudh Rayabharam (Microsoft) 98e0fc32e5 mshv: support 1G hugepages by passing them as 2M-aligned chunks
The hypervisor's map GPA hypercall coalesces contiguous 2M-aligned
chunks into 1G mappings when alignment permits, so the driver can
support 1G hugepages by feeding them in as 2M chunks. Note that this
is the only way to make 1G mappings; there is no way to directly map
a 1G hugepage using the hypercall.

Always emit a 2M (PMD_ORDER) stride for the huge-page case. The
hypercall has no 1G stride, so 1G folios are processed as a
sequence of 2M chunks. Folios whose order is less than PMD_ORDER
(e.g. mTHP) fall back to single-page stride; mapping them as 2M
would fail in the hypervisor anyway.

Assisted-by: Copilot-CLI:claude-opus-4.7
Signed-off-by: Anirudh Rayabharam (Microsoft) <anirudh@anirudhrb.com>
Acked-by: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
2026-05-27 15:30:15 -07:00
..
channel.c Drivers: hv: fix missing kernel-doc description for 'size' in request_arr_init() 2025-11-15 06:18:16 +00:00
channel_mgmt.c Drivers: hv: vmbus: Provide option to skip VMBus unload on panic 2026-05-13 22:29:32 +00:00
connection.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
hv.c mshv: limit SynIC management to MSHV-owned resources 2026-04-29 22:56:53 +00:00
hv_balloon.c hv_balloon: set unspecified page reporting order 2026-04-05 13:53:17 -07:00
hv_common.c mshv: Handle insufficient root memory hypervisor statuses 2026-02-19 06:42:11 +00:00
hv_debugfs.c
hv_kvp.c hv: utils: replace deprecated strcpy with strscpy in kvp_register 2026-04-29 22:15:31 +00:00
hv_proc.c x86/hyperv: Skip LP/VP creation on kexec 2026-04-22 06:23:25 +00:00
hv_snapshot.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hv_trace.c
hv_trace.h
hv_trace_balloon.h
hv_util.c Drivers: hv: use kmalloc_array() instead of kmalloc() 2025-12-05 23:16:49 +00:00
hv_utils_transport.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hv_utils_transport.h
hyperv_vmbus.h Drivers: hv: vmbus: Provide option to skip VMBus unload on panic 2026-05-13 22:29:32 +00:00
Kconfig mshv: Add conditional VMBus dependency 2026-05-27 15:11:05 -07:00
Makefile mshv: Introduce tracing support 2026-04-14 04:42:02 +00:00
mshv.h mshv: Use common "entry virt" APIs to do work in root before running guest 2025-09-30 22:50:48 +00:00
mshv_common.c mshv: hide x86-specific functions on arm64 2025-12-17 18:04:15 +00:00
mshv_debugfs.c mshv: unmap debugfs stats pages on kexec 2026-04-29 22:56:53 +00:00
mshv_debugfs_counters.c mshv: Add data for printing stats page counters 2026-02-04 06:17:05 +00:00
mshv_eventfd.c mshv: Introduce tracing support 2026-04-14 04:42:02 +00:00
mshv_eventfd.h mshv: clear eventfd counter on irqfd shutdown 2026-02-04 06:36:19 +00:00
mshv_irq.c mshv: Introduce tracing support 2026-04-14 04:42:02 +00:00
mshv_portid_table.c Drivers: hv: Introduce mshv_root module to expose /dev/mshv to VMMs 2025-03-21 18:24:22 +00:00
mshv_regions.c mshv: support 1G hugepages by passing them as 2M-aligned chunks 2026-05-27 15:30:15 -07:00
mshv_root.h mshv: Introduce tracing support 2026-04-14 04:42:02 +00:00
mshv_root_hv_call.c mshv: Introduce tracing support 2026-04-14 04:42:02 +00:00
mshv_root_main.c mshv: use kmalloc_array in mshv_root_scheduler_init 2026-05-27 15:26:23 -07:00
mshv_synic.c mshv: unmap debugfs stats pages on kexec 2026-04-29 22:56:53 +00:00
mshv_trace.c mshv: Introduce tracing support 2026-04-14 04:42:02 +00:00
mshv_trace.h mshv: Add tracepoint for GPA intercept handling 2026-04-22 06:23:25 +00:00
mshv_vtl.h Drivers: hv: Introduce mshv_vtl driver 2025-12-05 23:16:26 +00:00
mshv_vtl_main.c mshv_vtl: Fix vmemmap_shift exceeding MAX_FOLIO_ORDER 2026-04-14 04:44:31 +00:00
ring_buffer.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
vmbus_drv.c Drivers: hv: vmbus: Improve the logic of reserving fb_mmio on Gen2 VMs 2026-05-27 15:28:33 -07:00