Re: [PATCH 7/7] KVM: VMX: replace vmx_spec_ctrl_restore_host with RESTORE_HOST_SPEC_CTRL_BODY

From: Chang S. Bae

Date: Thu Apr 09 2026 - 20:16:58 EST


On 4/8/2026 11:22 AM, Paolo Bonzini wrote:

+ push %_ASM_AX
+ RESTORE_HOST_SPEC_CTRL_BODY VMX_spec_ctrl(%_ASM_DI), %ebx, .Lspec_ctrl_host_done
+ pop %_ASM_AX

objtool looks to dislike this PUSH/POP pattern:
kvm/kvm-intel.o: warning: objtool: __vmx_vcpu_run+0x1df: return with modified stack frame

I saw Uros tweak suggested to remove this which can have a side-effect to avoid the warning.

Thanks,
Chang