Skip to contentSkip to conversation

KVM: PPC: Book3S: Ignore DABR register

PATCH In review Alexander Graf 2 participants 2 messages Jul 2, 2013 – Jul 3, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM: PPC: Book3S: Ignore DABR register

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.

---
 arch/powerpc/kvm/book3s_emulate.c | 2 ++
 1 file changed, 2 insertions(+)
arch/powerpc/kvm/book3s_emulate.c +2 -0
index 1f6344c..360ce68 100644
@@ -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:
Signature · 1 line
1.8.1.4
Tested-by on v1 1/1
#1 lore raw

hi Alexander,
thanks for your time, this patch works fine.

-nello

Quoted 32 lines · Alexander Graf

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.

---
 arch/powerpc/kvm/book3s_emulate.c | 2 ++
 1 file changed, 2 insertions(+)
arch/powerpc/kvm/book3s_emulate.c +2 -1
index 1f6344c..360ce68 100644
@@ -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:
--
Quoted 2 lines

1.8.1.4

--
my blog: http://linuxpowerpc.blogspot.com
--
Power Mac G4 AGP 450MHz - CRUX PPC (32bit)