PPC: e500: advertise 4.2 MPIC only if KVM supports EPR
commit3b961124bf8a0b490e4fc3a6a39e004500ae6967
authorStuart Yoder <stuart.yoder@freescale.com>
Sat, 30 Mar 2013 06:40:49 +0000 (30 06:40 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 26 Apr 2013 21:02:40 +0000 (26 23:02 +0200)
treeed1715503dfdcba439a9700e30c6622c3b7759d9
parente71ec2e93dad4446d245031382e30b377640d9ca
PPC: e500: advertise 4.2 MPIC only if KVM supports EPR

Older KVM versions don't support EPR which breaks guests when we announce
MPIC variants that support EPR.

Catch that case and expose only MPIC version 2.0 which tells the guest that
we don't support the EPR capability yet.

Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com>
[agraf: Add comment, route cap check through kvm_ppc.c]
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/e500plat.c
target-ppc/kvm.c
target-ppc/kvm_ppc.h