Re: [PATCH v2 7/7] KVM: VMX: replace vmx_spec_ctrl_restore_host with RESTORE_HOST_SPEC_CTRL_BODY
From: Chang S. Bae
Date: Mon Apr 27 2026 - 13:52:18 EST
On 4/27/2026 3:58 AM, Paolo Bonzini wrote:
Reuse the same assembly as SVM, just with alternatives insteadOn guest, do wrmsr(MSR_IA32_SPEC_CTRL, 0). Then, checking from a handler in C code, I found host SPEC_CTRL was restored.
of cpu_feature_enabled(X86_FEATURE_KERNEL_IBRS).
The case also works with clearcpuid=236 when mark off X86_FEATURE_KERNEL_IBRS.
Tested-by: Chang S. Bae <chang.seok.bae@xxxxxxxxx>