x86/shadow: adjust callback arrays
authorJan Beulich <jbeulich@suse.com>
Mon, 19 Apr 2021 13:26:22 +0000 (15:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 19 Apr 2021 13:26:22 +0000 (15:26 +0200)
commit17eaf4429cb86fe0795b38293891cc05e56ce177
treec1f625b2535734535f7823847484e18d2d587f98
parentb5b93627dd1c398a90b832af765b4720fc71814e
x86/shadow: adjust callback arrays

Some of them have entries with stale comments. Rather than correcting
these comments, re-arrange how these arrays get populated: Use dedicated
element initializers, serving the purpose of what the comments did so
far. This then also makes these arrays independent of the actual
ordering of the individual SH_type_*.

While tightening respective ASSERT()s in hash_{vcpu,domain}_foreach(),
also tighten related ones in shadow_hash_{insert,delete}().

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