KVM: clean up directives to compile out irqfds
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Oct 2023 16:18:00 +0000 (12:18 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 8 Dec 2023 20:43:34 +0000 (15:43 -0500)
commit8ed26ab8d59111c2f7b86d200d1eb97d2a458fd1
treec5297161e1f2c42680df97571f391caa811bddaf
parenta5d3df8ae13fada772fbce952e9ee7b3433dba16
KVM: clean up directives to compile out irqfds

Keep all #ifdef CONFIG_HAVE_KVM_IRQCHIP parts of eventfd.c together, and
compile out the irqfds field of struct kvm if the symbol is not defined.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/kvm_host.h
virt/kvm/eventfd.c