x86/Viridian: fold duplicate vpset retrieval code
authorJan Beulich <jbeulich@suse.com>
Fri, 3 Dec 2021 10:37:45 +0000 (11:37 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 Dec 2021 10:37:45 +0000 (11:37 +0100)
commit6a6ab829b6defb4165a65225fbbb9c1703845676
tree27cb365f6ea572c933ce0a1e5cd4a505c683bca5
parent1f1179c619f6b82d3f193a9da7a24c359f79fb67
x86/Viridian: fold duplicate vpset retrieval code

hvcall_{flush,ipi}_ex() use more almost identical code than what was
isolated into hv_vpset_to_vpmask(). Move that code there as well, to
have just one instance of it. This way all of HV_GENERIC_SET_SPARSE_4K
processing now happens in a single place.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
xen/arch/x86/hvm/viridian/viridian.c