xen: move do_vcpu_op() to arch specific code
authorJuergen Gross <jgross@suse.com>
Tue, 28 Jun 2022 15:02:42 +0000 (17:02 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 28 Jun 2022 15:02:42 +0000 (17:02 +0200)
commit8a96c0ea79999a0f9a11c93a7009660efa624219
treeecedfff87ac4fa5c715c1c3e3905584095b6929c
parent026007376e9807da94930c38500acbd62605545b
xen: move do_vcpu_op() to arch specific code

The entry point used for the vcpu_op hypercall on Arm is different
from the one on x86 today, as some of the common sub-ops are not
supported on Arm. The Arm specific handler filters out the not
supported sub-ops and then calls the common handler. This leads to the
weird call hierarchy:

  do_arm_vcpu_op()
    do_vcpu_op()
      arch_do_vcpu_op()

Clean this up by renaming do_vcpu_op() to common_vcpu_op() and
arch_do_vcpu_op() in each architecture to do_vcpu_op(). This way one
of above calls can be avoided without restricting any potential
future use of common sub-ops for Arm.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Acked-by: Roger Pau Monné <roger.pau@cirtrix.com>
xen/arch/arm/domain.c
xen/arch/arm/include/asm/hypercall.h
xen/arch/arm/traps.c
xen/arch/x86/domain.c
xen/arch/x86/include/asm/hypercall.h
xen/arch/x86/x86_64/domain.c
xen/common/compat/domain.c
xen/common/domain.c
xen/include/xen/hypercall.h