KVM: x86: check existance before destroy
authorPeter Xu <peterx@redhat.com>
Wed, 15 Mar 2017 08:01:18 +0000 (16:01 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Mar 2017 18:02:03 +0000 (19:02 +0100)
commit950712eb8ef03e4a62ac5b3067efde7ec2f8a91e
treebbc3b0839d6f86d70cd604e9e057ed67dddfa059
parentdf630b8c1e851b5e265dc2ca9c87222e342c093b
KVM: x86: check existance before destroy

Mostly used for split irqchip mode. In that case, these two things are
not inited at all, so no need to release.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/i8259.c
arch/x86/kvm/ioapic.c