linux/virt/kvm
Marcelo Tosatti 6474920477 KVM: fix cleanup_srcu_struct on vm destruction
cleanup_srcu_struct on VM destruction remains broken:

BUG: unable to handle kernel paging request at ffffffffffffffff
IP: [<ffffffff802533d2>] srcu_read_lock+0x16/0x21
RIP: 0010:[<ffffffff802533d2>]  [<ffffffff802533d2>] srcu_read_lock+0x16/0x21
Call Trace:
 [<ffffffffa05354c4>] kvm_arch_vcpu_uninit+0x1b/0x48 [kvm]
 [<ffffffffa05339c6>] kvm_vcpu_uninit+0x9/0x15 [kvm]
 [<ffffffffa0569f7d>] vmx_free_vcpu+0x7f/0x8f [kvm_intel]
 [<ffffffffa05357b5>] kvm_arch_destroy_vm+0x78/0x111 [kvm]
 [<ffffffffa053315b>] kvm_put_kvm+0xd4/0xfe [kvm]

Move it to kvm_arch_destroy_vm.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Reported-by: Jan Kiszka <jan.kiszka@siemens.com>
2010-03-01 12:36:01 -03:00
..
assigned-dev.c KVM: introduce kvm->srcu and convert kvm_set_memory_region to SRCU update 2010-03-01 12:35:44 -03:00
coalesced_mmio.c KVM: convert slots_lock to a mutex 2010-03-01 12:35:45 -03:00
coalesced_mmio.h KVM: Simplify coalesced mmio initialization 2010-03-01 12:35:41 -03:00
eventfd.c KVM: convert slots_lock to a mutex 2010-03-01 12:35:45 -03:00
ioapic.c KVM: avoid taking ioapic mutex for non-ioapic EOIs 2010-03-01 12:35:46 -03:00
ioapic.h KVM: avoid taking ioapic mutex for non-ioapic EOIs 2010-03-01 12:35:46 -03:00
iodev.h KVM: remove in_range from io devices 2009-09-10 08:33:05 +03:00
iommu.c KVM: introduce kvm->srcu and convert kvm_set_memory_region to SRCU update 2010-03-01 12:35:44 -03:00
irq_comm.c KVM: properly check max PIC pin in irq route setup 2010-01-25 12:26:38 -02:00
Kconfig KVM: Add KVM_MMIO kconfig item 2010-03-01 12:35:41 -03:00
kvm_main.c KVM: fix cleanup_srcu_struct on vm destruction 2010-03-01 12:36:01 -03:00