target/ppc/kvm: get rid of kvm_get_fallback_smmu_info()
commit71d0f1eac43044ccfaf7c398a93dcdb09bf29e0f
authorGreg Kurz <groug@kaod.org>
Fri, 29 Jun 2018 09:48:16 +0000 (29 11:48 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 2 Jul 2018 23:56:52 +0000 (3 09:56 +1000)
tree9757c59700a2eb5da793ca7dce6165b552f75aed
parent3c409c1927efde2fc7ac5f6cd5d79d0784be3b5d
target/ppc/kvm: get rid of kvm_get_fallback_smmu_info()

Now that we're checking our MMU configuration is supported by KVM,
rather than adjusting it to KVM, it doesn't really make sense to
have a fallback for kvm_get_smmu_info(). If KVM is too old or buggy
to provide the details, we should rather treat this as an error.

This patch thus adds error reporting to kvm_get_smmu_info() and get
rid of the fallback code. QEMU will now terminate if KVM fails to
provide MMU details. This may break some very old setups, but the
simplification is worth the sacrifice.

Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/kvm.c