diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2014-06-04 07:17:55 -0400 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-07-06 07:56:49 -0400 |
commit | 3cd60e31185343d4132ca7cf3c9becb903b3ec1b (patch) | |
tree | 0098c9324ef89484f063845b18153385357d8bfd /arch/powerpc/include/asm/kvm_host.h | |
parent | 9f6226a762c7ae02f6a23a3d4fc552dafa57ea23 (diff) |
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>
Diffstat (limited to 'arch/powerpc/include/asm/kvm_host.h')
-rw-r--r-- | arch/powerpc/include/asm/kvm_host.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h index bb66d8b8efdf..4a58731a0a72 100644 --- a/arch/powerpc/include/asm/kvm_host.h +++ b/arch/powerpc/include/asm/kvm_host.h | |||
@@ -503,8 +503,8 @@ struct kvm_vcpu_arch { | |||
503 | #ifdef CONFIG_BOOKE | 503 | #ifdef CONFIG_BOOKE |
504 | u32 decar; | 504 | u32 decar; |
505 | #endif | 505 | #endif |
506 | u32 tbl; | 506 | /* Time base value when we entered the guest */ |
507 | u32 tbu; | 507 | u64 entry_tb; |
508 | u32 tcr; | 508 | u32 tcr; |
509 | ulong tsr; /* we need to perform set/clr_bits() which requires ulong */ | 509 | ulong tsr; /* we need to perform set/clr_bits() which requires ulong */ |
510 | u32 ivor[64]; | 510 | u32 ivor[64]; |