x86/Viridian: fix error code use
authorJan Beulich <jbeulich@suse.com>
Wed, 24 Nov 2021 10:09:56 +0000 (11:09 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 24 Nov 2021 10:09:56 +0000 (11:09 +0100)
commit857fee77845be0c5c35fd51bac64455369d32a6f
treeeaf90c91a4d8885dd2649544ac55cd7af05af8b3
parent49857c5e4fe19e61fc7d1a457e541fe67ac55c8d
x86/Viridian: fix error code use

Both the wrong use of HV_STATUS_* and the return type of
hv_vpset_to_vpmask() can lead to viridian_hypercall()'s
ASSERT_UNREACHABLE() triggering when translating error codes from Xen
to Viridian representation.

Fixes: b4124682db6e ("viridian: add ExProcessorMasks variants of the flush hypercalls")
Fixes: 9afa867d42ba ("viridian: add ExProcessorMasks variant of the IPI hypercall")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
xen/arch/x86/hvm/viridian/viridian.c