]> xenbits.xensource.com Git - xen.git/commit
x86/HVM: expose VM assist hypercall
authorJan Beulich <jbeulich@suse.com>
Mon, 27 Apr 2020 13:05:16 +0000 (15:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 27 Apr 2020 13:05:16 +0000 (15:05 +0200)
commit2e8d8edc1fe12e0d513d4907b19b00bcc3dc015c
treeb4b3892ea2f523e62411cba9bac6b3ca298c33df
parent682d71ff8557dc2732888597d043d782a19c2809
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>
master commit: f13404d57f55a97838f1c16a366fbc3231ec21f1
master date: 2020-04-22 12:58:25 +0200
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