]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
Drivers: hv: balloon: Disable balloon and hot-add accordingly
authorBoqun Feng <boqun.feng@gmail.com>
Fri, 25 Mar 2022 02:32:12 +0000 (10:32 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:42:29 +0000 (14:42 +0200)
commite39aaa500bdc5005d289ae6a154e1743753e19b2
tree5901cc99cede6b522af802f70765fff4cc899cd8
parent85b52f2160d145506643843bfc05b68952b8b135
Drivers: hv: balloon: Disable balloon and hot-add accordingly

BugLink: https://bugs.launchpad.net/bugs/1969857
[ Upstream commit be5802795cf8d0b881745fa9ba7790293b382280 ]

Currently there are known potential issues for balloon and hot-add on
ARM64:

* Unballoon requests from Hyper-V should only unballoon ranges
that are guest page size aligned, otherwise guests cannot handle
because it's impossible to partially free a page. This is a
problem when guest page size > 4096 bytes.

* Memory hot-add requests from Hyper-V should provide the NUMA
node id of the added ranges or ARM64 should have a functional
memory_add_physaddr_to_nid(), otherwise the node id is missing
for add_memory().

These issues require discussions on design and implementation. In the
meanwhile, post_status() is working and essential to guest monitoring.
Therefore instead of disabling the entire hv_balloon driver, the
ballooning (when page size > 4096 bytes) and hot-add are disabled
accordingly for now. Once the issues are fixed, they can be re-enable in
these cases.

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20220325023212.1570049-3-boqun.feng@gmail.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/hv/hv_balloon.c