diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2009-06-04 14:08:23 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 01:32:49 -0400 |
commit | 60eead79ad8750f80384cbe48fc44edcc78a0305 (patch) | |
tree | bf7b2a6e83c47f709e9d0afb2a8c53eb2944b05c /include/linux/kvm_host.h | |
parent | 64a2268dcfc9c3626aa7f70902690e2fc10c1630 (diff) |
KVM: introduce irq_lock, use it to protect ioapic
Introduce irq_lock, and use to protect ioapic data structures.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r-- | include/linux/kvm_host.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 19240feefe6f..0c71688b1ee3 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -124,7 +124,6 @@ struct kvm_kernel_irq_routing_entry { | |||
124 | }; | 124 | }; |
125 | 125 | ||
126 | struct kvm { | 126 | struct kvm { |
127 | struct mutex lock; /* protects the vcpus array and APIC accesses */ | ||
128 | spinlock_t mmu_lock; | 127 | spinlock_t mmu_lock; |
129 | spinlock_t requests_lock; | 128 | spinlock_t requests_lock; |
130 | struct rw_semaphore slots_lock; | 129 | struct rw_semaphore slots_lock; |
@@ -134,6 +133,7 @@ struct kvm { | |||
134 | KVM_PRIVATE_MEM_SLOTS]; | 133 | KVM_PRIVATE_MEM_SLOTS]; |
135 | struct kvm_vcpu *vcpus[KVM_MAX_VCPUS]; | 134 | struct kvm_vcpu *vcpus[KVM_MAX_VCPUS]; |
136 | struct list_head vm_list; | 135 | struct list_head vm_list; |
136 | struct mutex lock; | ||
137 | struct kvm_io_bus mmio_bus; | 137 | struct kvm_io_bus mmio_bus; |
138 | struct kvm_io_bus pio_bus; | 138 | struct kvm_io_bus pio_bus; |
139 | #ifdef CONFIG_HAVE_KVM_EVENTFD | 139 | #ifdef CONFIG_HAVE_KVM_EVENTFD |
@@ -150,6 +150,7 @@ struct kvm { | |||
150 | struct kvm_coalesced_mmio_ring *coalesced_mmio_ring; | 150 | struct kvm_coalesced_mmio_ring *coalesced_mmio_ring; |
151 | #endif | 151 | #endif |
152 | 152 | ||
153 | struct mutex irq_lock; | ||
153 | #ifdef CONFIG_HAVE_KVM_IRQCHIP | 154 | #ifdef CONFIG_HAVE_KVM_IRQCHIP |
154 | struct list_head irq_routing; /* of kvm_kernel_irq_routing_entry */ | 155 | struct list_head irq_routing; /* of kvm_kernel_irq_routing_entry */ |
155 | struct hlist_head mask_notifier_list; | 156 | struct hlist_head mask_notifier_list; |