summaryrefslogtreecommitdiff
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-10-18 19:18:00 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2023-12-08 23:43:34 +0300
commit8ed26ab8d59111c2f7b86d200d1eb97d2a458fd1 (patch)
treec5297161e1f2c42680df97571f391caa811bddaf /include/linux/kvm_host.h
parenta5d3df8ae13fada772fbce952e9ee7b3433dba16 (diff)
downloadlinux-8ed26ab8d59111c2f7b86d200d1eb97d2a458fd1.tar.xz
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>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 1bba24a13ec9..7e7fd25b09b3 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -782,6 +782,7 @@ struct kvm {
struct list_head vm_list;
struct mutex lock;
struct kvm_io_bus __rcu *buses[KVM_NR_BUSES];
+#ifdef CONFIG_HAVE_KVM_IRQCHIP
struct {
spinlock_t lock;
struct list_head items;
@@ -789,6 +790,7 @@ struct kvm {
struct list_head resampler_list;
struct mutex resampler_lock;
} irqfds;
+#endif
struct list_head ioeventfds;
struct kvm_vm_stat stat;
struct kvm_arch arch;