]> git.itanic.dy.fi Git - linux-stable/commit
KVM: x86: Introduce helper to check if auto-EOI is set in Hyper-V SynIC
authorVitaly Kuznetsov <vkuznets@redhat.com>
Tue, 5 Dec 2023 10:36:18 +0000 (11:36 +0100)
committerSean Christopherson <seanjc@google.com>
Thu, 7 Dec 2023 17:34:10 +0000 (09:34 -0800)
commit16e880bfa6377871da233c846ecdf23db2bf1d97
tree802a9132eb209c6a7b839b3170977ee3826cfafb
parent50a82b0eb88c108d1ebc73a97f5b81df0d5918e0
KVM: x86: Introduce helper to check if auto-EOI is set in Hyper-V SynIC

As a preparation to making Hyper-V emulation optional, create a dedicated
kvm_hv_synic_auto_eoi_set() helper to avoid extra ifdefs in lapic.c

No functional change intended.

Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Tested-by: Jeremi Piotrowski <jpiotrowski@linux.microsoft.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Link: https://lore.kernel.org/r/20231205103630.1391318-5-vkuznets@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/hyperv.h
arch/x86/kvm/lapic.c