From: Alexey Makhalov <alexey.makhalov@broadcom.com>
To: Thorsten Leemhuis <regressions@leemhuis.info>,
Josh Poimboeuf <jpoimboe@kernel.org>,
x86@kernel.org
Cc: linux-kernel@vger.kernel.org,
Ajay Kaher <ajay.kaher@broadcom.com>,
bcm-kernel-feedback-list@broadcom.com,
Peter Zijlstra <peterz@infradead.org>,
Justin Forbes <jforbes@fedoraproject.org>,
Linux kernel regressions list <regressions@lists.linux.dev>,
Zack Rusin <zack.rusin@broadcom.com>
Subject: Re: [PATCH] x86/vmware: Fix hypercall clobbers
Date: Fri, 23 Jan 2026 17:01:31 -0800 [thread overview]
Message-ID: <9c491fa6-f59d-489e-97ce-b364ce76af73@broadcom.com> (raw)
In-Reply-To: <73641ce4-9387-48c6-8904-74997f9bb7ac@leemhuis.info>
On 1/23/26 1:47 AM, Thorsten Leemhuis wrote:
> Well, fixing bugs right where they are obviously is a good thing.
>
> But well, the problem according to the description quoted below was
> exposed by a change that went into 6.19-rc1 -- which makes it a kernel
> regression that must be fixed in the kernel (ideally before 6.19 is out).
The Linux change 34bf25e820ae ("x86/vmware: Introduce VMware hypercall
API") that revealed QEMU issue was introduced not now, but back in June
2024 in v6.11-rc1. Two LTS versions 6.12 and 6.18 have it.
This issue can be triggered only for specific hypercall (usually
statically inlined) and _only_ if compiler keeps rsi/rdi in use during
the hypercall.
The proposed kernel fix forces compiler to use memory instead of rsi/rdi
registers for _every_ VMware hypercall. Every VMware hypercall caller
should pay a penalty for QEMU issue, even if it runs on non qemu or
fixed/newer qemu platform.
IMHO, user who faced this issue should be given one choice to fix it -
update QEMU as the system may not be operable with this combination
QEMU+Kernel.
If kernel colleagues still believe it should be also solved from the
kernel side, then my proposal is to perform precise fix by using wider
hypercall just for VMWARE_CMD_ABSPOINTER_DATA:
--- a/drivers/input/mouse/vmmouse.c
+++ b/drivers/input/mouse/vmmouse.c
@@ -145,7 +145,7 @@ static psmouse_ret_t vmmouse_report_events(struct
psmouse *psmouse)
}
/* Now get it */
- status = vmware_hypercall4(VMWARE_CMD_ABSPOINTER_DATA, 4,
+ status = vmware_hypercall7(VMWARE_CMD_ABSPOINTER_DATA,
4, 0, 0, 0,
&x, &y, &z);
/*
Regards,
--Alexey
next prev parent reply other threads:[~2026-01-24 1:01 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-22 3:18 Josh Poimboeuf
2026-01-22 10:00 ` Alexey Makhalov
2026-01-22 17:40 ` Josh Poimboeuf
2026-01-23 9:47 ` Thorsten Leemhuis
2026-01-23 17:35 ` Josh Poimboeuf
2026-01-30 16:24 ` Thorsten Leemhuis
2026-01-30 16:46 ` Josh Poimboeuf
2026-02-06 10:07 ` Thomas Gleixner
2026-02-06 16:32 ` Josh Poimboeuf
2026-02-06 17:19 ` Linus Torvalds
2026-02-06 19:08 ` Josh Poimboeuf
2026-02-06 19:57 ` Linus Torvalds
2026-02-06 22:24 ` Josh Poimboeuf
2026-02-06 22:38 ` Linus Torvalds
2026-02-06 23:08 ` Linus Torvalds
2026-02-07 0:46 ` Josh Poimboeuf
2026-02-07 1:05 ` Linus Torvalds
2026-02-12 14:54 ` Paolo Bonzini
2026-02-06 22:41 ` Alexey Makhalov
2026-01-24 1:01 ` Alexey Makhalov [this message]
2026-01-24 6:27 ` Thorsten Leemhuis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9c491fa6-f59d-489e-97ce-b364ce76af73@broadcom.com \
--to=alexey.makhalov@broadcom.com \
--cc=ajay.kaher@broadcom.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=jforbes@fedoraproject.org \
--cc=jpoimboe@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=regressions@leemhuis.info \
--cc=regressions@lists.linux.dev \
--cc=x86@kernel.org \
--cc=zack.rusin@broadcom.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®