summaryrefslogtreecommitdiffstats
path: root/include/xen
diff options
context:
space:
mode:
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>2017-12-12 15:08:21 -0500
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>2017-12-20 13:16:20 -0500
commitb3cf8528bb21febb650a7ecbf080d0647be40b9f (patch)
treead93a1164173c611f6ac57481efa363ae6fdac64 /include/xen
parent2cc42bac1c795f75fcc062b95c6ca7ac1b84d5d8 (diff)
downloadlinux-b3cf8528bb21febb650a7ecbf080d0647be40b9f.tar.gz
linux-b3cf8528bb21febb650a7ecbf080d0647be40b9f.tar.bz2
linux-b3cf8528bb21febb650a7ecbf080d0647be40b9f.zip
xen/balloon: Mark unallocated host memory as UNUSABLE
Commit f5775e0b6116 ("x86/xen: discard RAM regions above the maximum reservation") left host memory not assigned to dom0 as available for memory hotplug. Unfortunately this also meant that those regions could be used by others. Specifically, commit fa564ad96366 ("x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 00-1f, 30-3f, 60-7f)") may try to map those addresses as MMIO. To prevent this mark unallocated host memory as E820_TYPE_UNUSABLE (thus effectively reverting f5775e0b6116) and keep track of that region as a hostmem resource that can be used for the hotplug. Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Reviewed-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'include/xen')
-rw-r--r--include/xen/balloon.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/xen/balloon.h b/include/xen/balloon.h
index 8906361bb50c..d0adfc78dcbd 100644
--- a/include/xen/balloon.h
+++ b/include/xen/balloon.h
@@ -43,3 +43,8 @@ static inline void xen_balloon_init(void)
{
}
#endif
+
+#ifdef CONFIG_XEN_BALLOON_MEMORY_HOTPLUG
+struct resource;
+void arch_xen_balloon_init(struct resource *hostmem_resource);
+#endif