]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Device Assignment: Free device structures if IRQ allocation fails
authorAmit Shah <amit.shah@redhat.com>
Tue, 16 Sep 2008 15:04:28 +0000 (18:04 +0300)
committerAvi Kivity <avi@redhat.com>
Wed, 15 Oct 2008 12:25:04 +0000 (14:25 +0200)
commita0cfc526aa9276f848354263755d614875d37550
tree8b55582d859efa274be0c7cfc92c9da00324fddf
parent0e626268a066efad61e364e3f1aff4b0fd1914f8
KVM: Device Assignment: Free device structures if IRQ allocation fails

When an IRQ allocation fails, we free up the device structures and
disable the device so that we can unregister the device in the
userspace and not expose it to the guest at all.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c