Set PVR in sregs
authorAlexander Graf <agraf@suse.de>
Fri, 17 Jul 2009 11:51:43 +0000 (13:51 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 22 Jul 2009 15:58:45 +0000 (10:58 -0500)
commit861bbc8052781e24bc1ecf3bbbe2c213d05ba889
tree49713e3a212d02201ccec8718f3ebd78c9f21b1a
parent5f114bc6cea8798cbe6f22aa7963a5514119a353
Set PVR in sregs

We need to tell the kernel about some initial CPU state we don't have yet,
so let's use the "sregs" IOCTL for that and simply put the Processor Version
Register in there.

Now the kernel knows which guest CPU to virtualize.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
target-ppc/kvm.c