On Mon, 17 Jul 2023 13:12:29 +0100, Fuad Tabba wrote: > This patch series ensures that the value returned by > get_ram_size() is aligned to the host's page size. Without that, > KVM_SET_USER_MEMORY_REGION could fail when passed an unaligned > value. > > Changes from V1: > - Factor out code for getting _SC_PHYS_PAGES into a function (Will) > - Apply the scaling down of the ramsize to the number of pages (Will) > > [...] Applied to kvmtool (master), thanks! [1/3] Factor out getting the host page size https://git.kernel.org/will/kvmtool/c/b6bae725decc [2/3] Factor out getting the number of physical memory host pages https://git.kernel.org/will/kvmtool/c/834e5ed62fb8 [3/3] Apply scaling down the calculated guest ram size to the number of pages https://git.kernel.org/will/kvmtool/c/63643b11ce7d Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev