Re: [PATCH kvmtool v2 0/3] Align value generated by get_ram_size() to the host's page size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux