]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/hyperv: Remove ASM_CALL_CONSTRAINT with VMMCALL insn
authorUros Bizjak <ubizjak@gmail.com>
Fri, 21 Nov 2025 14:14:11 +0000 (15:14 +0100)
committerWei Liu <wei.liu@kernel.org>
Wed, 18 Feb 2026 06:42:57 +0000 (06:42 +0000)
commit885e78d71f772dd4c83f83530814870062115f85
treef0e830b532b54d3059b8582fe3575144a7baecfd
parent834ef6aa0996121184728279c4b81a3b70ee649b
x86/hyperv: Remove ASM_CALL_CONSTRAINT with VMMCALL insn

Unlike CALL instruction, VMMCALL does not push to the stack, so it's
OK to allow the compiler to insert it before the frame pointer gets
set up by the containing function. ASM_CALL_CONSTRAINT is for CALLs
that must be inserted after the frame pointer is set up, so it is
over-constraining here and can be removed.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Wei Liu <wei.liu@kernel.org>
Cc: Dexuan Cui <decui@microsoft.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
arch/x86/hyperv/ivm.c