hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/kvm_irqfd.h
....@@ -1,12 +1,5 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
2
- * This program is free software; you can redistribute it and/or modify
3
- * it under the terms of the GNU General Public License as published by
4
- * the Free Software Foundation; either version 2 of the License.
5
- *
6
- * This program is distributed in the hope that it will be useful,
7
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
8
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9
- * GNU General Public License for more details.
103 *
114 * irqfd: Allows an fd to be used to inject an interrupt to the guest
125 * Credit goes to Avi Kivity for the original idea.
....@@ -49,7 +42,7 @@
4942 wait_queue_entry_t wait;
5043 /* Update side is protected by irqfds.lock */
5144 struct kvm_kernel_irq_routing_entry irq_entry;
52
- seqcount_t irq_entry_sc;
45
+ seqcount_spinlock_t irq_entry_sc;
5346 /* Used for level IRQ fast-path */
5447 int gsi;
5548 struct work_struct inject;