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

[PATCH] x86/HVM: fix xsm_op for 32-bit guests


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 8 Oct 2021 15:06:35 +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=SRBgPmR53QC8PIMULg83d3+h6Qo/+vNFPFVxXxba2Ho=; b=hrP4gX5daPmUnQD4SlySXmc596iOh9qyvRhK7jji4u0Zr0kQnhcRmUfZbWNmXQ/66LBZZRk2KjEcC4rHnZH2kjS2r1tU/AIVD2WADBffnZ55lahPhnVpgSlu3YtBP3ri5rPST3roqcyj6OpnSkNx/Ay7AleN3ImwXnnpbhyBjkowVPKYfM/327GBaOU1cM0uBORBGeEs1SEGggw27P6GLoAe8Um2Z4X7u82W89lRoSVB2HreRPKaXd6Kb2xTlZjCtJ8PQubzvgHScOIwTakztbNAiZrjJ8M4TMkVQHlwTy61xGg2oe6JXmYUoS2We8z4c6+VI3itUdfFTrZ5YHe3sQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Os2A73Zlqobme7XNMBs+JMGeiu/USRJ04qypcHig71hyJ/pla/quL8V4kC3MnGtVoM3hJEOVd4QD74CsC//c1vSqpFdFpcHAly5qUcGDbtnV6NoruSSJk7xb72BjJM3Y8jA1VCiurhFDXu73E25002l05VsLEaj/NctWPqvjKBPEw584jzdtQPJGGmuKCnaFD9+FVALVTDpE/teHui2a8rhPwRVmJZKSxKrp0b9X5jtOmIz7HlaNqMa2nVeQ4yCobaQE2I2EXMLIUHXOdE7rQ4OIIcFFajxOjec9kQt+X2Al8EPkk86QDJPwkq7uiV9UucuS4wdcv/+RlNKEpo+rdQ==
  • Authentication-results: citrix.com; dkim=none (message not signed) header.d=none;citrix.com; dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Fri, 08 Oct 2021 13:07:01 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Like for PV, 32-bit guests need to invoke the compat handler, not the
native one.

Fixes: db984809d61b ("hvm: wire up domctl and xsm hypercalls")
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/xen/arch/x86/hvm/hypercall.c
+++ b/xen/arch/x86/hvm/hypercall.c
@@ -138,7 +138,7 @@ static const struct {
     HYPERCALL(event_channel_op),
     COMPAT_CALL(sched_op),
     COMPAT_CALL(set_timer_op),
-    HYPERCALL(xsm_op),
+    COMPAT_CALL(xsm_op),
     HYPERCALL(hvm_op),
     HYPERCALL(sysctl),
     HYPERCALL(domctl),




 


Rackspace

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