]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: PPC: BOOK3S: PR: Fix PURR and SPURR emulation
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 4 Jun 2014 11:17:55 +0000 (16:47 +0530)
committerAlexander Graf <agraf@suse.de>
Sun, 6 Jul 2014 11:56:49 +0000 (13:56 +0200)
commit3cd60e31185343d4132ca7cf3c9becb903b3ec1b
tree0098c9324ef89484f063845b18153385357d8bfd
parent9f6226a762c7ae02f6a23a3d4fc552dafa57ea23
KVM: PPC: BOOK3S: PR: Fix PURR and SPURR emulation

We use time base for PURR and SPURR emulation with PR KVM since we
are emulating a single threaded core. When using time base
we need to make sure that we don't accumulate time spent in the host
in PURR and SPURR value.

Also we don't need to emulate mtspr because both the registers are
hypervisor resource.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/kvm/book3s_emulate.c
arch/powerpc/kvm/book3s_pr.c