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>
Showing
- arch/ia64/kvm/kvm-ia64.c 1 addition, 0 deletionsarch/ia64/kvm/kvm-ia64.c
- arch/powerpc/kvm/powerpc.c 1 addition, 0 deletionsarch/powerpc/kvm/powerpc.c
- arch/s390/kvm/kvm-s390.c 1 addition, 0 deletionsarch/s390/kvm/kvm-s390.c
- arch/x86/kvm/x86.c 1 addition, 0 deletionsarch/x86/kvm/x86.c
- virt/kvm/kvm_main.c 0 additions, 1 deletionvirt/kvm/kvm_main.c
Loading
Please register or sign in to comment