ppc: remove cannot_destroy_with_object_finalize_yet
commit40fda982f2e887f7d5cc36b8a7e3b5a07a1e6704
authorLaurent Vivier <lvivier@redhat.com>
Fri, 14 Apr 2017 08:37:15 +0000 (14 10:37 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 21 Apr 2017 05:18:23 +0000 (21 07:18 +0200)
treed80c622982d48ff5d94015409181d432ac691c8c
parent53d6e53189334fd0905e0a7c4bd9156d6a0d17fb
ppc: remove cannot_destroy_with_object_finalize_yet

This removes the assert(kvm_enabled()) from kvmppc_host_cpu_initfn()

This assert can never be triggered as the function is only registered
when KVM is available (see also 4c315c2
"qdev: Protect device-list-properties against broken devices").

So we can remove the cannot_destroy_with_object_finalize_yet from
kvmppc_host_cpu_class_init() without fear and beyond reproach.
(as it has already be done for i386 with 771a13e "i386: Unset
cannot_destroy_with_object_finalize_yet on "host" model" and
e435601 "target-i386: Remove assert(kvm_enabled()) from
host_x86_cpu_initfn()")

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <20170414083717.13641-3-lvivier@redhat.com>
Acked-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
target/ppc/kvm.c