x86/HVM: expose VM assist hypercall
authorJan Beulich <jbeulich@suse.com>
Wed, 22 Apr 2020 10:58:25 +0000 (12:58 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 22 Apr 2020 10:58:25 +0000 (12:58 +0200)
commitf13404d57f55a97838f1c16a366fbc3231ec21f1
tree2f8934a1d5ece0bda4b9dd47640d7c81121370f0
parent17b094b97c823c956c57e31c5cd7175d56b3efe4
x86/HVM: expose VM assist hypercall

In preparation for the addition of VMASST_TYPE_runstate_update_flag
commit 72c538cca957 ("arm: add support for vm_assist hypercall") enabled
the hypercall for Arm. I consider it not logical that it then isn't also
exposed to x86 HVM guests (with the same single feature permitted to be
enabled as Arm has); Linux actually tries to use it afaict.

Rather than introducing yet another thin wrapper around vm_assist(),
make that function the main handler, requiring a per-arch
arch_vm_assist_valid_mask() definition instead.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
12 files changed:
xen/arch/x86/domain.c
xen/arch/x86/hvm/hypercall.c
xen/arch/x86/pv/hypercall.c
xen/common/compat/kernel.c
xen/common/domain.c
xen/common/kernel.c
xen/include/asm-arm/config.h
xen/include/asm-arm/domain.h
xen/include/asm-x86/config.h
xen/include/asm-x86/domain.h
xen/include/xen/hypercall.h
xen/include/xen/lib.h