Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp515820ybl; Wed, 28 Aug 2019 01:07:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYswTxSpbJ7TMSZKaF9erf7WK1FuwQJ0luWXA4CV2E73bNwBRokmIJyWFBx72DG2W7XMLr X-Received: by 2002:a65:608e:: with SMTP id t14mr2336996pgu.373.1566979678988; Wed, 28 Aug 2019 01:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566979678; cv=none; d=google.com; s=arc-20160816; b=rXcJ1Bzxvsuhlzoi/Udubxbu9hLUKg/SSJAcDQ1tJ8UHhkwkwCLPxG2Qa8yzdX7gkv fhpehPPMpolZW7CW2nc4VLPFoVBQNDh/zI+FFqdsFg9DZjkRhtv0It/ayKNKhPApSTbp l0vXY40mYxc52s7AaDN2ygVVyHD+EqhzB1R31s29a8u+Qge2YnPWl/4UY33qpmzOGRsb BlxobKTk++8/YjYXldjehg1wyfsD/hIgdMRoTfqQbU+9evRvUsCvZ8OTaMZ+R7CuVRsw pQBJwVKuJypPdgDy9xPhenoDo/T8yyKUd6GMLhinAvBspyinFhVJvClq8LB1Gp1ZNFon YPwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PwBRz84h3IqxEhrLSZzXwFYVoAxZzyRZEA++9Msmx5s=; b=ultegAZtzsjVdhXreJuBHnPDOh0uoSABtzzWksljicEC1w03soJr7KXPiLQx86PZ8I eDnqZ20rnQNNYP6PhhqLBHgfPk9RN/NgPm3eFmdwAEiujW9Gy5lAlumfkpxOVDKXQsCG Sb6AC7FlSw5RrmQ6KT+YrHIAm3sGgN/9SrG13mmMSJEsxPZSa/lhb6442uHOiOnLuCUy ktqjlFcC7On3Vs3HSQ478MeeA6iYIMioPffjp3oEmLP3WZY2DGU8gKAyrsv0wliQfb/I Lov1ASnzc/ms2xSS5i3hIquw/yTpcktaCXgU0p5S/TiI+SycZr37GqGMXHj/12O+vZRR vbtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@shipmail.org header.s=mail header.b=rox5sQfK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7si1894477pfq.93.2019.08.28.01.07.43; Wed, 28 Aug 2019 01:07:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@shipmail.org header.s=mail header.b=rox5sQfK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726520AbfH1IEV (ORCPT + 99 others); Wed, 28 Aug 2019 04:04:21 -0400 Received: from ste-pvt-msa2.bahnhof.se ([213.80.101.71]:35714 "EHLO ste-pvt-msa2.bahnhof.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726391AbfH1IEV (ORCPT ); Wed, 28 Aug 2019 04:04:21 -0400 Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTP id A6C693F4AF; Wed, 28 Aug 2019 10:04:18 +0200 (CEST) Authentication-Results: ste-pvt-msa2.bahnhof.se; dkim=pass (1024-bit key; unprotected) header.d=shipmail.org header.i=@shipmail.org header.b=rox5sQfK; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at bahnhof.se X-Spam-Flag: NO X-Spam-Score: -2.099 X-Spam-Level: X-Spam-Status: No, score=-2.099 tagged_above=-999 required=6.31 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no Authentication-Results: ste-ftg-msa2.bahnhof.se (amavisd-new); dkim=pass (1024-bit key) header.d=shipmail.org Received: from ste-pvt-msa2.bahnhof.se ([127.0.0.1]) by localhost (ste-ftg-msa2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xTg1Ga307zmO; Wed, 28 Aug 2019 10:04:17 +0200 (CEST) Received: from mail1.shipmail.org (h-205-35.A357.priv.bahnhof.se [155.4.205.35]) (Authenticated sender: mb878879) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTPA id 0C5B33F623; Wed, 28 Aug 2019 10:04:17 +0200 (CEST) Received: from localhost.localdomain.localdomain (h-205-35.A357.priv.bahnhof.se [155.4.205.35]) by mail1.shipmail.org (Postfix) with ESMTPSA id C9CDA36118B; Wed, 28 Aug 2019 10:04:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shipmail.org; s=mail; t=1566979456; bh=MyZfORI1Xf0KtJaMhhnImwZ8Mwln+ZkdwP8hUtSS3nc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rox5sQfKnouVMkR44u1J6Ph6A7CFwlr/BpLaoINFJDXIPDqKYCfc/d2mURMAp6IqC /O7YCvq+0ciftK/FcEg/XEB6GinI0OWjTCViLaghSjgj8v/838DuOJDEZZKSU5qTwC adJHx6YEmlNrR8QktR+3F+40S8QWQLteeYK2KYE8= From: =?UTF-8?q?Thomas=20Hellstr=C3=B6m=20=28VMware=29?= To: linux-kernel@vger.kernel.org Cc: pv-drivers@vmware.com, linux-graphics-maintainer@vmware.com, Thomas Hellstrom , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Doug Covelli , Dmitry Torokhov Subject: [PATCH v3 4/4] input/vmmouse: Update the backdoor call with support for new instructions Date: Wed, 28 Aug 2019 10:03:53 +0200 Message-Id: <20190828080353.12658-5-thomas_os@shipmail.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190828080353.12658-1-thomas_os@shipmail.org> References: <20190828080353.12658-1-thomas_os@shipmail.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Hellstrom Use the definition provided by include/asm/vmware.h CC: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: Signed-off-by: Thomas Hellstrom Reviewed-by: Doug Covelli Acked-by: Dmitry Torokhov --- drivers/input/mouse/vmmouse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/mouse/vmmouse.c b/drivers/input/mouse/vmmouse.c index 871e5b5ab129..148245c69be7 100644 --- a/drivers/input/mouse/vmmouse.c +++ b/drivers/input/mouse/vmmouse.c @@ -16,12 +16,12 @@ #include #include #include +#include #include "psmouse.h" #include "vmmouse.h" #define VMMOUSE_PROTO_MAGIC 0x564D5868U -#define VMMOUSE_PROTO_PORT 0x5658 /* * Main commands supported by the vmmouse hypervisor port. @@ -84,7 +84,7 @@ struct vmmouse_data { #define VMMOUSE_CMD(cmd, in1, out1, out2, out3, out4) \ ({ \ unsigned long __dummy1, __dummy2; \ - __asm__ __volatile__ ("inl %%dx" : \ + __asm__ __volatile__ (VMWARE_HYPERCALL : \ "=a"(out1), \ "=b"(out2), \ "=c"(out3), \ @@ -94,7 +94,7 @@ struct vmmouse_data { "a"(VMMOUSE_PROTO_MAGIC), \ "b"(in1), \ "c"(VMMOUSE_PROTO_CMD_##cmd), \ - "d"(VMMOUSE_PROTO_PORT) : \ + "d"(0) : \ "memory"); \ }) -- 2.20.1