[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <156699905611.5321.15444519862547054670.tip-bot2@tip-bot2>
Date: Wed, 28 Aug 2019 13:30:56 -0000
From: "tip-bot2 for Thomas Hellstrom" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Thomas Hellstrom <thellstrom@...are.com>,
Borislav Petkov <bp@...e.de>,
Doug Covelli <dcovelli@...are.com>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
"H. Peter Anvin" <hpa@...or.com>, Ingo Molnar <mingo@...hat.com>,
linux-input@...r.kernel.org, Thomas Gleixner <tglx@...utronix.de>,
VMware Graphics <linux-graphics-maintainer@...are.com>,
<pv-drivers@...are.com>, "x86-ml" <x86@...nel.org>,
Ingo Molnar <mingo@...nel.org>, Borislav Petkov <bp@...en8.de>,
linux-kernel@...r.kernel.org
Subject: [tip: x86/vmware] input/vmmouse: Update the backdoor call with
support for new instructions
The following commit has been merged into the x86/vmware branch of tip:
Commit-ID: f7b15c74cffd760ec9959078982d8268a38456c4
Gitweb: https://git.kernel.org/tip/f7b15c74cffd760ec9959078982d8268a38456c4
Author: Thomas Hellstrom <thellstrom@...are.com>
AuthorDate: Wed, 28 Aug 2019 10:03:53 +02:00
Committer: Borislav Petkov <bp@...e.de>
CommitterDate: Wed, 28 Aug 2019 13:43:01 +02:00
input/vmmouse: Update the backdoor call with support for new instructions
Use the definition provided by include/asm/vmware.h.
Signed-off-by: Thomas Hellstrom <thellstrom@...are.com>
Signed-off-by: Borislav Petkov <bp@...e.de>
Reviewed-by: Doug Covelli <dcovelli@...are.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@...il.com>
Cc: "H. Peter Anvin" <hpa@...or.com>
Cc: Ingo Molnar <mingo@...hat.com>
Cc: linux-input@...r.kernel.org
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: VMware Graphics <linux-graphics-maintainer@...are.com>
Cc: <pv-drivers@...are.com>
Cc: x86-ml <x86@...nel.org>
Link: https://lkml.kernel.org/r/20190828080353.12658-5-thomas_os@shipmail.org
---
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 871e5b5..148245c 100644
--- a/drivers/input/mouse/vmmouse.c
+++ b/drivers/input/mouse/vmmouse.c
@@ -16,12 +16,12 @@
#include <linux/slab.h>
#include <linux/module.h>
#include <asm/hypervisor.h>
+#include <asm/vmware.h>
#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"); \
})
Powered by blists - more mailing lists