KVM: PPC: Ignore PIR writes
authorAlexander Graf <agraf@suse.de>
Wed, 26 Jun 2013 23:07:15 +0000 (01:07 +0200)
committerAlexander Graf <agraf@suse.de>
Sun, 30 Jun 2013 01:33:22 +0000 (03:33 +0200)
commita3ff5fbc94a829680d4aa005cd17add1c1a1fb5b
treec4e967bfba86a4d503734f20af73f0060279af17
parent681562cd56f5336cbdf6dab0c4b2f6ef16ea89ed
KVM: PPC: Ignore PIR writes

While technically it's legal to write to PIR and have the identifier changed,
we don't implement logic to do so because we simply expose vcpu_id to the guest.

So instead, let's ignore writes to PIR. This ensures that we don't inject faults
into the guest for something the guest is allowed to do. While at it, we cross
our fingers hoping that it also doesn't mind that we broke its PIR read values.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/emulate.c