]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: nVMX: Remove explicit filtering of GUEST_INTR_STATUS from shadow VMCS fields
authorSean Christopherson <seanjc@google.com>
Thu, 15 Jan 2026 17:34:27 +0000 (09:34 -0800)
committerSean Christopherson <seanjc@google.com>
Mon, 26 Jan 2026 14:23:56 +0000 (06:23 -0800)
commit1dc643205953c2ff2e1d95dbdc2e784675abb38c
tree5282692f2f99a75a26386174e4200bca6639291e
parent5fdf86e7353ce2d91a24dcbe7320935b40d55367
KVM: nVMX: Remove explicit filtering of GUEST_INTR_STATUS from shadow VMCS fields

Drop KVM's filtering of GUEST_INTR_STATUS when generating the shadow VMCS
bitmap now that KVM drops GUEST_INTR_STATUS from the set of supported
vmcs12 fields if the field isn't supported by hardware, and initialization
of the shadow VMCS fields omits unsupported vmcs12 fields.

Note, there is technically a small functional change here, as the vmcs12
filtering only requires support for Virtual Interrupt Delivery, whereas
the shadow VMCS code being removed required "full" APICv support, i.e.
required Virtual Interrupt Delivery *and* APIC Register Virtualizaton *and*
Posted Interrupt support.

Opportunistically tweak the comment to more precisely explain why the
PML and VMX preemption timer fields need to be explicitly checked.

Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://patch.msgid.link/20260115173427.716021-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/nested.c