commit | 72bb2fcd23afe8db53b47e8f9edd736c517ba532 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yjwei@cn.fujitsu.com> | Tue Feb 09 10:33:03 2010 +0800 |
committer | Marcelo Tosatti <mtosatti@redhat.com> | Mon Mar 01 12:36:10 2010 -0300 |
tree | b79884bcb50077fec7cb5615178cacbbf9e6ce04 | |
parent | 1ae77badc2504d157800f10a81a58cc9c941e7cb [diff] |
KVM: cleanup the failure path of KVM_CREATE_IRQCHIP ioctrl If we fail to init ioapic device or the fail to setup the default irq routing, the device register by kvm_create_pic() and kvm_ioapic_init() remain unregister. This patch fixed to do this. Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Signed-off-by: Avi Kivity <avi@redhat.com>