From patchwork Sun Aug 18 14:33:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Hellstr=C3=B6m_=28Intel=29?= X-Patchwork-Id: 11099627 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E513D13B1 for ; Sun, 18 Aug 2019 14:40:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72C2C1FE8D for ; Sun, 18 Aug 2019 14:40:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 631F220072; Sun, 18 Aug 2019 14:40:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7D6128516 for ; Sun, 18 Aug 2019 14:40:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726247AbfHROkc (ORCPT ); Sun, 18 Aug 2019 10:40:32 -0400 Received: from ste-pvt-msa2.bahnhof.se ([213.80.101.71]:31357 "EHLO ste-pvt-msa2.bahnhof.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726261AbfHROkc (ORCPT ); Sun, 18 Aug 2019 10:40:32 -0400 Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTP id 65F313F7C7; Sun, 18 Aug 2019 16:33:51 +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=enzcM+ef; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at bahnhof.se 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 omKhVBcd1px2; Sun, 18 Aug 2019 16:33:50 +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 1CBE73F704; Sun, 18 Aug 2019 16:33:50 +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 D3484360331; Sun, 18 Aug 2019 16:33:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shipmail.org; s=mail; t=1566138829; bh=wX7r4rQL9PmCx95uRebSs4gE+H5at0oCTJcfkHLE2LE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=enzcM+ef6Ik+/tcp1k4+oUlEjxoHjaMCwiad0JKs8n/sXKHxD/nIC1xwZgaicsy2Q FF3VE/oryj4Wz85l5m9g1B2zluiHsJl4PzxFrOzzv4AWWIKZRx2U25sURLlEBwQn2T bkaranfY5Kwe1K240TQEQTIrDR+ZmonXzY6ErrKA= From: =?utf-8?q?Thomas_Hellstr=C3=B6m_=28VMware=29?= To: linux-kernel@vger.kernel.org, pv-drivers@vmware.com Cc: Thomas Hellstrom , Dmitry Torokhov , linux-input@vger.kernel.org, Doug Covelli Subject: [PATCH 4/4] input/vmmouse: Update the backdoor call with support for new instructions Date: Sun, 18 Aug 2019 16:33:16 +0200 Message-Id: <20190818143316.4906-5-thomas_os@shipmail.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190818143316.4906-1-thomas_os@shipmail.org> References: <20190818143316.4906-1-thomas_os@shipmail.org> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thomas Hellstrom Use the definition provided by include/asm/vmware.h Cc: Dmitry Torokhov Cc: Signed-off-by: Thomas Hellstrom Reviewed-by: Doug Covelli Acked-by: Dmitry Torokhov --- drivers/input/mouse/vmmouse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/input/mouse/vmmouse.c b/drivers/input/mouse/vmmouse.c index 871e5b5ab129..0c7707c7bede 100644 --- a/drivers/input/mouse/vmmouse.c +++ b/drivers/input/mouse/vmmouse.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "psmouse.h" #include "vmmouse.h" @@ -84,7 +85,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), \