]> git.proxmox.com Git - mirror_qemu.git/commit
target/ppc/kvm: don't pass cpu to kvm_get_smmu_info()
authorGreg Kurz <groug@kaod.org>
Fri, 29 Jun 2018 09:48:32 +0000 (11:48 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 2 Jul 2018 23:56:52 +0000 (09:56 +1000)
commitab2569600916864a9db431a7e42f08d5fc72730e
treed33b5dd10cc4496e27269384cc9574698fbd3967
parent71d0f1eac43044ccfaf7c398a93dcdb09bf29e0f
target/ppc/kvm: don't pass cpu to kvm_get_smmu_info()

In a future patch the machine code will need to retrieve the MMU
information from KVM during machine initialization before the CPUs
are created.

Actually, KVM_PPC_GET_SMMU_INFO is a VM class ioctl, and thus, we
don't need to have a CPU object around. We just need for KVM to
be initialized and use the kvm_state global. This patch just does
that.

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