]> git.baikalelectronics.ru Git - 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)
committerWei Liu <wei.liu@kernel.org>
Wed, 6 Apr 2022 13:15:06 +0000 (13:15 +0000)
commit08d1e90aeb3d7b396843510594467d0631e6a192
tree5780e099772cc614476cd62730770b4322c54dc2
parent8271905ae97890c7424732ecd2a36704908a3e3f
Drivers: hv: balloon: Disable balloon and hot-add accordingly

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>
drivers/hv/hv_balloon.c