xen/x86: p2m-pod: Use typesafe gfn in p2m_pod_zero_check
authorJulien Grall <julien.grall@arm.com>
Mon, 2 Oct 2017 12:59:38 +0000 (13:59 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Mon, 2 Oct 2017 16:32:40 +0000 (17:32 +0100)
commitd25ad8c88ea196f01995e28c7de4b0808f22a60f
treec2a82fb37f23c2cc8ccc693ec26b2ed6d50a4790
parent5529c9c2a8d78b98d33f239ef6ea7e6ff2045b33
xen/x86: p2m-pod: Use typesafe gfn in p2m_pod_zero_check

At the same time make the array gfns const has it is not modified within
the function.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/p2m-pod.c