x86/PoD: Avoid using variable length arrays in p2m_pod_zero_check()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 17 Sep 2018 15:30:53 +0000 (16:30 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 25 Sep 2018 10:59:32 +0000 (11:59 +0100)
commit21a488cbd483e5b5b75b088a8662d55c4c8332fa
treec20a9e2e6b04c222d68cf798aaeb04f22e07f0f4
parentd102fe7cb832c584adab002512fe804ab01a39ce
x86/PoD: Avoid using variable length arrays in p2m_pod_zero_check()

Callers of p2m_pod_zero_check() pass a count of up to POD_SWEEP_STRIDE.
Move the definition of POD_SWEEP_STRIDE and give the arrays a fixed
bound.

Signed-off-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