kvm: free resources after canceling async_pf
authorRadim Krčmář <rkrcmar@redhat.com>
Wed, 4 Sep 2013 20:32:23 +0000 (22:32 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:05 +0000 (17:18 +0200)
commited363014a225b257a32ad69b1ef0da615aecb50a
treeb93d3f717f684815978854c4e27d4fa8cb9b0670
parent02ef4f0c0d0930d9d44e9929caaee12043447010
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>
(cherry picked from commit 28b441e24088081c1e213139d1303b451a34a4f4)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/async_pf.c