Alex Williamson 3560c0d0d0 vfio/type1: Use consistent types for page counts
JIRA: https://issues.redhat.com/browse/RHEL-85587

commit 0635559233434a337aa1c20d53abae18b3663796
Author: Alex Williamson <alex.williamson@redhat.com>
Date:   Tue Feb 18 15:22:04 2025 -0700

    vfio/type1: Use consistent types for page counts

    Page count should more consistently be an unsigned long when passed as
    an argument while functions returning a number of pages should use a
    signed long to allow for -errno.

    vaddr_get_pfns() can therefore be upgraded to return long, though in
    practice it's currently limited by the batch capacity.  In fact, the
    batch indexes are noted to never hold negative values, so while it
    doesn't make sense to bloat the structure with unsigned longs in this
    case, it does make sense to specify these as unsigned.

    No change in behavior expected.

    Reviewed-by: Peter Xu <peterx@redhat.com>
    Reviewed-by: Mitchell Augustin <mitchell.augustin@canonical.com>
    Tested-by: Mitchell Augustin <mitchell.augustin@canonical.com>
    Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
    Link: https://lore.kernel.org/r/20250218222209.1382449-5-alex.williamson@redhat.com
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2025-03-31 14:06:52 -06:00
2025-03-09 20:12:29 +08:00
2025-03-09 20:12:14 +08:00
2025-03-28 16:49:27 -03:00
2024-09-25 14:11:23 +00:00
2024-11-07 14:14:59 -08: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%