[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/2][4.17] x86: re-connect VCPUOP_send_nmi for 32-bit guests


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 29 Sep 2022 11:51:03 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+86ZEmgrwt0Ukv/jXJFhwGTpqrhzbbbTEia7yvF+u/0=; b=YhveM2T/ZRzuDMCZCZbWpNNhZLX7uw9oJPq0CrZMNtF56VIYaTa9hX+UheXZ8KBL5v8YXpt7u1aX/IFNtsCFWeSqP4gimN/XYbq0NOCc7EPPpwJHtwHTsKVbUCZfoFcAFdY11vh3/Rhrter5H0XYm7CIP7iKvuA3iHMafvqctAwr87FBXTtXk5TsfYr0givDCG90XQ+fHKuSUk6D8UWf3wYxCU/Tw5zv0TFryiafCKDZ6T7rUlTbVunAPrLaRjGmThtJfllngl/D0zzZvSu10pblqXcL5tERonUZGy7FmaSgNGtNn8f1/JA7aHtTYgy6melIuRXhnnctylrgrV8+mQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cWq67xcV4i9QBj90mg9Nu2eBsPYNCBSPVq0FKG55chfUeTGAa+u/RpOwbWasoMB/Ttp1cWti8rtPlfvMOh9xAJubTtO9gJlJCAsZqQK3O0Jq7qOGvUqqCSXPdGVEOkgpwm4zCcBtw+o2Y1EDxNWV77u9eHVe+bpoCnQT2nbTRrhQyYvB+Lcc5y+I3rX9NjUJVzYYuqIi3gOG4aQuWSO/bX+04F+ubPue/2Xp8nUf1ZzIwTNtSDLPBlStWa3JsXPWhFRVH8Uv3BHMyOswIsTau0Q8NEjBXBBngI1qPR1FT6xL0HIunNpkWTBFWc+uJLBt515WoU7mN+N+PEfm1CzFnw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Henry Wang <Henry.Wang@xxxxxxx>
  • Delivery-date: Thu, 29 Sep 2022 09:51:11 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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@xxxxxxxx>

--- a/xen/arch/x86/x86_64/domain.c
+++ b/xen/arch/x86/x86_64/domain.c
@@ -58,6 +58,7 @@ compat_vcpu_op(int cmd, unsigned int vcp
         break;
     }
 
+    case VCPUOP_send_nmi:
     case VCPUOP_get_physid:
         rc = do_vcpu_op(cmd, vcpuid, arg);
         break;
--- a/xen/common/compat/domain.c
+++ b/xen/common/compat/domain.c
@@ -99,7 +99,6 @@ int compat_common_vcpu_op(int cmd, struc
     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;
 




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.