]> git.proxmox.com Git - qemu.git/commit - target-ppc/kvm.c
PPC: KVM: set has-idle in guest device tree
authorStuart Yoder <stuart.yoder@freescale.com>
Thu, 3 Jan 2013 12:37:02 +0000 (12:37 +0000)
committerAlexander Graf <agraf@suse.de>
Mon, 7 Jan 2013 16:37:11 +0000 (17:37 +0100)
commit1a61a9ae61cdf7b7d24c3eb711fe772c196c235e
treef0e3799722ceb0e7605b68b4c7b8d643f7589f9c
parentd4834ff9b72d7b89181e88b1a481564cb750c1b5
PPC: KVM: set has-idle in guest device tree

On e500mc, the platform doesn't provide a way for the CPU to go idle.

To still not uselessly burn CPU time, expose an idle hypercall to the guest
if kvm supports it.

Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com>
[agraf: adjust for current code base, add patch description, fix non-kvm case]
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/e500.c
target-ppc/kvm.c
target-ppc/kvm_ppc.h