]> git.baikalelectronics.ru Git - kernel.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)
commit4ba7723a7a1b9c6578eaefe560484e94889da27a
tree0098c9324ef89484f063845b18153385357d8bfd
parent94a4dd0d3426accd8bcdfe0025c283824a62f9fc
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