diff mbox

KVM: PPC: Book3S: Ignore DABR register

Message ID 1372774680-2697-1-git-send-email-agraf@suse.de
State New, archived
Headers show

Commit Message

Alexander Graf July 2, 2013, 2:18 p.m. UTC
We don't emulate breakpoints yet, so just ignore reads and writes
to / from DABR.

This fixes booting of more recent Linux guest kernels for me.

Reported-by: Nello Martuscielli <ppc.addon@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
---
 arch/powerpc/kvm/book3s_emulate.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

nello martuscielli July 3, 2013, 2:21 a.m. UTC | #1
hi Alexander,
thanks for your time, this patch works fine.


Tested-by: Nello Martuscielli <ppc.addon@gmail.com>


-nello

On Tue, Jul 2, 2013 at 4:18 PM, Alexander Graf <agraf@suse.de> wrote:
> We don't emulate breakpoints yet, so just ignore reads and writes
> to / from DABR.
>
> This fixes booting of more recent Linux guest kernels for me.
>
> Reported-by: Nello Martuscielli <ppc.addon@gmail.com>
> Signed-off-by: Alexander Graf <agraf@suse.de>
> ---
>  arch/powerpc/kvm/book3s_emulate.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/arch/powerpc/kvm/book3s_emulate.c b/arch/powerpc/kvm/book3s_emulate.c
> index 1f6344c..360ce68 100644
> --- a/arch/powerpc/kvm/book3s_emulate.c
> +++ b/arch/powerpc/kvm/book3s_emulate.c
> @@ -458,6 +458,7 @@ int kvmppc_core_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, ulong spr_val)
>         case SPRN_PMC4_GEKKO:
>         case SPRN_WPAR_GEKKO:
>         case SPRN_MSSSR0:
> +       case SPRN_DABR:
>                 break;
>  unprivileged:
>         default:
> @@ -555,6 +556,7 @@ int kvmppc_core_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val)
>         case SPRN_PMC4_GEKKO:
>         case SPRN_WPAR_GEKKO:
>         case SPRN_MSSSR0:
> +       case SPRN_DABR:
>                 *spr_val = 0;
>                 break;
>         default:
> --
> 1.8.1.4
>



--
my blog: http://linuxpowerpc.blogspot.com
--
Power Mac G4 AGP 450MHz - CRUX PPC (32bit)
--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/powerpc/kvm/book3s_emulate.c b/arch/powerpc/kvm/book3s_emulate.c
index 1f6344c..360ce68 100644
--- a/arch/powerpc/kvm/book3s_emulate.c
+++ b/arch/powerpc/kvm/book3s_emulate.c
@@ -458,6 +458,7 @@  int kvmppc_core_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, ulong spr_val)
 	case SPRN_PMC4_GEKKO:
 	case SPRN_WPAR_GEKKO:
 	case SPRN_MSSSR0:
+	case SPRN_DABR:
 		break;
 unprivileged:
 	default:
@@ -555,6 +556,7 @@  int kvmppc_core_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val)
 	case SPRN_PMC4_GEKKO:
 	case SPRN_WPAR_GEKKO:
 	case SPRN_MSSSR0:
+	case SPRN_DABR:
 		*spr_val = 0;
 		break;
 	default: