switch-linux/arch/x86/xen
Juergen Gross b8f05c8803 x86/xen: correct bug in p2m list initialization
Commit 054954eb05 ("xen: switch to
linear virtual mapped sparse p2m list") introduced an error.

During initialization of the p2m list a p2m identity area mapped by
a complete identity pmd entry has to be split up into smaller chunks
sometimes, if a non-identity pfn is introduced in this area.

If this non-identity pfn is not at index 0 of a p2m page the new
p2m page needed is initialized with wrong identity entries, as the
identity pfns don't start with the value corresponding to index 0,
but with the initial non-identity pfn. This results in weird wrong
mappings.

Correct the wrong initialization by starting with the correct pfn.

Cc: stable@vger.kernel.org # 3.19
Reported-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Tested-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
2015-02-27 14:53:19 +00:00
..
apic.c
debugfs.c
debugfs.h
efi.c
enlighten.c x86/xen: Initialize cr4 shadow for 64-bit PV(H) guests 2015-02-23 16:30:26 +00:00
grant-table.c
irq.c
Kconfig
Makefile
mmu.c
mmu.h
multicalls.c
multicalls.h
p2m.c x86/xen: correct bug in p2m list initialization 2015-02-27 14:53:19 +00:00
p2m.h
pci-swiotlb-xen.c
platform-pci-unplug.c
setup.c
smp.c
smp.h
spinlock.c
suspend.c
time.c
trace.c
vdso.h
vga.c
xen-asm.h
xen-asm.S
xen-asm_32.S
xen-asm_64.S
xen-head.S
xen-ops.h