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>
This commit is contained in:
Peter Xu 2017-03-15 16:01:18 +08:00 • committed by Paolo Bonzini
commit 950712eb8e
2 changed files with 6 additions and 0 deletions