Skip to content

Enable zeroing scratch with MADV_DONTNEED on MSHV #2112

Backlog

Description

@ludfjig

Newer mshv_root drivers use movable memory regions, which make MADV_DONTNEED safe. Older drivers pin guest memory, so the host and guest views diverge.

Movable regions are in Azure Linux kernel-mshv 6.6.121.mshv1 and later, all 6.18 builds, and mainline 6.19 and later. The driver exposes no flag, so Hyperlight must check the kernel release. Related: #2100.

Activity

  1. added
    C-enhancement
    A-perf
    O-mshv
    O-linux
    on Nov 26, 2026
  2. added
    S-needs-triage
    on Nov 26, 2026
  3. changed the title [-]Zero scratch with MADV_DONTNEED on MSHV[/-] [+]Enable zeroing scratch with MADV_DONTNEED on MSHV[/+] on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-perfC-enhancementO-linuxO-mshvS-needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions