KVM: rearrange injection cancelling code