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)
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>

No differences found