]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "xen/balloon: Mark unallocated host memory as UNUSABLE"
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Tue, 27 Nov 2018 20:58:21 +0000 (20:58 +0000)
committerJuergen Gross <jgross@suse.com>
Thu, 29 Nov 2018 16:53:31 +0000 (17:53 +0100)
commit4f27716446e4b0670ddf76477332b61e9532efd0
tree0e64c51976e70e1e01702e6d6646633427da5f44
parentffc6998a54394930c3a3c51012a77b9343ca9797
Revert "xen/balloon: Mark unallocated host memory as UNUSABLE"

This reverts commit 0e33c9f587553dccbe69e0b8f6fe84dad5977fa2.

That commit unintentionally broke Xen balloon memory hotplug with
"hotplug_unpopulated" set to 1. As long as "System RAM" resource
got assigned under a new "Unusable memory" resource in IO/Mem tree
any attempt to online this memory would fail due to general kernel
restrictions on having "System RAM" resources as 1st level only.

The original issue that commit has tried to workaround 84f54d8c5190
("x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 00-1f, 30-3f,
60-7f)") also got amended by the following 32cb6dbb5 ("x86/PCI: Move
and shrink AMD 64-bit window to avoid conflict") which made the
original fix to Xen ballooning unnecessary.

Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/enlighten.c
arch/x86/xen/setup.c
drivers/xen/balloon.c
include/xen/balloon.h