Commit 62b4db00 authored by Alexander Graf's avatar Alexander Graf

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: default avatarAlexander Graf <agraf@suse.de>
parent e9666ea1
...@@ -406,13 +406,18 @@ struct kvm_vcpu_arch { ...@@ -406,13 +406,18 @@ struct kvm_vcpu_arch {
u32 host_mas4; u32 host_mas4;
u32 host_mas6; u32 host_mas6;
u32 shadow_epcr; u32 shadow_epcr;
u32 epcr;
u32 shadow_msrp; u32 shadow_msrp;
u32 eplc; u32 eplc;
u32 epsc; u32 epsc;
u32 oldpir; u32 oldpir;
#endif #endif
#if defined(CONFIG_BOOKE)
#if defined(CONFIG_KVM_BOOKE_HV) || defined(CONFIG_64BIT)
u32 epcr;
#endif
#endif
#ifdef CONFIG_PPC_BOOK3S #ifdef CONFIG_PPC_BOOK3S
/* For Gekko paired singles */ /* For Gekko paired singles */
u32 qpr[32]; u32 qpr[32];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment