xen: make sure pages are really part of domain before freeing
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Wed, 16 Sep 2009 19:38:33 +0000 (12:38 -0700)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Tue, 20 Jul 2010 19:57:46 +0000 (12:57 -0700)
commitf89e048e76da7ac0b4c89e75606ca7a3422886b1
treec195e708de7c5d6bf34accc40584b5cefda9ae92
parent093d7b4639951ea3021a6f70d376c3ff31f4740c
xen: make sure pages are really part of domain before freeing

Scan the set of pages we're freeing and make sure they're actually
owned by the domain before freeing.  This generally won't happen on a
domU (since Xen gives us contigious memory), but it could happen if
there are some hardware mappings passed through.

We only bother going up to the highest page Xen actually claimed to
give us, since there's definitely nothing of ours above that.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
arch/x86/xen/setup.c