kvm: ppc: detect old headers
authorAlexander Graf <agraf@suse.de>
Sat, 16 Apr 2011 00:00:36 +0000 (02:00 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 9 May 2011 20:31:38 +0000 (22:31 +0200)
commit64e07be544ee9c5fb5b741175262fd34726ec431
tree77b4b2606b970d920f53ed0c89a4a8b165135b90
parent90dc8812229a1d3f31bc08ccf0aa50e10282faef
kvm: ppc: detect old headers

When compiling Qemu with older kernel headers, the PVR setting
mechanism isn't available yet. Unfortunately, back then I didn't add
a capability we could check against, so all we can do is add a configure
test to see if we support PVR setting. For BookE, we don't care yet.

This fixes compilation errors with KVM enabled on older kernel headers
(like 2.6.32).

Signed-off-by: Alexander Graf <agraf@suse.de>
configure
target-ppc/kvm.c