x86/PoD: shorten certain operations on higher order ranges
authorJan Beulich <jbeulich@suse.com>
Fri, 2 Oct 2015 11:42:01 +0000 (13:42 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 2 Oct 2015 11:42:01 +0000 (13:42 +0200)
commit3c352011c0d39ed23656986f5786498a14f9a96e
treebfb8ed1f7a13f3c252d961607c9272a201588689
parentedb9531263e1698343ef3f8743d23b8044979341
x86/PoD: shorten certain operations on higher order ranges

Now that p2m->get_entry() always returns a valid order, utilize this
to accelerate some of the operations in PoD code. (There are two uses
of p2m->get_entry() left which don't easily lend themselves to this
optimization.)

Also adjust a few types as needed and remove stale comments from
p2m_pod_cache_add() (to avoid duplicating them yet another time).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/p2m-pod.c