]> Pileus Git - ~andy/linux/commit
KVM: rearrange injection cancelling code
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 24 Jun 2012 16:25:00 +0000 (19:25 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 25 Jun 2012 09:40:50 +0000 (12:40 +0300)
commitd905c0693514e6f713b207377b67c9972c5d7d49
treea5387b1ab6f44e06b2a7de5c1dca2811ce508f5e
parent5cfb1d5a65dd96d2d3a0751a1e4e81dc84c1f08f
KVM: rearrange injection cancelling code

Each time we need to cancel injection we invoke same code
(cancel_injection callback).  Move it towards the end of function using
the familiar goto on error pattern.

Will make it easier to do more cleanups for PV EOI.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c