aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-12-01 08:50:26 -0500
committerAlexander Graf <agraf@suse.de>2012-12-05 19:34:17 -0500
commit62b4db0042aa753810e0d4f184481cc107c925ba (patch)
treee9c93eb4ac80bc9e785f5bee6d3cc31df544035e /arch/powerpc/include
parente9666ea1b3d11509b76f8ff5b9776d8d30709b19 (diff)
KVM: PPC: Make EPCR a valid field for booke64 and bookehv
In BookE, EPCR is defined and valid when either the HV or the 64bit category are implemented. Reflect this in the field definition. Today the only KVM target on 64bit is HV enabled, so there is no change in actual source code, but this keeps the code closer to the spec and doesn't build up artificial road blocks for a PR KVM on 64bit. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/kvm_host.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h
index 62fbd38b15fa..ca9bf459db6a 100644
--- a/arch/powerpc/include/asm/kvm_host.h
+++ b/arch/powerpc/include/asm/kvm_host.h
@@ -406,13 +406,18 @@ struct kvm_vcpu_arch {
406 u32 host_mas4; 406 u32 host_mas4;
407 u32 host_mas6; 407 u32 host_mas6;
408 u32 shadow_epcr; 408 u32 shadow_epcr;
409 u32 epcr;
410 u32 shadow_msrp; 409 u32 shadow_msrp;
411 u32 eplc; 410 u32 eplc;
412 u32 epsc; 411 u32 epsc;
413 u32 oldpir; 412 u32 oldpir;
414#endif 413#endif
415 414
415#if defined(CONFIG_BOOKE)
416#if defined(CONFIG_KVM_BOOKE_HV) || defined(CONFIG_64BIT)
417 u32 epcr;
418#endif
419#endif
420
416#ifdef CONFIG_PPC_BOOK3S 421#ifdef CONFIG_PPC_BOOK3S
417 /* For Gekko paired singles */ 422 /* For Gekko paired singles */
418 u32 qpr[32]; 423 u32 qpr[32];