]> git.baikalelectronics.ru Git - kernel.git/commit
xen: fix booting ballooned down hvm guest
authorJuergen Gross <jgross@suse.com>
Thu, 26 Oct 2017 09:50:56 +0000 (11:50 +0200)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 26 Oct 2017 12:11:44 +0000 (08:11 -0400)
commitd5a8ceac627a0e4ea2a4c8b2e673a79cd048aac8
treebe037f49bc59adf3a470d8807f34be4f3a4bbfc0
parent0886d10f4f955b08ca1b2fb4f8e11cf7200c21da
xen: fix booting ballooned down hvm guest

Commit 608f831d0b886fa35a101fcad3228e362bb4eb83 ("xen/balloon: don't
online new memory initially") introduced a regression when booting a
HVM domain with memory less than mem-max: instead of ballooning down
immediately the system would try to use the memory up to mem-max
resulting in Xen crashing the domain.

For HVM domains the current size will be reflected in Xenstore node
memory/static-max instead of memory/target.

Additionally we have to trigger the ballooning process at once.

Cc: <stable@vger.kernel.org> # 4.13
Fixes: 608f831d0b886fa35a101fcad3228e362bb4eb83 ("xen/balloon: don't
       online new memory initially")

Reported-by: Simon Gaiser <hw42@ipsumj.de>
Suggested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/xen-balloon.c