kvm: free resources after canceling async_pf
authorRadim Krčmář <rkrcmar@redhat.com>
Wed, 4 Sep 2013 20:32:23 +0000 (22:32 +0200)
committerGleb Natapov <gleb@redhat.com>
Tue, 17 Sep 2013 09:53:15 +0000 (12:53 +0300)
commit28b441e24088081c1e213139d1303b451a34a4f4
treeb5f1b975ed8b5dafa126bd58092677cc273171a1
parent72f857950f6f19cba42a9ded078bbc99f10aa667
kvm: free resources after canceling async_pf

When we cancel 'async_pf_execute()', we should behave as if the work was
never scheduled in 'kvm_setup_async_pf()'.
Fixes a bug when we can't unload module because the vm wasn't destroyed.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/async_pf.c