KVM: PPC: Override host vmx/vsx/dfp only when information known
authorAlexander Graf <agraf@suse.de>
Mon, 24 Oct 2011 18:43:22 +0000 (20:43 +0200)
committerAlexander Graf <agraf@suse.de>
Sun, 30 Oct 2011 19:03:27 +0000 (20:03 +0100)
commitbd1f408e5184db67b3ac3ec3b7f3516c98377ca5
treed8d59f592f44fe43841913927083226fc1ff26f7
parent5e7fe6964e2560db57082fad747619d2dc097c1f
KVM: PPC: Override host vmx/vsx/dfp only when information known

The -cpu host feature tries to find out the host capabilities based
on device tree information. However, we don't always have that available
because it's an optional property in dt.

So instead of force unsetting values depending on an unreliable source
of information, let's just try to be clever about it and not override
capabilities when we don't know the device tree pieces.

This fixes altivec with -cpu host on YDL PowerStations.

Reported-by: Nishanth Aravamudan <nacc@us.ibm.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/kvm.c