]> git.baikalelectronics.ru Git - kernel.git/commit
xen/balloon: don't use PV mode extra memory for zone device allocations
authorJuergen Gross <jgross@suse.com>
Thu, 7 Apr 2022 09:38:57 +0000 (11:38 +0200)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 7 Apr 2022 20:08:37 +0000 (15:08 -0500)
commit36690898b3730c922d2ebc825f7aefe035fdbbe3
tree4c3fe0de6f1876ea113056ea4fac29223291bb40
parentc043660b7b1730b102c89f501d07f4c53976a23b
xen/balloon: don't use PV mode extra memory for zone device allocations

When running as a Xen PV guest use the extra memory (memory which isn't
allocated for the guest at boot time) only for ballooning purposes and
not for zone device allocations. This will remove some code without any
lack of functionality.

While at it move some code to get rid of another #ifdef.

Remove a comment which is stale since some time now.

Signed-off-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20220407093857.1485-1-jgross@suse.com
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/balloon.c
drivers/xen/unpopulated-alloc.c