Files
cloud-hypervisor/docs
JP Kobryn bdc7a6947d vmm: add per-zone mergeable option to --memory-zone
Add a `mergeable` field to `MemoryZoneConfig` so that KSM page merging
can be enabled selectively per memory zone rather than globally for all
guest RAM.

Previously, `MADV_MERGEABLE` was only controllable via the top-level
`--memory mergeable=on` flag, which applied uniformly to all regions.
With this change, users can leave boot memory unmerged while enabling
KSM only on hotplug zones:

  --memory size=0,hotplug_method=virtio-mem
  --memory-zone id=boot,size=512M,shared=on,mergeable=off
  --memory-zone id=hotplug,size=256M,hotplug_size=1G,shared=off,mergeable=on

The `MemoryZone` runtime struct now carries the `mergeable` flag so
that both `allocate_address_space` and `add_ram_region` can apply
per-zone `MADV_MERGEABLE` instead of the global `self.mergeable`.
The top-level `--memory mergeable=on` path continues to work unchanged:
the default zone is synthesised from `MemoryConfig` and inherits its
`mergeable` value.

AI/LLM disclosure: this patch was co-authored with
GitHub Copilot and Claude Code (Opus 4.6).

Signed-off-by: JP Kobryn <inwardvessel@gmail.com>
2026-04-11 09:01:57 +00:00
..
2026-02-24 07:53:53 +00:00
2024-10-23 18:38:50 +01:00
2024-06-08 16:31:30 +00:00
2025-08-11 17:29:51 +00:00
2026-01-15 18:55:36 +00:00
2026-01-14 09:20:34 +00:00
2025-02-08 16:37:03 +08:00
2024-06-08 16:31:30 +00:00
2022-11-27 18:55:07 +00:00
2024-06-08 16:31:30 +00:00
2026-01-22 01:45:43 +00:00