OSDN Git Service

xen/setup: Don't relocate p2m over existing one
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Mon, 12 Dec 2016 14:35:13 +0000 (14:35 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 07:53:30 +0000 (09:53 +0200)
commit1eed198ce16b6e05c05ee381e5d90fac35ea67a7
tree5454b74e58487533e1f9f959b9dd0caa8e84ee0b
parentba46d8fab00a8e1538df241681d9161c8ec85778
xen/setup: Don't relocate p2m over existing one

commit 7ecec8503af37de6be4f96b53828d640a968705f upstream.

When relocating the p2m, take special care not to relocate it so
that is overlaps with the current location of the p2m/initrd. This is
needed since the full extent of the current location is not marked as a
reserved region in the e820.

This was seen to happen to a dom0 with a large initial p2m and a small
reserved region in the middle of the initial p2m.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/xen/setup.c