x86/shadow: replace stale literal numbers in hash_{vcpu,domain}_foreach()
authorJan Beulich <jbeulich@suse.com>
Tue, 30 Mar 2021 12:32:44 +0000 (14:32 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 30 Mar 2021 12:32:44 +0000 (14:32 +0200)
commitc201d303e801a949b10f9e0f36cdc1938ddd399e
treefa4c9b20fb0d863b5faddeedd1de87dc95135ab8
parentcead8c0d17462f3a1150b5657d3f4eaa88faf1cb
x86/shadow: replace stale literal numbers in hash_{vcpu,domain}_foreach()

15 apparently once used to be the last valid type to request a callback
for, and the dimension of the respective array. The arrays meanwhile are
larger than this (in a benign way, i.e. no caller ever sets a mask bit
higher than 15), dimensioned by SH_type_unused. Have the ASSERT()s
follow suit and add build time checks at the call sites.

Also adjust a comment naming the wrong of the two functions.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/common.c