kernel_optimize_test/arch/x86/xen
David Vrabel 98dd166ea3 x86/xen/p2m: hint at the last populated P2M entry
With commit 633d6f17cd (x86/xen: prepare
p2m list for memory hotplug) the P2M may be sized to accomdate a much
larger amount of memory than the domain currently has.

When saving a domain, the toolstack must scan all the P2M looking for
populated pages.  This results in a performance regression due to the
unnecessary scanning.

Instead of reporting (via shared_info) the maximum possible size of
the P2M, hint at the last PFN which might be populated.  This hint is
increased as new leaves are added to the P2M (in the expectation that
they will be used for populated entries).

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Cc: <stable@vger.kernel.org> # 4.0+
2015-10-06 13:54:20 +01:00
..
apic.c xen/PMU: Intercept PMU-related MSR and APIC accesses 2015-08-20 12:25:25 +01:00
debugfs.c
debugfs.h
efi.c
enlighten.c x86/xen: Support kexec/kdump in HVM guests by doing a soft reset 2015-09-28 14:48:52 +01:00
grant-table.c
irq.c
Kconfig xen: features and fixes for 4.3-rc0 2015-09-08 11:46:48 -07:00
Makefile xen/PMU: Initialization code for Xen PMU 2015-08-20 12:25:20 +01:00
mmu.c xen/privcmd: Further s/MFN/GFN/ clean-up 2015-09-08 18:03:54 +01:00
mmu.h
multicalls.c
multicalls.h
p2m.c x86/xen/p2m: hint at the last populated P2M entry 2015-10-06 13:54:20 +01:00
pci-swiotlb-xen.c
platform-pci-unplug.c x86/xen: fix non-ANSI declaration of xen_has_pv_devices() 2015-08-20 12:24:13 +01:00
pmu.c xen/PMU: PMU emulation code 2015-08-20 12:25:26 +01:00
pmu.h xen/PMU: Intercept PMU-related MSR and APIC accesses 2015-08-20 12:25:25 +01:00
setup.c x86/xen: Do not clip xen_e820_map to xen_e820_map_entries when sanitizing map 2015-09-28 18:03:38 +01:00
smp.c xen: Use correctly the Xen memory terminologies 2015-09-08 18:03:49 +01:00
smp.h
spinlock.c locking/pvqspinlock: Rename QUEUED_SPINLOCK to QUEUED_SPINLOCKS 2015-05-11 09:52:09 +02:00
suspend.c xen/PMU: Initialization code for Xen PMU 2015-08-20 12:25:20 +01:00
time.c x86/xen/time: Migrate to new set-state interface 2015-07-30 21:25:38 +02:00
trace.c
vdso.h
vga.c
xen-asm_32.S
xen-asm_64.S x86/asm/entry: Untangle 'system_call' into two entry points: entry_SYSCALL_64 and entry_INT80_32 2015-06-08 09:14:21 +02:00
xen-asm.h
xen-asm.S
xen-head.S xen: eliminate scalability issues from initial mapping setup 2015-08-20 12:24:18 +01:00
xen-ops.h xen: move p2m list if conflicting with e820 map 2015-08-20 12:24:24 +01:00