linux-stable/arch/x86/xen
Boris Ostrovsky b3cf8528bb xen/balloon: Mark unallocated host memory as UNUSABLE
Commit f5775e0b61 ("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 fa564ad963 ("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 f5775e0b61) 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>
2017-12-20 13:16:20 -05:00
..
apic.c x86/Xen: don't report ancient LAPIC version 2017-12-12 09:39:17 -05:00
debugfs.c x86/xen: Audit and remove any unnecessary uses of module.h 2016-07-14 15:06:59 +02:00
debugfs.h debugfs: Add support to print u32 array in debugfs 2012-04-17 00:18:36 -04:00
efi.c x86/xen/efi: Initialize only the EFI struct members used by Xen 2017-06-23 11:11:03 +02:00
enlighten.c xen/balloon: Mark unallocated host memory as UNUSABLE 2017-12-20 13:16:20 -05:00
enlighten_hvm.c xen: fix hvm guest with kaslr enabled 2017-08-11 15:50:26 +02:00
enlighten_pv.c x86-64/Xen: eliminate W+X mappings 2017-12-19 11:33:25 -05:00
enlighten_pvh.c xen/pvh: Do not fill kernel's e820 map in init_pvh_bootparams() 2017-05-02 11:17:39 +02:00
grant-table.c xen: re-introduce support for grant v2 interface 2017-11-06 15:50:17 -05:00
irq.c x86/xen: Get rid of paravirt op adjust_exception_frame 2017-08-31 21:35:10 +02:00
Kconfig x86: Enable 5-level paging support via CONFIG_X86_5LEVEL=y 2017-07-21 10:05:19 +02:00
Makefile objtool, x86: Add several functions and files to the objtool whitelist 2017-06-30 10:19:19 +02:00
mmu.c xen: support priv-mapping in an HVM tools domain 2017-11-03 16:53:53 -04:00
mmu.h x86/xen: Change __xen_pgd_walk() and xen_cleanmfnmap() to support p4d 2017-03-27 08:56:49 +02:00
mmu_hvm.c x86/xen: split off mmu_hvm.c 2017-05-02 11:05:10 +02:00
mmu_pv.c x86-64/Xen: eliminate W+X mappings 2017-12-19 11:33:25 -05:00
multicalls.c x86: Replace __get_cpu_var uses 2014-08-26 13:45:49 -04:00
multicalls.h xen: use this_cpu_xxx replace percpu_xxx funcs 2012-01-24 12:20:24 -05:00
p2m.c xen: remove tests for pvh mode in pure pv paths 2017-08-31 09:45:55 -04:00
pci-swiotlb-xen.c xen-swiotlb: consolidate xen_swiotlb_dma_ops 2017-06-20 11:12:59 +02:00
platform-pci-unplug.c xen/pvh: PVH guests always have PV devices 2017-02-07 08:07:01 -05:00
pmu.c xen: Make VPMU init message look less scary 2016-08-24 18:45:38 +01:00
pmu.h x86/xen: put setup.c, pmu.c and apic.c under CONFIG_XEN_PV 2017-05-02 11:09:28 +02:00
setup.c xen/balloon: Mark unallocated host memory as UNUSABLE 2017-12-20 13:16:20 -05:00
smp.c xen/vcpu: Handle xen_vcpu_setup() failure at boot 2017-06-13 16:10:58 +02:00
smp.h xen/vcpu: Handle xen_vcpu_setup() failure at boot 2017-06-13 16:10:58 +02:00
smp_hvm.c xen/vcpu: Handle xen_vcpu_setup() failure at boot 2017-06-13 16:10:58 +02:00
smp_pv.c xen/x86: fix cpu hotplug 2017-07-23 08:13:11 +02:00
spinlock.c locking/spinlocks/x86, paravirt: Remove paravirt_ticketlocks_enabled 2017-01-14 09:33:46 +01:00
suspend.c x86/xen/time: setup vcpu 0 time info page 2017-11-08 16:33:14 -05:00
suspend_hvm.c xen/pvh*: Support > 32 VCPUs at domain restore 2017-06-13 16:05:17 +02:00
suspend_pv.c x86/xen: split suspend.c for PV and PVHVM guests 2017-05-02 11:09:17 +02:00
time.c x86/xen/time: setup vcpu 0 time info page 2017-11-08 16:33:14 -05:00
trace.c xen: use generated hypervisor symbols in arch/x86/xen/trace.c 2015-03-16 14:49:13 +00:00
vdso.h
vga.c xen/vga: add the xen EFI video mode support 2012-09-24 09:28:57 -04:00
xen-asm.S x86/paravirt/xen: Remove xen_patch() 2017-08-24 09:57:24 +02:00
xen-asm_32.S x86/paravirt/xen: Remove xen_patch() 2017-08-24 09:57:24 +02:00
xen-asm_64.S x86/xen: Get rid of paravirt op adjust_exception_frame 2017-08-31 21:35:10 +02:00
xen-head.S x86/xen: Redefine XEN_ELFNOTE_INIT_P2M using PUD_SIZE * PTRS_PER_PUD 2017-07-21 10:05:18 +02:00
xen-ops.h x86/xen/time: setup vcpu 0 time info page 2017-11-08 16:33:14 -05:00
xen-pvh.S x86/boot/64: Rename init_level4_pgt and early_level4_pgt 2017-06-13 08:56:55 +02:00