KVM: PPC: Book3S: Ignore DABR register
Subsystems (3)
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.
Reported-by Nello Martuscielli <[email protected]>
Signed-off-by Alexander Graf <[email protected]>
--- arch/powerpc/kvm/book3s_emulate.c | 2 ++ 1 file changed, 2 insertions(+)
arch/powerpc/kvm/book3s_emulate.c +2 -0
@@ -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
hi Alexander,
thanks for your time, this patch works fine.
Tested-by Nello Martuscielli <[email protected]>
-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.
Reported-by Nello Martuscielli <[email protected]>Signed-off-by Alexander Graf <[email protected]>--- arch/powerpc/kvm/book3s_emulate.c | 2 ++ 1 file changed, 2 insertions(+)arch/powerpc/kvm/book3s_emulate.c +2
-1@@ -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)