xen/setup: Ignore E820_UNUSABLE when setting 1-1 mappings.
commit0d97559675bcba247e705712800ccd2c6d3674f1
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 12 Apr 2011 11:57:15 +0000 (12 07:57 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 00:32:49 +0000 (3 09:32 +0900)
tree81a27715deb14163f912766daa3bb9dc659f84cf
parent0fa5814524bb6c60fdc28915f367d8a5aa2b72c4
xen/setup: Ignore E820_UNUSABLE when setting 1-1 mappings.

commit 15bfc094517db2ddf38ca7ed47f3a1c0ad24f7c4 upstream.

When we parse the raw E820, the Xen hypervisor can set "E820_RAM"
to "E820_UNUSABLE" if the mem=X argument is used. As such we
should _not_ consider the E820_UNUSABLE as an 1-1 identity
mapping, but instead use the same case as for E820_RAM.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/xen/setup.c