From: Alexander Graf <hidden> Date: 2012-12-01 13:58:30
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 <redacted>
---
arch/powerpc/include/asm/kvm_host.h | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
From: Scott Wood <hidden> Date: 2012-12-03 16:47:35
On 12/01/2012 07:58:25 AM, Alexander Graf wrote:
In BookE, EPCR is defined and valid when either the HV or the 64bit
category are implemented. Reflect this in the field definition.
=20
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.
On a PR-mode implementation, why would we be have a shadow_epcr? It =20
would always be set based on the host kernel, just like when running =20
any other userspace process.
-Scott=
From: Alexander Graf <hidden> Date: 2012-12-03 17:39:01
On 03.12.2012, at 17:47, Scott Wood wrote:
On 12/01/2012 07:58:25 AM, Alexander Graf wrote:
quoted
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.
=20
On a PR-mode implementation, why would we be have a shadow_epcr? It =
would always be set based on the host kernel, just like when running any =
other userspace process.
Right - we could simply set MSR_CM. I'll move shadow_epcr back into the =
HV only bit above.
Alex