unmodified_drivers: enable use of register_oldmem_pfn_is_ram() API
authorMike Meyer <mike.meyer@teradata.com>
Mon, 4 Apr 2016 13:02:59 +0000 (15:02 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 4 Apr 2016 13:02:59 +0000 (15:02 +0200)
commita0f793d82d5ec2d0b67c57d7130bf01c91396c60
tree40a59483f4282fcf2bb7e6c75d15e259aba84892
parent7298d658826d9520969a8ba127a1903bc6bda520
unmodified_drivers: enable use of register_oldmem_pfn_is_ram() API

During the investigation of very slow dump times of guest images in
Amazon EC2 instance, it was discovered that the
register_oldmem_pfn_is_ram() API implemented by the upstream kernel
commit 997c136f518c5debd63847e78e2a8694f56dcf90:

        fs/proc/vmcore.c: add hook to read_from_oldmem() to check
                           for non-ram pages

was not being called.  This was due to the PV driver with the call
to register_oldmem_pfn_is_ram() API was not including the
kernel header file that is used to communicate support of the API in the
kernel.  Fix the issue by including the required header file.

Signed-off-by: Mike Meyer <mike.meyer@teradata.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Olaf Hering <olaf@aepfle.de>
unmodified_drivers/linux-2.6/platform-pci/platform-pci.c