]> xenbits.xensource.com Git - people/tklengyel/xen.git/commitdiff
x86: re-connect VCPUOP_send_nmi for 32-bit guests
authorJan Beulich <jbeulich@suse.com>
Thu, 29 Sep 2022 12:46:50 +0000 (14:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 29 Sep 2022 12:46:50 +0000 (14:46 +0200)
With the "inversion" of VCPUOP handling, processing arch-specific ones
first, the forwarding of this sub-op from the (common) compat handler to
(common) non-compat one did no longer have the intended effect. It now
needs forwarding between the arch-specific handlers.

Fixes: 8a96c0ea7999 ("xen: move do_vcpu_op() to arch specific code")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
xen/arch/x86/x86_64/domain.c
xen/common/compat/domain.c

index 62fe51ee749428d3c96ad9f18528123aca0e6093..9b2f7a7d7a1700d835bf53eeaf13134348eedfd2 100644 (file)
@@ -58,6 +58,7 @@ compat_vcpu_op(int cmd, unsigned int vcpuid, XEN_GUEST_HANDLE_PARAM(void) arg)
         break;
     }
 
+    case VCPUOP_send_nmi:
     case VCPUOP_get_physid:
         rc = do_vcpu_op(cmd, vcpuid, arg);
         break;
index 1119534679a0dc15a2633bdf202218541044fe99..c4254905359e98bce6dfc203a397cb7e6f364ff2 100644 (file)
@@ -99,7 +99,6 @@ int compat_common_vcpu_op(int cmd, struct vcpu *v,
     case VCPUOP_stop_periodic_timer:
     case VCPUOP_stop_singleshot_timer:
     case VCPUOP_register_vcpu_info:
-    case VCPUOP_send_nmi:
         rc = common_vcpu_op(cmd, v, arg);
         break;