Maxim Levitsky 23fa9eda53 KVM: selftests: Ensure gmem file sizes are multiple of host page size
JIRA: https://issues.redhat.com/browse/RHEL-151869

commit 87c810160ed738cd983e4a65ebe9709927c702c9
Author: Sean Christopherson <seanjc@google.com>
Date:   Tue May 12 08:56:34 2026 -0700

    KVM: selftests: Ensure gmem file sizes are multiple of host page size

    When creating a guest_memfd file and associated memslot to validate shared
    guest memory, size the file+memslot to the maximum of the host or guest
    page size.  Attempting to allocate a single guest page will fail if the
    host page size is greater than the guest page size, as KVM requires that
    the size of memslots and guest_memfd files are a multiple of the host page
    size.

    For simplicity, verify the entire file can be shared between guest and host,
    e.g. instead of trying to validate "partial" mappings.

    Fixes: 42188667be38 ("KVM: selftests: Add guest_memfd testcase to fault-in on !mmap()'d memory")
    Reported-by: Zenghui Yu <zenghui.yu@linux.dev>
    Closes: https://lore.kernel.org/all/0064952b-048c-455d-ad89-e27e5cb82591@linux.dev
    Signed-off-by: Sean Christopherson <seanjc@google.com>
    Message-ID: <20260512155634.772602-1-seanjc@google.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
2026-07-21 14:12:12 -04:00
2026-07-01 16:15:37 -04:00
2026-07-15 11:04:26 -04:00
2026-07-01 16:16:28 -04:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the reStructuredText markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
S
Description
No description provided
Readme
2.8 GiB
Languages
C 97.5%
Assembly 1%
Shell 0.6%
Python 0.3%
Makefile 0.3%