]> git.baikalelectronics.ru Git - kernel.git/commit
xen/balloon: Support xend-based toolstack take two
authorJuergen Gross <jgross@suse.com>
Fri, 17 Jan 2020 13:49:31 +0000 (14:49 +0100)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 22 Jan 2020 14:58:16 +0000 (08:58 -0600)
commitd5f46da4c0dfb15b661f4d446f38a9f9b8b2477a
treecbdf6c77d2973c29bb5923fc5942a0359a858a78
parent801f3f3d079ad208708713d9c2e92917236c3533
xen/balloon: Support xend-based toolstack take two

Commit 7397e68ae61c07 ("xen/balloon: Support xend-based toolstack")
tried to fix a regression with running on rather ancient Xen versions.
Unfortunately the fix was based on the assumption that xend would
just use another Xenstore node, but in reality only some downstream
versions of xend are doing that. The upstream xend does not write
that Xenstore node at all, so the problem must be fixed in another
way.

The easiest way to achieve that is to fall back to the behavior
before commit 608f831d0b886f ("xen/balloon: don't online new memory
initially") in case the static memory maximum can't be read.

This is achieved by setting static_max to the current number of
memory pages known by the system resulting in target_diff becoming
zero.

Fixes: 7397e68ae61c07 ("xen/balloon: Support xend-based toolstack")
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: <stable@vger.kernel.org> # 4.13
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/xen-balloon.c