A handful of minor tweaks and fixes, and a big reduction of the boilerplate needed for forking vt_x86_ops between VMX and TDX. The following changes since commit 45eb29140e68ffe8e93a5471006858a018480a45: Merge branch 'kvm-fixes-6.15-rc4' into HEAD (2025-04-24 13:39:34 -0400) are available in the Git repository at: https://github.com/kvm-x86/linux.git tags/kvm-x86-vmx-6.16 for you to fetch changes up to 907092bf7cbddee4381729f23a33780d84b1bb7c: KVM: VMX: Clean up and macrofy x86_ops (2025-05-02 13:37:26 -0700) ---------------------------------------------------------------- KVM VMX changes for 6.16: - Explicitly check MSR load/store list counts to fix a potential overflow on 32-bit kernels. - Flush shadow VMCSes on emergency reboot. - Revert mem_enc_ioctl() back to an optional hook, as it's nullified when SEV or TDX is disabled via Kconfig. - Macrofy the handling of vt_x86_ops to eliminate a pile of boilerplate code needed for TDX, and to optimize CONFIG_KVM_INTEL_TDX=n builds. ---------------------------------------------------------------- Chao Gao (1): KVM: VMX: Flush shadow VMCS on emergency reboot Sean Christopherson (2): KVM: nVMX: Check MSR load/store list counts during VM-Enter consistency checks KVM: x86: Revert kvm_x86_ops.mem_enc_ioctl() back to an OPTIONAL hook Uros Bizjak (1): KVM: VMX: Use LEAVE in vmx_do_interrupt_irqoff() Vishal Verma (3): KVM: VMX: Move vt_apicv_pre_state_restore() to posted_intr.c and tweak name KVM: VMX: Define a VMX glue macro for kvm_complete_insn_gp() KVM: VMX: Clean up and macrofy x86_ops arch/x86/include/asm/kvm-x86-ops.h | 2 +- arch/x86/kvm/vmx/main.c | 202 ++++++++++++++++++------------------- arch/x86/kvm/vmx/nested.c | 31 ++++-- arch/x86/kvm/vmx/posted_intr.c | 10 +- arch/x86/kvm/vmx/posted_intr.h | 3 +- arch/x86/kvm/vmx/vmenter.S | 3 +- arch/x86/kvm/vmx/vmx.c | 5 +- arch/x86/kvm/vmx/x86_ops.h | 66 +----------- arch/x86/kvm/x86.c | 7 +- 9 files changed, 142 insertions(+), 187 deletions(-)